#!/bin/bash # It's a workaround for the annoying https://bugzilla.altlinux.org/show_bug.cgi?id=7763 . # It will be called by /etc/zcip/zcip-script after zcip sets new IP; as stated there: readonly IFACE="$1" IP="$2" ETHADDR="$3" # Hmm, what is meant by the "Ethernet address"? # Suppress the unwanted route, as it is observed. ip -stats route del default dev "$IFACE" scope link