Reply
New Member
Posts: 4
Registered: ‎03-14-2018

USG DHCPv6-PD bug when using PPPoE

It appears that UniFi CloudKey 0.11.10 (UniFi Controller 5.8.28) generates a bad config for USG when using DHCPv6-PD over PPPoE, which prevents DHCPv6-PD client from working. The dhcpv6-pd configuration is duplicated on both eth0 and pppoe0 which causes a race condition. A DHCPv6 client starts on eth0 but never receives an address (as expected), but this causes DHCPv6 client on pppoe0 to fail with log messages: admin@trebuchet:~$ show dhcpv6-pd log Sep/10/2018 13:53:26: dhcp6_ctl_init: bind(control sock): Address already in use Sep/10/2018 13:53:26: client6_init: failed to initialize control channel There is in fact a DHCPv6 client running on eth0, but not pppoe0: admin@trebuchet:~$ ps -ef | grep dhcp root 3453 1 0 13:25 ? 00:00:00 /usr/sbin/dhcp6c -c /var/run/dhcp6c-eth0-pd.conf -p /var/run/dhcp6c-eth0-pd.pid -df eth0 root 5050 1 0 13:27 ? 00:00:00 /usr/sbin/dhcpd3 -f -pf /var/run/dhcpd-unused.pid -cf /opt/vyatta/etc/dhcpd.conf -lf /var/run/dhcpd.leases And there is no DHCPv6-PD configuration on any interfaces: admin@trebuchet:~$ show interfaces Codes: S - State, L - Link, u - Up, D - Down, A - Admin Down Interface IP Address S/L Description --------- ---------- --- ----------- eth0 - u/u WAN eth1 192.168.xxx.1/24 u/u LAN eth2 - u/u LAN2 eth2.xxy 192.168.xxy.1/24 u/u lo 127.0.0.1/8 u/u 192.168.aaa.1/32 ::1/128 pppoe0 zzz.zzz.zzz.zzz u/u 2001:db8:42:e98:b83e:b4c9:d6af:53ed/64 vti64 172.31.bbb.5/30 u/u vti65 172.31.bbb.1/30 u/u admin@trebuchet:~$ show configuration ... interfaces { ethernet eth0 { description WAN dhcpv6-pd { pd 0 { interface eth1 { prefix-id 6f } interface eth2.121 { prefix-id 79 } prefix-length 56 } rapid-commit enable } firewall { in { ipv6-name WANv6_IN name WAN_IN } local { ipv6-name WANv6_LOCAL name WAN_LOCAL } out { ipv6-name WANv6_OUT name WAN_OUT } } pppoe 0 { default-route none dhcpv6-pd { pd 0 { interface eth1 { prefix-id 6f } interface eth2.121 { prefix-id 79 } prefix-length 56 } rapid-commit enable } firewall { in { ipv6-name WANv6_IN name WAN_IN } local { ipv6-name WANv6_LOCAL name WAN_LOCAL } out { ipv6-name WANv6_OUT name WAN_OUT } } ipv6 { address { autoconf } enable { } } name-server none password xxxx user-id xxxx@xxxx.xxxx } } ... } Once the duplicate configuration on eth0 is removed, the DHCPv6-PD client can be started normally: admin@trebuchet:~$ configure [edit] admin@trebuchet# delete interfaces ethernet eth0 dhcpv6-pd [edit] admin@trebuchet# commit [ interfaces ethernet eth0 dhcpv6-pd ] Stopping daemon... [edit] admin@trebuchet# save Saving configuration to '/config/config.boot'... Done [edit] admin@trebuchet# exit exit admin@trebuchet:~$ renew dhcpv6-pd interface pppoe0 Starting new daemon... admin@trebuchet:~$ show dhcpv6-pd log Sep/10/2018 13:59:19: update_ia: status code for NA-0: no addresses Sep/10/2018 13:59:21: update_ia: status code for NA-0: no addresses Sep/10/2018 13:59:23: update_ia: status code for NA-0: no addresses And interfaces are configured using DHCPv6-PD: admin@trebuchet:~$ show interfaces Codes: S - State, L - Link, u - Up, D - Down, A - Admin Down Interface IP Address S/L Description --------- ---------- --- ----------- eth0 - u/u WAN eth1 192.168.xxx.1/24 u/u LAN 2001:db8:4127:986f:feec:daff:fe4d:496d/64 eth2 - u/u LAN2 eth2.xxy 192.168.xxy.1/24 u/u 2001:db8:4127:9879:feec:daff:fe4d:496e/64 lo 127.0.0.1/8 u/u 192.168.aaa.1/32 ::1/128 pppoe0 zzz.zzz.zzz.zzz u/u 2001:db8:42:e98:b83e:b4c9:d6af:53ed/64 vti64 172.31.bbb.5/30 u/u vti65 172.31.bbb.1/30 u/u
New Member
Posts: 4
Registered: ‎03-14-2018

Re: USG DHCPv6-PD bug when using PPPoE

Anyone else seeing this, or even using IPv6 over PPPoE? I know that IPv6 is considered a "beta" feature, but it's something I need and the new IPv6 support is why I retired my Juniper SRX100 for a USG. Should I raise a support case?
Member
Posts: 123
Registered: ‎07-14-2018
Kudos: 29
Solutions: 14

Re: USG DHCPv6-PD bug when using PPPoE

[ Edited ]

 It's known but unhandled till know.

I wrote down a possible workaround here here

 

Keep an eye on pppoe2 vs pppoe0 and the used VLAN 7

which you may not have to use (there are two parts with "vif 7")

New Member
Posts: 4
Registered: ‎03-14-2018

Re: USG DHCPv6-PD bug when using PPPoE

Thanks for the workaround. That will have to do until it's fixed properly.
Reply