Hurricane Electric's IPv6 Tunnel Broker Forums

Advanced search  

News:

Welcome to Hurricane Electric's Tunnelbroker.net forums!

Author Topic: Block Router Advertisements  (Read 3161 times)

phipac

  • Newbie
  • *
  • Posts: 25
Block Router Advertisements
« 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:

Code: [Select]
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!
Logged

cholzhauer

  • Hero Member
  • *****
  • Posts: 2667
Re: Block Router Advertisements
« Reply #1 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?
Logged

tchxhe

  • Newbie
  • *
  • Posts: 2
Re: Block Router Advertisements
« Reply #2 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.

Logged

phipac

  • Newbie
  • *
  • Posts: 25
Re: Block Router Advertisements
« Reply #3 on: April 18, 2011, 09:16:23 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!
Logged

snarked

  • Hero Member
  • *****
  • Posts: 737
Re: Block Router Advertisements
« Reply #4 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).
Logged