Hurricane Electric's IPv6 Tunnel Broker Forums

General IPv6 Topics => IPv6 on Linux & BSD & Mac => Topic started by: phipac on April 16, 2011, 04:54:05 PM

Title: Block Router Advertisements
Post by: phipac on April 16, 2011, 04:54:05 PM
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!
Title: Re: Block Router Advertisements
Post by: cholzhauer on April 17, 2011, 06:47:36 PM
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?
Title: Re: Block Router Advertisements
Post by: 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.

Title: Re: Block Router Advertisements
Post by: phipac on April 18, 2011, 09:16:23 AM
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!
Title: Re: Block Router Advertisements
Post by: snarked on April 19, 2011, 12:04:25 AM
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).