aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig/network-scripts
diff options
context:
space:
mode:
Diffstat (limited to 'sysconfig/network-scripts')
-rwxr-xr-xsysconfig/network-scripts/ifup2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysconfig/network-scripts/ifup b/sysconfig/network-scripts/ifup
index da639adb..66c53c37 100755
--- a/sysconfig/network-scripts/ifup
+++ b/sysconfig/network-scripts/ifup
@@ -254,7 +254,7 @@ else
arping -q -U -c 1 -I ${REALDEVICE} ${IPADDR} ) > /dev/null 2>&1 < /dev/null &
# Add a route for the subnet. Replace any existing route.
- if [ "${ISALIAS}" = no ]; then
+ if [ "${ISALIAS}" = no -a "${NETMASK}" != "255.255.255.255" ]; then
ip route replace ${NETWORK}/${PREFIX} ${SRC} dev ${REALDEVICE}
fi