On Sun, Apr 08, 2018 at 08:44:20AM +0200, Florian Obser wrote:
> On Sat, Apr 07, 2018 at 09:44:11PM +0200, Klemens Nanni wrote:
> > The latest snapshot's ramdisk fails to configure IPv6 addresses
> > automatically after setting the AUTOCONF6 flag on my T5220's egress
> > interface.
> 
> You mean this used to work (when?) or you mean this is the first time
> you tried?
Very first boot, no prior sparc64 experience.

> Can you get the normal slaacd onto the install medium and run it with
> -dvv please?
> 
> Either ftp it onto the ramdisk after you have boot it access it
> from the installed root filesystem in the ramdisk (i.e. /mnt/sbin/slaacd 
> -dvv).
> 
> You will have two slaacds running who might fight amongst each other
> but for debugging purposes this doesn't matter.

On the router:

        apu2# tcpdump -ni vether0 'icmp6 and ip6[40] = 133 or ip6[40] = 134'
        tcpdump: listening on vether0, link-type EN10MB

With bsd.rd from yesterday's snapshot:

        rd# ifconfig em0 inet6 autoconf
        rd# ifconfig em0
        em0: flags=208843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST,AUTOCONF6> mtu 
1500
                lladdr 00:14:4f:d5:1b:dc
                llprio 3
                media: Ethernet autoselect (1000baseT 
full-duplex,rxpause,txpause)
                status: active
                inet6 fe80::9f0f:d4f0:df3a:ecd7%em0 prefixlen 64 scopeid 0x1

Meanwhile:

        14:53:39.004702 fe80::f384:dbb3:8b49:a3d2 > ff02::1: icmp6: router 
advertisement

Still no solicitations or advertisment processing, configuring manually:

        rd# ifconfig em0 | sed /inet6/!d
                inet6 fe80::9f0f:d4f0:df3a:ecd7%em0 prefixlen 64 scopeid 0x1
        rd# route add -inet6 default fe80::f384:dbb3:8b49:a3d2%em0
        add net default: gateway fe80::f384:dbb3:8b49:a3d2%em0
        rd# ifconfig em0 inet6 fd00::10

Running full slaacd from yesterday's snapshot:

        rd# ftp http://[fd00::2]/sbin/slaacd
        Trying fd00::2...
        Requesting http://[fd00::2]/sbin/slaacd
        424768 bytes received in 3.66 seconds (113.27 KB/s)
        rd# chmod +x slaacd
        rd# ./slaacd -dvv
        startup
        update_autoconf_addresses: IP: fd00::10
        start_probe: iface 1: sleeping for 798637usec
        iface_timeout[1]: IF_DELAY
        send_solicitation(1)
        ICMPv6 type(134), code(0) from fe80::f384:dbb3:8b49:a3d2%em0 of length 
96
        ---
        RA from fe80::f384:dbb3:8b49:a3d2%em0
                Cur Hop Limit: 64
                Managed address configuration: 0
                Other configuration: 1
                Router Preference: medium
                Router Lifetime: 1800s
                Reachable Time: 0ms
                Retrans Timer: 0ms
                Option: 1 (len: 8)
                        ND_OPT_SOURCE_LINKADDR: fe:e1:ba:d0:06:ff:03:04
                Option: 3 (len: 32)
                        ND_OPT_PREFIX_INFORMATION: fd00::/64
                                On-link: 1
                                Autonomous address-configuration: 1
                                vltime: 2592000
                                pltime: 604800
                Option: 3 (len: 32)
                        ND_OPT_PREFIX_INFORMATION: xxxx:xxxx:xxxx:xxxx::/64
                                On-link: 1
                                Autonomous address-configuration: 1
                                vltime: 2592000
                                pltime: 604800
                Option: 25 (len: 24)
                        ND_OPT_RDNSS: lifetime: 900
                                fd00::1
        ICMPv6 type(134), code(0) from fe80::f384:dbb3:8b49:a3d2%em0 of length 
96
        gen_dfr_proposal: iface 1: fe80::f384:dbb3:8b49:a3d2%em0: 0 s
        gen_address_proposal: iface 1: xxxx:xxxx:xxxx:xxxx:1514:1e1:90cb:cc54: 
