illumos-joyent icon indicating copy to clipboard operation
illumos-joyent copied to clipboard

lx: no ipv6 default route when using static addresses

Open wiedi opened this issue 7 years ago • 1 comments

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.

wiedi avatar Feb 22 '18 22:02 wiedi

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.

sjorge avatar Mar 01 '18 20:03 sjorge