aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xsysconfig/network-scripts/ifup11
1 files changed, 8 insertions, 3 deletions
diff --git a/sysconfig/network-scripts/ifup b/sysconfig/network-scripts/ifup
index c2931211..559052cb 100755
--- a/sysconfig/network-scripts/ifup
+++ b/sysconfig/network-scripts/ifup
@@ -123,6 +123,9 @@ fi
if [ -n "${MACADDR}" ]; then
ip link set ${DEVICE} address ${MACADDR}
fi
+if [ -n "${MTU}" ]; then
+ ip link set ${DEVICE} mtu ${MTU}
+fi
# Is there a firewall running, and does it look like one we configured?
FWACTIVE=
@@ -176,7 +179,7 @@ if [ -n "${DYNCONFIG}" ]; then
else
if [ -z "${IPADDR}" ]; then
# enable device without IP, useful for e.g. PPPoE
- ip link set ${DEVICE} up ${MTU:+mtu $MTU}
+ ip link set ${DEVICE} up
exec /etc/sysconfig/network-scripts/ifup-post ${CONFIG} ${2}
fi
@@ -196,8 +199,10 @@ else
eval `/bin/ipcalc --network ${IPADDR} ${NETMASK}`
fi
- [ -n "${ARP}" ] && \
- ip link set ${DEVICE} $(toggle_value arp $ARP)
+ [ -n "${ARP}${PROMISC}${ALLMULTI}" ] && \
+ ip link set ${DEVICE} $(toggle_value arp $ARP) \
+ $(toggle_value promisc $PROMISC) \
+ $(toggle_value allmulti $ALLMULTI)
if ! ip link set ${DEVICE} up ; then
echo $"Failed to bring up ${DEVICE}."