illumos-joyent
illumos-joyent copied to clipboard
lx: no ipv6 default route when using static addresses
IPv6 with addrconf in LX seems to work fine, but when using a static address in.ndpd
is never started and so no default route is added.
In lib/brand/lx/lx_init/lxinit.c
there is an explicit check for do_addrconf
to determine if ndpd should be started so I'm a bit unsure if there is a reason NOT to start ndpd?
In very limited testing executing /native/usr/lib/inet/in.ndpd
manually looks like a good workaround.
As a workaround I currently have this in the crontab for root:
@reboot /native/usr/bin/awk '!/^($|[:space:]*#)/{ print "/native/usr/sbin/route add "$0 }' /etc/inet/static_routes | sh
You can now use the native route command to add static routes.