Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I have a static IPv6 address I would like to assign. When I add the address to the /etc/sysconfig/network-scripts/ifcfg-eth0 file and restart networking I realize I get several IPv6 addresses. The first one is my static address (Prefix::host) and the second one is my autoconfiguration address (Prefix::MAC_ADDRESS).

I realized traffic was going out of the autoconfiguration address so my solution was to disable it. I added "IPV6_AUTOCONF=no" to the /etc/sysconfig/network-scripts/ifcfg-eth0 file. That solved the issue since the autoconfiguration address was gone.

However since there is no autoconfiguration I was not getting the default gateway. I believe Solaris has something called "token based IPv6" where you can specify the host portion of the address and autoconfiguration still runs to assign the prefix, dns, and default gateway. Can I do this in linux?

share|improve this question

2 Answers 2

One possible answer is DHCPv6 (on the network side). In my own experience where some type of IPv6 advertisement service (instead of DHCPv6) is available for addressing is that if I want my own "static" address, I have to statically define the rest (gateway, etc) as well.

share|improve this answer

You need to accept the Router Advertisement (RA) messages from the router. That will have the prefix (network) and prefix length as well as the default gateway.

Check out the kernel config vars

net.ipv6.conf.default.accept_ra

net.ipv6.conf.all.accept_ra

and make sure they are set to (typically) 1

Also, make sure that something on your network (usually your router) is sending the RAs.

share|improve this answer

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.