Router IPv6 Address

Post new topic   Reply to topic    DD-WRT Forum Forum Index -> Advanced Networking
Author Message
iotola
DD-WRT Novice


Joined: 29 Oct 2018
Posts: 19
Location: UK

PostPosted: Mon Dec 17, 2018 13:00    Post subject: Router IPv6 Address Reply with quote
I have IPv6 setup through a 6in4 Static Tunnel (via Hurrincane Electric), and it's all working except for 1 setting that I am unsure about.

The setting is "Router IPv6 Address". I assumed this would be the routers IPv6 address on the LAN side. However, I am unable to ping the address when I put one here. I am using the Assigned/Routed prefix with a 1 on the end for example

2001:470:1f09:7777::1

where 2001:470:1f09:7777:: is an example Assigned/Routed prefix

I can, however, ping the router via the WAN IPv6 address and I can also ping my Windows machine from the WAN side. So I don't think ist a firewall issue, but I maybe wrong.

What is the purpose of the "Router IPv6 Address" and why can't I ping it when I have set it?

Thanks
Sponsor
iotola
DD-WRT Novice


Joined: 29 Oct 2018
Posts: 19
Location: UK

PostPosted: Sat Dec 22, 2018 15:32    Post subject: further... Reply with quote
Looking at the dd-wrt's NVRAM settings the only ipv6 address that the router responds to is the NVRAM value
Code:
ipv6_tun_client_addr

which corresponds to the Tunnel Client IPv6 Address in the 6in4 static tunnel setup

while the address labelled Router IPv6 Address in the 6in4 static tunnel setup is NVRAM value
Code:
ipv6_addr


This latter ipv6 address appears to do nothing as far as I can tell. So what is the point of having this in the 6in4 static tunnel setup?
iotola
DD-WRT Novice


Joined: 29 Oct 2018
Posts: 19
Location: UK

PostPosted: Mon Dec 24, 2018 15:22    Post subject: Reply with quote
OK, so I think I have fixed it.

I was originally using radvd and I then decided to switch to dnsmasq for ipv6 address allocation etc, using the constructor:br0. In doing so I discovered that br0 did not have any ipv6 address associated with it, and I believe that is the address I was referring to in the original post.

So I fixed this by adding this to the startup script

Quote:
IPV6_ADDR=`nvram get ipv6_addr`
ip -6 addr add ${IPV6_ADDR} dev br0


Now I can ping the local ipv6 address and dnsmasq works using the br0 address as the local constructor.

I hope this end up being helpful to someone else.
NewFace
DD-WRT Novice


Joined: 09 Jul 2018
Posts: 19

PostPosted: Mon Mar 18, 2019 20:06    Post subject: Reply with quote
Thank you buddy, you just saved me another day!

Base on your code, I made some modification
Code:

ip -6 a d $(nvram get ipv6_prefix)/$(nvram get ipv6_pf_len) dev br0
ip -6 a a $(nvram get ipv6_addr)/$(nvram get ipv6_pf_len) dev br0

1st line remove the prefix used as br0 ipv6 address
2nd line add the router ipv6 address to br0

Thank you again iotola, cheers! Very Happy
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Forum Index -> Advanced Networking All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum