• Welcome to Hurricane Electric's IPv6 Tunnel Broker Forums.

News:

Welcome to Hurricane Electric's Tunnelbroker.net forums!

Main Menu

Block Router Advertisements

Started by phipac, April 16, 2011, 04:54:05 PM

Previous topic - Next topic

phipac

Thanks for looking!  I'm running Ubuntu 10.10 server on a mixed static & dynamic network.  My router is running radvd to handle IPv6 addressing for temporary devices.  This Ubuntu server has a static IPv6 address.  The problem is, it is picking up an address from radvd no matter what I do.  I have combed through Google to little avail.  I have put the following lines in /etc/sysctl.conf:

net.ipv6.conf.all.accept_ra = 0
net.ipv6.conf.all.autoconf = 0


... but that doesn't seem to stop it from accepting addresses from radvd.  If I delete the dynamic address, it shows back up within a few minutes.  If I reboot the box, it is still there as well.  I'm missing something here, but I don't know what!  Thanks for your help!

cholzhauer

The only thing I've been able to find is something like

http://permalink.gmane.org/gmane.org.user-groups.ale/75013

Which lists the same commands you tried.  I see there's a little script below it, but according to the description, it's only supposed to keep you from rebooting.

Maybe it's worth trying anyway?

tchxhe

I'm using suse and had the same problem. The 'all' part didn't work. I changed
net.ipv6.conf.all.autoconf to net.ipv6.conf.eth0.autoconf and net.ipv6.conf.eth1.autoconf
You have to adapt the names for your nics. Perhaps this works with ubuntu too.


phipac

Quote from: tchxhe on April 18, 2011, 01:22:38 AM
I'm using suse and had the same problem. The 'all' part didn't work. I changed
net.ipv6.conf.all.autoconf to net.ipv6.conf.eth0.autoconf and net.ipv6.conf.eth1.autoconf
You have to adapt the names for your nics. Perhaps this works with ubuntu too.

That seems to have done it!  Thank you very much for your help!

snarked

Using "all" vs. a specific interface name can work.  It depends on when the configuration parameters are executed as compared to when the interfaces are created (i.e. "all" will work if the parameters are executed BEFORE interface creation but not after).