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

I have a scenario where appliances running Debian may have multiple network interfaces. I want my eth0 interface to get its address via SLAAC configuration, but I want the remaining interfaces to only have their link-local or manually configured IPv6 addresses.

Is this possible?

share|improve this question

1 Answer 1

up vote 4 down vote accepted

I keep answering my own questions today!

Adding the following to the appropriate section /etc/network/interfaces does the trick, e.g. eth1:

pre-up /sbin/sysctl -w net.ipv6.conf.eth1.autoconf=0

Found answer here.

UPDATE: actually, that just disables the creation of an IPv6 IP address - it still gets, for example, default routes for that interface. To disable SLAAC on the interface altogether, apparently what you actually want is net.ipv6.conf.eth1.accept_ra=0

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.