From 91d708c9769cd307dd35980616131d04d38a66fa Mon Sep 17 00:00:00 2001 From: Darren 'Tadgy' Austin Date: Sat, 16 Nov 2019 23:10:37 +0000 Subject: Flush interface before applying any IPs. Thanks to abga on LQ. --- rc.inet1 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rc.inet1 b/rc.inet1 index e61aa26..b19d017 100644 --- a/rc.inet1 +++ b/rc.inet1 @@ -320,6 +320,8 @@ if_up() { echo "0" >/proc/sys/net/ipv6/conf/${1}/accept_ra fi fi + debug_log "/sbin/ip address flush dev ${1}" + /sbin/ip address flush dev ${1} IF_UP=0 # Slackware historically favours dynamic configuration over fixed IP to configure interfaces, so keep that tradition: if [ "${USE_DHCP[$i]}" = "yes" ] || { [ -e /proc/sys/net/ipv6 ] && [ "${USE_DHCP6[$i]}" = "yes" ]; }; then # use dhcpcd -- cgit v1.2.3