Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Disable Autoconfigure for IPv6 [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
wswartzendruber
Veteran
Veteran


Joined: 23 Mar 2004
Posts: 1261
Location: Idaho, USA

PostPosted: Sat Jan 01, 2011 5:37 pm    Post subject: Disable Autoconfigure for IPv6 [SOLVED] Reply with quote

I'm using baselayout-2 and want to disable my interfaces from generating IPv6 addresses based on MAC. I want only one, static address that I assign, plus the link-local.

How can this be done?


Last edited by wswartzendruber on Sat Jan 01, 2011 8:13 pm; edited 1 time in total
Back to top
View user's profile Send private message
gentoo_ram
Guru
Guru


Joined: 25 Oct 2007
Posts: 418
Location: San Diego, California USA

PostPosted: Sat Jan 01, 2011 7:56 pm    Post subject: Reply with quote

You can have multiple IPv6 addresses on one interface. It's perfectly normal. One option is to just leave the autoconfigured address there and add other static addresses you want to add. It looks like to disable autoconfigure you can set /proc/sys/net/ipv6/conf/ethX/autoconf to zero.
Back to top
View user's profile Send private message
wswartzendruber
Veteran
Veteran


Joined: 23 Mar 2004
Posts: 1261
Location: Idaho, USA

PostPosted: Sat Jan 01, 2011 8:13 pm    Post subject: Reply with quote

I want only one global IPv6 address per interface. Those addresses are access, and I want as few as possible.

The only reliable way I found to resolve this is like so:

Code:
# Disable IPv6 autoconfiguration
net.ipv6.conf.eth0.accept_ra = 0
net.ipv6.conf.eth1.accept_ra = 0


Specifying "all" or "default" did not work for eth1, just eth0.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum