dhcpcd-discuss

dhcpcd on Arch doing slaac - ipv6_addaddr1: Invalid argument

Mitchell Ferguson

Thu Oct 04 07:13:33 2018

Hello there!

I'm trying to get IPv6 working on my network behind my new pfsense
box. I'm running slaac-only right now. When I run dhcpcd
7.0.8.r16.gd703ebf5-1 (i.e. dhcpcd-git on the AUR), dhcpcd fails when
trying to add the address to the adapter. All the other things like
routes and dns servers add fine. I can manually add the exact same
address which dhcpcd tried to add to the adapter myself, and it works
fine and routes. Even after adding the address manually, dhcpcd is
stuck in a loop trying to add the address and failing.

I've tested and replicated this issue on two seperate computers on the same LAN.

Here's my radvd.conf on pfsense:


    interface em1 {
            AdvSendAdvert on;
            MinRtrAdvInterval 5;
            MaxRtrAdvInterval 20;
            AdvLinkMTU 1500;
            AdvDefaultPreference medium;
            prefix 2406:e302:8925::/60 {
                    DeprecatePrefix on;
                    AdvOnLink on;
                    AdvAutonomous on;
                    AdvRouterAddr on;
                    AdvValidLifetime 86400;
                    AdvPreferredLifetime 14400;
            };
            route ::/0 {
                    AdvRoutePreference medium;
                    RemoveRoute on;
            };
            RDNSS 2406:e302:8925:0:2e8:4cff:fe68:9ed2 { };
            DNSSL home  { };
    };



Here's what happens on linux: (edited for brevity and readability)

    % ip a
    2: ens1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state
UP group default qlen 1000
        link/ether 98:4b:e1:4c:be:ff brd ff:ff:ff:ff:ff:ff
        inet 192.168.178.234/24 brd 192.168.178.255 scope global
noprefixroute ens1
           valid_lft forever preferred_lft forever
        inet6 fe80::7df5:39a9:829a:b63c/64 scope link
           valid_lft forever preferred_lft forever


    % s status dhcpcd.service
    ● dhcpcd.service - dhcpcd on all interfaces
       Loaded: loaded (/usr/lib/systemd/system/dhcpcd.service;
enabled; vendor preset: disabled)
       Active: active (running) since Thu 2018-10-04 19:41:08 NZDT; 7s ago
      Process: 10084 ExecStop=/usr/bin/dhcpcd -x (code=exited, status=0/SUCCESS)
      Process: 10087 ExecStart=/usr/bin/dhcpcd -q -b (code=exited,
status=0/SUCCESS)
       CGroup: /system.slice/dhcpcd.service
               └─10088 /usr/bin/dhcpcd -q -b

    Oct 04 19:41:08  dhcpcd[10088]: ens1: adding address
2406:e302:8925:0:d9f5:7ee1:1918:185c/60
    Oct 04 19:41:08  dhcpcd[10088]: ipv6_addaddr1: Invalid argument
    Oct 04 19:41:08  dhcpcd[10088]: ens1: adding route to 2406:e302:8925::/60
    Oct 04 19:41:08  dhcpcd[10088]: ens1: adding default route via fe80::1:1
    Oct 04 19:41:09  dhcpcd[10088]: ens1: rebinding lease of 192.168.178.234
    Oct 04 19:41:09  dhcpcd[10088]: ens1: leased 192.168.178.234 for
5954 seconds
    Oct 04 19:41:09  dhcpcd[10088]: ens1: adding route to 192.168.178.0/24
    Oct 04 19:41:09  dhcpcd[10088]: ens1: adding default route via 192.168.178.1
    Oct 04 19:41:10  dhcpcd[10088]: ens1: adding address
2406:e302:8925:0:d9f5:7ee1:1918:185c/60
    Oct 04 19:41:10  dhcpcd[10088]: ipv6_addaddr1: Invalid argument



    % sudo ip a add 2406:e302:8925:0:d9f5:7ee1:1918:185c/60 dev ens1



    % ip a
    2: ens1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state
UP group default qlen 1000
        link/ether 98:4b:e1:4c:be:ff brd ff:ff:ff:ff:ff:ff
        inet 192.168.178.234/24 brd 192.168.178.255 scope global
noprefixroute ens1
           valid_lft forever preferred_lft forever
        inet6 2406:e302:8925:0:d9f5:7ee1:1918:185c/60 scope global
           valid_lft forever preferred_lft forever
        inet6 fe80::7df5:39a9:829a:b63c/64 scope link
           valid_lft forever preferred_lft forever



    % ping google.com
    PING google.com(syd15s06-in-x0e.1e100.net
(2404:6800:4006:80a::200e)) 56 data bytes
    64 bytes from syd15s06-in-x0e.1e100.net
(2404:6800:4006:80a::200e): icmp_seq=1 ttl=57 time=32.9 ms

Thanks for your time, and thanks for your hard work on dhcpcd!

Mitchell

Follow-Ups:
Re: dhcpcd on Arch doing slaac - ipv6_addaddr1: Invalid argumentRoy Marples
Archive administrator: postmaster@marples.name