NOTE: This is for RHEL/centOS.
Currently my way of configuring the MTU is via GUI using system-config-network and setting the MTU to 4096. I would like a non-interactive script to do this instead.
How do you configure the MTU for all network adapters via a script?
UPDATE:
Changing the MTU for a specific network adapter using system-config-network will actually result in making a persistent change to the adapter's configuration. I need the script to also make changes that are persistent.
/etc/sysconfig/network-scripts/ifcfg-eth*files 2. iterate over the list 3. add a new line for each config fileMTU=40964. optionally do aservice network restart– Trevor Boyd Smith Oct 8 '12 at 15:57kickstart-option for setting the mtu. – Nils Oct 11 '12 at 20:41