summaryrefslogtreecommitdiffstats
path: root/src/lib/ip
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/ip')
-rw-r--r--src/lib/ip2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/ip b/src/lib/ip
index e144ee3..b627739 100644
--- a/src/lib/ip
+++ b/src/lib/ip
@@ -199,6 +199,8 @@ ip_unset() {
fi
[[ $DNS ]] && resolvconf -d "$Interface"
+ ip route flush dev "$Interface" &>/dev/null
+ ip -6 route flush dev "$Interface" &>/dev/null
ip addr flush dev "$Interface" scope host &>/dev/null
ip addr flush dev "$Interface" scope site &>/dev/null
ip addr flush dev "$Interface" scope global &>/dev/null