Commit 072c1d93 authored by Darren 'Tadgy' Austin's avatar Darren 'Tadgy' Austin

rc.inet1: sleep for 3 seconds after setting all the interface options/IPs. In...

rc.inet1: sleep for 3 seconds after setting all the interface options/IPs. In testing here this was necessary to prevent daemons reporting 'Cannot assign requested address' for IPv6 addresses when they attempt to bind() to the interface address.  This only seems to affect IPv6 addresses - IPv4 addresses seem to be immediately available to bind(); but a 3 second pause shouldn't hurt given that the other methods of configuration can block for up to 15 seconds.
parent a0f5687c
......@@ -292,6 +292,10 @@ if_up() {
echo "/etc/rc.d/rc.inet1: /sbin/ip link set dev ${1} promisc on" | $LOGGER
/sbin/ip link set dev ${1} promisc on
fi
# Some settings need a small time to come into effect on the interface.
# This mostly affects IPv6, which needs time to make the interfaces available for the
# daemons to bind() - without this delay, they fail to bind() v6 addresses.
sleep 3
fi
else
debug_log "${1} is already up, skipping"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment