[Bug 572202] New: ipv6 stateless autoconfiguration (SLAAC) doesn't work
http://bugzilla.novell.com/show_bug.cgi?id=572202 http://bugzilla.novell.com/show_bug.cgi?id=572202#c0 Summary: ipv6 stateless autoconfiguration (SLAAC) doesn't work Classification: openSUSE Product: openSUSE 11.2 Version: Final Platform: x86-64 OS/Version: openSUSE 11.2 Status: NEW Severity: Major Priority: P5 - None Component: Network AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: wjontofs@atriumberlin.de QAContact: qa@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; de; rv:1.9.1.6) Gecko/20091201 SUSE/3.5.6-1.1.1 Firefox/3.5.6 ipv6 stateless autoconfiguration (SLAAC) doesn't work: ipv6 is enabled, link local address is assigned, router advertisments arrive (sniffed with wireshark), nevertheless, SLAAC doen't occur, no global address is assigned. The same machine has no such problems with opensuse 11.1 (other distribution like ubuntu 9.10 work either). /proc/sys/net/ipv6/conf/all/autoconf is set to "1" /proc/sys/net/ipv6/conf/eth0/autoconf is set to "1" Reproducible: Always Steps to Reproduce: 1.ip address shows only link local ipv6 address 2. 3. Expected Results: assign ipv6 address in accordance with tthe router advertisements received -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=572202
http://bugzilla.novell.com/show_bug.cgi?id=572202#c
yang xiaoyu
https://bugzilla.novell.com/show_bug.cgi?id=572202
https://bugzilla.novell.com/show_bug.cgi?id=572202#c1
Ian Monroe
https://bugzilla.novell.com/show_bug.cgi?id=572202
https://bugzilla.novell.com/show_bug.cgi?id=572202#c2
Aaron Burgemeister
https://bugzilla.novell.com/show_bug.cgi?id=572202
https://bugzilla.novell.com/show_bug.cgi?id=572202#c3
--- Comment #3 from Walter Jontofsohn
https://bugzilla.novell.com/show_bug.cgi?id=572202
https://bugzilla.novell.com/show_bug.cgi?id=572202#c4
andrea florio
https://bugzilla.novell.com/show_bug.cgi?id=572202
https://bugzilla.novell.com/show_bug.cgi?id=572202#c5
andrea florio
https://bugzilla.novell.com/show_bug.cgi?id=572202
https://bugzilla.novell.com/show_bug.cgi?id=572202#c
zj jia
https://bugzilla.novell.com/show_bug.cgi?id=572202
https://bugzilla.novell.com/show_bug.cgi?id=572202#c6
Li Bin
https://bugzilla.novell.com/show_bug.cgi?id=572202
https://bugzilla.novell.com/show_bug.cgi?id=572202#c7
--- Comment #7 from andrea florio
https://bugzilla.novell.com/show_bug.cgi?id=572202
https://bugzilla.novell.com/show_bug.cgi?id=572202#c8
Marius Tomaschewski
https://bugzilla.novell.com/show_bug.cgi?id=572202
https://bugzilla.novell.com/show_bug.cgi?id=572202#c9
andrea florio
At the moment I don't have any idea what this could be... works for me. Did you enabled ipv6 forwarding? For example by adding:
net.ipv6.conf.all.forwarding = 1
(with "default" or interface name instead of "all"?)
to /etc/sysctl.conf or /etc/sysconfig/network/ifsysctl or by setting the IPV6_FORWARD=yes variable in /etc/sysconfig/sysctl (DEPRECATED)?
Enabling ipv6 forwarding on a host disables autoconfig.
that was the issue. i set it manually to 0 and it now worked p.s. i never manually apply that line to sysctl myself. i added both lines setting it to 0 and it worked.
Could you attach the "radvdump" output? You can make your ipv6 addresses anonymous if you like, e.g. by replacing the prefix with 2001:DB8: ... (the documentation prefix).
In stateless case it should look like this (only the most important flags):
interface eth0 { AdvManagedFlag off; # get IP-Address via dhcpv6 AdvOtherConfigFlag off; # get Other config via dhcpv6
prefix 2001:DB8:aaaa::/64 { AdvAutonomous on; # Allows host to assign address itself } }
[in statefull autoconf case at least the AdvManagedFlag is on].
linux-kenv:~ # radvdump # # radvd configuration generated by radvdump 1.3 # based on Router Advertisement from fe80::217:5aff:fe0c:ece7 # received by interface wlan0 # interface wlan0 { AdvSendAdvert on; # Note: {Min,Max}RtrAdvInterval cannot be obtained with radvdump AdvManagedFlag off; AdvOtherConfigFlag on; AdvReachableTime 0; AdvRetransTimer 0; AdvCurHopLimit 64; AdvDefaultLifetime 1800; AdvHomeAgentFlag off; AdvDefaultPreference medium; AdvSourceLLAddress on; AdvLinkMTU 1500; prefix 2001:470:1f09:XXXX::/64 { AdvValidLifetime 2592000; AdvPreferredLifetime 604800; AdvOnLink on; AdvAutonomous on; AdvRouterAddr off; }; # End of prefix definition }; # End of interface definition
Further, please also attach the /etc/sysconfig/network/ifcfg-eth0 file and the "sysctl net.ipv6.conf.all ; sysctl net.ipv6.conf.eth0" and the output of "ifstatus eth0".
Please replace "eth0" with the interface name you're using.
I don't know if this matters (don't remember what virtualbox is doing), but looking on the interfaces in comment 4...:
Important kernel difference on 11.4 or newer is that the order of bridge and vlan processing has been inverted: a bridge is processed before vlan.
This causes, that when there is a vlan and a bridge on the same physical interface (e.g. vlan42 or eth0.42 on eth0 and eth0 is port in br0), then the vlan interface does not work any more, because the bridge "eats" the traffic. The vlan has to be on top of the bridge for newer kernels.
that's not the case, since as i said, after making the first change you mentioned it worked! thank you -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=572202
https://bugzilla.novell.com/show_bug.cgi?id=572202#c10
--- Comment #10 from andrea florio
https://bugzilla.novell.com/show_bug.cgi?id=572202
https://bugzilla.novell.com/show_bug.cgi?id=572202#c11
--- Comment #11 from Marius Tomaschewski
i am wondering.. why forwarding was enable? i enabled from yast "enable ip forwarding" but there never was "enable ipv6 forwarding"
I guess, there were/is only one switch in yast2 that enables it for both. $ grep forward $(rpm -ql yast2-network) .. /usr/share/YaST2/modules/Routing.ycp: * Enable IP forwarding /usr/share/YaST2/modules/Routing.ycp: SCR::Execute(.target.bash, sformat("echo %1 > /proc/sys/net/ipv4/ip_forward", /usr/share/YaST2/modules/Routing.ycp: SCR::Execute(.target.bash, sformat("echo %1 > /proc/sys/net/ipv6/conf/all/forward .. /usr/share/YaST2/modules/Routing.ycp: .. void WriteIPForwarding() { if ( SuSEFirewall::IsEnabled() ){ SuSEFirewall::SetSupportRoute( Forward ); } else { SCR::Write(.sysconfig.sysctl.IP_FORWARD, Forward ? "yes" : "no"); SCR::Write(.sysconfig.sysctl.IPV6_FORWARD, Forward ? "yes" : "no"); SCR::Write(.sysconfig.sysctl, nil); } SCR::Execute(.target.bash, sformat("echo %1 > /proc/sys/net/ipv4/ip_forward", Forward ? 1 : 0)); SCR::Execute(.target.bash, sformat("echo %1 > /proc/sys/net/ipv6/conf/all/forwarding", Forward ? 1 : 0)); } .. Exactly, yast2 has only one switch for both. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=572202
https://bugzilla.novell.com/show_bug.cgi?id=572202#c12
Marius Tomaschewski
https://bugzilla.novell.com/show_bug.cgi?id=572202
https://bugzilla.novell.com/show_bug.cgi?id=572202#c13
Marius Tomaschewski
https://bugzilla.novell.com/show_bug.cgi?id=572202
https://bugzilla.novell.com/show_bug.cgi?id=572202#c14
andrea florio
-> yast2-network maintainer
Martin, there is one point for your todo list: the forwarding switch needs a split.
and a note that enabling that feature, stateless autoconfig won't work should be also added. thank again for your help. i'm editing the bug name to make it match the real bug. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=572202
https://bugzilla.novell.com/show_bug.cgi?id=572202#c
andrea florio
https://bugzilla.novell.com/show_bug.cgi?id=572202
https://bugzilla.novell.com/show_bug.cgi?id=572202#c16
Michal Filka
https://bugzilla.novell.com/show_bug.cgi?id=572202
https://bugzilla.novell.com/show_bug.cgi?id=572202#c17
Thomas Fehr
https://bugzilla.novell.com/show_bug.cgi?id=572202
https://bugzilla.novell.com/show_bug.cgi?id=572202#c18
Michal Filka
https://bugzilla.novell.com/show_bug.cgi?id=572202
https://bugzilla.novell.com/show_bug.cgi?id=572202#c
Michal Filka
https://bugzilla.novell.com/show_bug.cgi?id=572202
https://bugzilla.novell.com/show_bug.cgi?id=572202#c
Michal Filka
https://bugzilla.novell.com/show_bug.cgi?id=572202
https://bugzilla.novell.com/show_bug.cgi?id=572202#c
Martin Vidner
https://bugzilla.novell.com/show_bug.cgi?id=572202
https://bugzilla.novell.com/show_bug.cgi?id=572202#c19
--- Comment #19 from Martin Vidner
https://bugzilla.novell.com/show_bug.cgi?id=572202
https://bugzilla.novell.com/show_bug.cgi?id=572202#c20
Michal Filka
https://bugzilla.novell.com/show_bug.cgi?id=572202
https://bugzilla.novell.com/show_bug.cgi?id=572202#c
Martin Vidner
https://bugzilla.novell.com/show_bug.cgi?id=572202
https://bugzilla.novell.com/show_bug.cgi?id=572202#c21
Ludwig Nussel
participants (1)
-
bugzilla_noreply@novell.com