LAN IPv6 is different then what was assigned
-
Ever since some code changes were done a few weeks ago, I noticed that my LAN IP is different from what I assigned it. Under Interfaces:LAN setup, I gave it IP 2001:470:XXXX:XXX::1. When I reboot the box, I see that 2001:470:XXXX:XXX:225:90ff:fe02:3164 is now assigned to the LAN. If I go back to the LAN setup, it has the correct IP address, but Status:Interfaces and the console show's this other IP. What is really strange, I'm able to ping both IPs from my windows 7 client. I'm still learning IPv6 and have only brush the surface. If I save the LAN setup, the assigned IP becomes the IP again, until I reboot again. Is this normal or a bug? I'm thinking this may have something to do with with AutoConfig but not sure… Thanks in advance!
-
this is caused by a accept router advertisements sysctl. The problem is that it is not per interface like it should.
I need a newer FreeBSD patch for that.
-
Thanks for the quick reply! Good to know..
-
Yeah I noticed this awhile back as well that it was adding an ipv6 address to the lan interface, you can always just delete the specific IP, but as mentioned just turn off router advertisements with sysctl and you should be good.
sysctl net.inet6.ip6.accept_rtadv=0
You can then add the command to your /etc/sysctl.conf
-
Yeah I noticed this awhile back as well that it was adding an ipv6 address to the lan interface, you can always just delete the specific IP, but as mentioned just turn off router advertisements with sysctl and you should be good.
sysctl net.inet6.ip6.accept_rtadv=0
You can then add the command to your /etc/sysctl.conf
Thanks for the suggestion. I gave it a try and it works… Could we add this to System Tunables instead of changing the sysctl.conf file?
-
I just double checked mine and works when you do it manually and I have the setting in my conf file - but just got onto the box and yet again noticed the autoconf ipv6 added to my lan interface.
something is not quite right unless my etc/conf got overwritten. Just checked and its still there, what the hell..
I will take a look at it again later and see if still off, and then when I get home tonight can reboot it and see if it comes back?
-
I just noticed it myself. After reboot, it had the LAN interface IP…..Went back to check after your post and autoconf changed the IP. I added the setting to the System Tunables table and rebooted the box, it default to value of 1
-
if your wan is dhcp it is toggled each time you renew a lease.
-
Ah that would explain it then - how to fix?
-
the patch I've used also declares a few more arguments for ifconfig. unfortunately they do not appear to work the way they should.
-
so what your saying is there currently is no fix?