openwrt / odhcpd

This repository is a mirror of https://git.openwrt.org/?p=project/odhcpd.git. Pull requests will be accepted which will be merged in odhcpd.git
GNU General Public License v2.0
162 stars 98 forks source link

RAs with Router lifetime of 0 #155

Closed brianjmurrell closed 4 years ago

brianjmurrell commented 4 years ago

I have the following configuration:

config dhcp 'lan'
        option interface 'lan'
        option dhcpv6 'disabled'
        option ra 'server'
        option ra_management '0'
        list dns 'fd31:aeb1:48df::2'
        option prefix_filter 'fc00:0:0:0:0:0:0:0/7'
        option ra_preference 'high'

config dhcp 'lan1'
        option interface 'lan1'
        option dhcpv6 'disabled'
        option ra 'server'
        option ra_management '0'
        list dns 'fd31:aeb1:48df::2'
        option prefix_filter '2001:123:ab:123::/64'
        option ra_preference 'medium'

and am getting two RAs from odhcpd, one for each prefix. However the first one is sent with a Router lifetime of 0 and the second one is sent with a Router lifetime of 1800.

I have installed on my OpenWRT 18.06.4 router:

# opkg info odhcpd-ipv6only
Package: odhcpd-ipv6only
Version: 1.15-3
Depends: libc, libubox, libuci, libubus, libnl-tiny
Status: install user installed
Section: net
Architecture: mips_24kc
Size: 28841
Filename: odhcpd-ipv6only_1.15-3_mips_24kc.ipk
Description: odhcpd is a daemon for serving and relaying IP management protocols to
 configure clients and downstream routers. It tries to follow the RFC 6204
 requirements for IPv6 home routers.

 This is a variant providing server services for RA, stateless and stateful
 DHCPv6,  prefix delegation and can be used to relay RA, DHCPv6 and NDP between
 routed (non-bridged) interfaces in case no delegated prefixes are available.
Installed-Time: 1570894498
brianjmurrell commented 4 years ago

Just updated to OpenWrt 19.07.1 r10911-c155900f66 with odhcpd-ipv6only - 2019-12-16-e53fec89-3 and this problem still occurs.

brianjmurrell commented 4 years ago

Any thoughts on this?

brianjmurrell commented 4 years ago

Any thoughts? This is wreaking havoc in my network with IPv6 default route flapping as the RAs contradict each other.

Surely this can't be considered "OK".

brianjmurrell commented 4 years ago

Hrm. It seems that this is a duplicate of #133. I've added a new comment to clarify the suggestion made.