View previous topic :: View next topic |
Author |
Message |
freke Veteran

Joined: 23 Jan 2003 Posts: 1089 Location: Somewhere in Denmark
|
Posted: Sat Feb 04, 2012 9:05 pm Post subject: [SOLVED] Host with static IPv6 also gets IPv6 from RA |
|
|
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 |
|
 |
truc Advocate


Joined: 25 Jul 2005 Posts: 3199
|
Posted: Sat Feb 04, 2012 10:55 pm Post subject: |
|
|
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 |
|
 |
gentoo_ram Guru

Joined: 25 Oct 2007 Posts: 521 Location: San Diego, California USA
|
Posted: Sun Feb 05, 2012 1:49 am Post subject: |
|
|
Don't worry. It's normal in IPv6 to have multiple addresses. |
|
Back to top |
|
 |
freke Veteran

Joined: 23 Jan 2003 Posts: 1089 Location: Somewhere in Denmark
|
Posted: Sun Feb 05, 2012 8:07 am Post subject: |
|
|
Thanks - I'll stop worrying and assume my network is fine  |
|
Back to top |
|
 |
freke Veteran

Joined: 23 Jan 2003 Posts: 1089 Location: Somewhere in Denmark
|
Posted: Tue Aug 09, 2022 9:11 pm Post subject: |
|
|
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 |
|
 |
lost+found Guru


Joined: 15 Nov 2004 Posts: 512 Location: North~Sea~Coa~s~~t~~~
|
Posted: Mon Dec 05, 2022 11:44 am Post subject: |
|
|
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:
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 |
|
 |
|