0 s
        gen_address_proposal: iface 1: xxxx:xxxx:xxxx:xxxx:7c62:cbf2:4ce3:2db5: 
0 s
        gen_address_proposal: iface 1: fd00::56be:53ea:5e57:fa24: 0 s
        gen_address_proposal: iface 1: fd00::e197:ea1a:9640:532e: 0 s
        dfr_proposal_timeout: iface 1: fe80::f384:dbb3:8b49:a3d2%em0 
[NOT_CONFIGURED]
        dfr_proposal_timeout: scheduling new timeout in 1s.532772
        address_proposal_timeout: iface 1: fd00::e197:ea1a:9640:532e 
[NOT_CONFIGURED], priv: y                                                       
                                             [2/2877]
        address_proposal_timeout: scheduling new timeout in 1s.506264
        address_proposal_timeout: iface 1: fd00::56be:53ea:5e57:fa24 
[NOT_CONFIGURED], priv: n
        address_proposal_timeout: scheduling new timeout in 1s.727959
        address_proposal_timeout: iface 1: 
xxxx:xxxx:xxxx:xxxx:1514:1e1:90cb:cc54 [NOT_CONFIGURED], priv: n
        address_proposal_timeout: scheduling new timeout in 1s.487318
        address_proposal_timeout: iface 1: 
xxxx:xxxx:xxxx:xxxx:7c62:cbf2:4ce3:2db5 [NOT_CONFIGURED], priv: y
        address_proposal_timeout: scheduling new timeout in 1s.274050
        engine_dispatch_frontend: IMSG_PROPOSAL_ACK: 1 - 66124
        configure_dfr: 1, scheduling new timeout in 1785s.567054
        configure_dfr: 1
        engine_dispatch_frontend: IMSG_PROPOSAL_ACK: 2 - 66124
        timeout_from_lifetime: 1, scheduling new timeout in 86151s.436849
        configure_address: 1
        engine_dispatch_frontend: IMSG_PROPOSAL_ACK: 3 - 66124
        timeout_from_lifetime: 1, scheduling new timeout in 604785s.741315
        configure_address: 1
        engine_dispatch_frontend: IMSG_PROPOSAL_ACK: 4 - 66124
        timeout_from_lifetime: 1, scheduling new timeout in 604785s.747936
        configure_address: 1
        engine_dispatch_frontend: IMSG_PROPOSAL_ACK: 5 - 66124
        timeout_from_lifetime: 1, scheduling new timeout in 86133s.158291
        configure_address: 1
        configure_interface: em0
        RTM_NEWADDR: em0[1]
        configure_interface: em0
        RTM_NEWADDR: em0[1]
        configure_interface: em0
        RTM_NEWADDR: em0[1]
        configure_interface: em0
        RTM_NEWADDR: em0[1]
        iface_timeout[1]: IF_IDLE
        ^Cwaiting for children to terminate
        frontend exiting
        engine exiting
        terminating

On the wire:

        15:12:28.942098 fe80::9f0f:d4f0:df3a:ecd7 > ff02::2: icmp6: router 
solicitation

And SLAAC works as expected:

        # ifconfig em0
        em0: flags=208843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST,AUTOCONF6> mtu 
1500
                lladdr 00:14:4f:d5:1b:dc
                llprio 3
                groups: egress
                media: Ethernet autoselect (1000baseT 
full-duplex,rxpause,txpause)
                status: active
                inet6 fe80::9f0f:d4f0:df3a:ecd7%em0 prefixlen 64 scopeid 0x1
                inet6 fd00::10 prefixlen 64
                inet6 fd00::e197:ea1a:9640:532e prefixlen 64 autoconf 
autoconfprivacy pltime 86143 vltime 604777
                inet6 fd00::56be:53ea:5e57:fa24 prefixlen 64 autoconf pltime 
604777 vltime 2591977
                inet6 xxxx:xxxx:xxxx:xxxx:1514:1e1:90cb:cc54 prefixlen 64 
autoconf pltime 604777 vltime 2591977
                inet6 xxxx:xxxx:xxxx:xxxx:7c62:cbf2:4ce3:2db5 prefixlen 64 
autoconf autoconfprivacy pltime 86125 vltime 604777

Reply via email to