aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2000-03-20 16:31:24 +0000
committerBill Nottingham <notting@redhat.com>2000-03-20 16:31:24 +0000
commit172da86ac39fa5c6e9e51401ab1f8fa7d90a6bf4 (patch)
tree7081d5104e3b5d3bd7227644a4cb1df359454cc6
parent0e0696f7b4b5c0b5ab1d834542e4828ae7735a8f (diff)
downloadinitscripts-172da86ac39fa5c6e9e51401ab1f8fa7d90a6bf4.tar
initscripts-172da86ac39fa5c6e9e51401ab1f8fa7d90a6bf4.tar.gz
initscripts-172da86ac39fa5c6e9e51401ab1f8fa7d90a6bf4.tar.bz2
initscripts-172da86ac39fa5c6e9e51401ab1f8fa7d90a6bf4.tar.xz
initscripts-172da86ac39fa5c6e9e51401ab1f8fa7d90a6bf4.zip
allow for setting of MTU for a device
-rw-r--r--sysconfig.txt1
-rwxr-xr-xsysconfig/network-scripts/ifup4
2 files changed, 3 insertions, 2 deletions
diff --git a/sysconfig.txt b/sysconfig.txt
index cb603f22..369baf0c 100644
--- a/sysconfig.txt
+++ b/sysconfig.txt
@@ -308,6 +308,7 @@ Files in /etc/sysconfig/network-scripts/
ONBOOT=yes|no
USERCTL=yes|no
BOOTPROTO=none|bootp|dhcp
+ MTU=
PEERDNS=yes|no
modify /etc/resolv.conf if peer uses msdns extension (PPP only) or
DNS{1,2} are set, default to "yes".
diff --git a/sysconfig/network-scripts/ifup b/sysconfig/network-scripts/ifup
index 0089642c..d55762ba 100755
--- a/sysconfig/network-scripts/ifup
+++ b/sysconfig/network-scripts/ifup
@@ -110,8 +110,8 @@ else
if [ -z "$NETWORK" ]; then
eval `/bin/ipcalc --network ${IPADDR} ${NETMASK}`
fi
-
- ifconfig ${DEVICE} ${IPADDR} netmask ${NETMASK} broadcast ${BROADCAST} ${ARP:+arp}
+
+ ifconfig ${DEVICE} ${IPADDR} netmask ${NETMASK} broadcast ${BROADCAST} ${ARP:+arp} ${MTU:+mtu $MTU}
# don't re-add subnet route on 2.2 kernels, but add a route
# to a non-local subnet.
# stupid hack, but it should work