[EMAIL PROTECTED] wrote:
I don't know...you're asking for a command to change the MTU, but indicating you have already changed it manually, so apparently you already know how.Hello!I'm sorry for the RTFM-type question, but I can't seem to find it. How do I set the MTU for eth0? Now before you tell me, "Hey, stupid, it's 'eth0_PXMTU=<mtu>' ", I've tried that, but it doesn't seem to work. When I reboot and type "ip show", it shows an MTU of 1500. In the interim I've manually specified an MTU of 1492 from the command line, but obviously that won't work in the event of a reboot. What am I missing?
AFAIK, to change the MTU on an interface, you would use the "ip link" command, which has an mtu option, ie:
ip link set eth0 mtu 1234
This should work for both Dachstein and Bering, although setting the MTU to something >1500 could be problematic for some NICs, and is probably driver dependent.
There are many ways to set this up at boot time, including:
- Modifying the if_up procedure in /etc/network.conf (probably Dachstein specific...I think Bering uses a different method to configure interfaces).
- Creating your own init script in /etc/init.d (probably configured to run in rcS.d/)
- Modify an existing init script to do what you need...I would suggest adding a new "bang" (!) command to /etc/init.d/modutils. There has already been a ! command added to hard-code MAC addresses, so this seems like a reasonable place to add MTU configuration as well. Note that this is also the earliest possible time to modify low-level interface settings...right after the driver module is loaded...so any issues with modifying an interface already in use should be non-existant
--
Charles Steinkuehler
[EMAIL PROTECTED]
-------------------------------------------------------
This sf.net email is sponsored by: Are you worried about your web server security? Click here for a FREE Thawte Apache SSL Guide and answer your Apache SSL security needs: http://www.gothawte.com/rd523.html
------------------------------------------------------------------------
leaf-user mailing list: [EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/leaf-user
SR FAQ: http://leaf-project.org/pub/doc/docmanager/docid_1891.html
