Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I am working on Ubuntu 11.04. I want to switch off the IPv6 ND RA transmissions. How can I do this?

share|improve this question

migrated from stackoverflow.com Nov 11 '11 at 10:58

This question came from our site for professional and enthusiast programmers.

    
I suspect that having answered the first part of your question you may want to edit this question so that the title more accurately reflects what you're looking for. –  larsks Nov 6 '11 at 0:51
    
@larsks: thanks! –  Bruce Nov 6 '11 at 1:17
    
IPv6 ND has a whole list of functions associated with it. What specifically are you trying to disable? –  Mike Pennington Nov 8 '11 at 10:06
    
@Mike: I want to switch of Router Discovery –  Bruce Nov 9 '11 at 3:54

3 Answers 3

up vote 4 down vote accepted

You can turn off Router Advertisement acceptance via these sysctls:

net.ipv6.conf.default.accept_ra=0
net.ipv6.conf.all.accept_ra=0
net.ipv6.conf.eth0.accept_ra=0 (where eth0 can be any interface)
share|improve this answer

It sounds like you don't want IPv6 enabled at all. If you don't have IPv6 ND, that's the equivalent of not having ARP in IPv4. So IPv6 will not be usable.

If you really want to disable IPv6 temporarily, issue the command:

sudo sysctl net.ipv6.conf.all.disable_ipv6=1

You could add this to a system startup file in order to disable it on each boot, or use your distribution's supported method to tweak sysctl variables. (On Ubuntu that would be creating a file in /etc/sysctl.d with the content net.ipv6.conf.all.disable_ipv6=1.)

If you want to disable other aspects of IPv6, run the command sysctl -a | grep ipv6 to see what options you have. You could, for example, disable the acceptance of DAD (duplicate address detection) packets, or the acceptance of RA (router advertisement) packets.

share|improve this answer

You should disable radvd on the advertising machine. The configuration file is usually in /etc/radvd.conf

share|improve this answer
    
What if the OP can't guarantee that all advertising routers have been removed from the network? (Someone might have set up a malicious "router" that tries to intercept IPv6 traffic, the router might not be under the OP's control, etc) –  Mike Nov 9 '11 at 18:01
    
@Mike, wireshark is the standard tool to answer your question. My answer makes the assumption he is capable of tracing traffic back to the source. –  Mike Pennington Nov 9 '11 at 18:22
    
By the way, here are some good tools (other than Wireshark, which will of course do the job) for troubleshooting ND in IPv6. –  Mike Nov 9 '11 at 18:51

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.