Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Host with static IPv6 also gets IPv6 from RA
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
freke
Veteran
Veteran


Joined: 23 Jan 2003
Posts: 1089
Location: Somewhere in Denmark

PostPosted: Sat Feb 04, 2012 9:05 pm    Post subject: [SOLVED] Host with static IPv6 also gets IPv6 from RA Reply with quote

I've got a couple of hosts (mail-server and dns-server) whith static IPv6s.
They do - however - also get an IPv6 from my address-space from my firewall.
Code:
eth0      Link encap:Ethernet  HWaddr 00:24:81:59:98:22
          inet addr:10.0.0.251  Bcast:10.0.1.255  Mask:255.255.254.0
          inet6 addr: 2001:470:28:4a6::4/64 Scope:Global
          inet6 addr: 2001:470:28:4a6:224:81ff:fe59:9822/64 Scope:Global

They're supposed to get the second IPv6 (which is based on the MAC)?


Last edited by freke on Sun Feb 05, 2012 8:07 am; edited 1 time in total
Back to top
View user's profile Send private message
truc
Advocate
Advocate


Joined: 25 Jul 2005
Posts: 3199

PostPosted: Sat Feb 04, 2012 10:55 pm    Post subject: Reply with quote

yes unless you explicitly disable autoconf (or do not accept ra)
Code:
net.ipv6.conf.all.accept_ra
net.ipv6.conf.all.autoconf

_________________
The End of the Internet!
Back to top
View user's profile Send private message
gentoo_ram
Guru
Guru


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

PostPosted: Sun Feb 05, 2012 1:49 am    Post subject: Reply with quote

Don't worry. It's normal in IPv6 to have multiple addresses.
Back to top
View user's profile Send private message
freke
Veteran
Veteran


Joined: 23 Jan 2003
Posts: 1089
Location: Somewhere in Denmark

PostPosted: Sun Feb 05, 2012 8:07 am    Post subject: Reply with quote

Thanks - I'll stop worrying and assume my network is fine :)
Back to top
View user's profile Send private message
freke
Veteran
Veteran


Joined: 23 Jan 2003
Posts: 1089
Location: Somewhere in Denmark

PostPosted: Tue Aug 09, 2022 9:11 pm    Post subject: Reply with quote

I know this is a very old thread, but finally figured out what was causing me troubles (even after disabling autoconf in my sysctl.conf).
The autoconf-addresses messed with my setup/allowed hosts for mail/mysql etc. so for a LONG time I've had a init to delete the autoconf-address.

BUT during a migration I discovered that I started network before sysctl.conf was applied - hence my woes.

Really solved at last!
Back to top
View user's profile Send private message
lost+found
Guru
Guru


Joined: 15 Nov 2004
Posts: 512
Location: North~Sea~Coa~s~~t~~~

PostPosted: Mon Dec 05, 2022 11:44 am    Post subject: Reply with quote

In case someone lands here for information, try this also... The following combo worked for me, where my router advertises DHCPv6 + SLAAC:

/etc/sysctl.conf, append:
Code:
net.ipv6.conf.default.autoconf = 0
net.ipv6.conf.all.autoconf = 0

No 'accept_ra' or 'use_tempaddr' options set - kernel defaults.

/etc/dhcpcd.conf, append:
Code:
ipv6ra_noautoconf

The 'slaac private' option doesn't matter.

/etc/conf.d/net, (un)set 'autoconf' per interface:
Code:
preup() {
   echo 0 > /proc/sys/net/ipv6/conf/eth0/autoconf
}

A network bridge 'br0' defaults to 0.

Cheers!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo 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