Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

ntpd doesn't plan well with vlans?



When bringing up VLANs on cas0, I notice that ntpd gets itself into a bit of bother
and logs some errors that find their way to the console:

Jun 8 22:36:50 netbsd ntpd[372]: bind(22) AF_INET6 fe80::203:baff:fe34:a1f5%6%6#123 flags 0x11 failed: Can't assign requested address Jun 8 22:36:50 netbsd ntpd[372]: bind(22) AF_INET6 fe80::203:baff:fe34:a1f5%6%6#123 flags 0x11 failed: Can't assign requested address Jun 8 22:36:50 netbsd ntpd[372]: unable to create socket on cas0 (7) for fe80::203:baff:fe34:a1f5%6#123 Jun 8 22:36:54 netbsd ntpd[372]: bind(26) AF_INET6 fe80::203:baff:fe34:a1f5%6%6#123 flags 0x11 failed: Can't assign requested address Jun 8 22:36:54 netbsd ntpd[372]: unable to create socket on cas0 (8) for fe80::203:baff:fe34:a1f5%6#123

... and of course the reason is a bit obvious:

cas0: flags=8a63<UP,BROADCAST,NOTRAILERS,RUNNING,ALLMULTI,SIMPLEX>cas0: flags=8a63<MULTICAST> mtu 1500
        ec_capabilities=1<VLAN_MTU>
        ec_enabled=1<VLAN_MTU>
        address: 00:03:ba:34:a1:f5
...
        inet6 fe80::203:baff:fe34:a1f5%cas0 prefixlen 64 scopeid 0x6
vlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        vlan: 200 parent: cas0
        address: 00:03:ba:34:a1:f5
...
vlan1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        vlan: 201 parent: cas0
        address: 00:03:ba:34:a1:f5

I've got three interfaces with the same MAC address!
Reminds me of SunOS 4 days...!

However there appear to be some other issues.

First up, vlan interfaces are created without a link local IPv6 address
assigned to them automatically...?

Next is that all of the VLAN interfaces have the same MAC address as
the parent. Could get interesting if you put more than one VLAN interface
in the same VLAN!

In the error message from ntpd, the scopeid is present twice:
fe80::203:baff:fe34:a1f5%6%6#123 flags 0x11
... this appears to be a ntpd bug.

Darren



Home | Main Index | Thread Index | Old Index