1

I am using RHEL 7 and trying to setup permanent MTU size to 8500. Not able to find a way to set it up permanently. The server does not have dhcp.conf file in it.

I am using below command for temporary solution. But the MTU size gets reset after server reboot. If anyone has luck achieving a permanent solution please suggest.

ifconfig eth0 mtu 8500 up
Piyush Patil
  • 140
  • 1
  • 10

3 Answers3

3

You can either add MTU=8500 to the config file in /etc/sysconfig/network-scripts directory (as per this page on the RHEL site).

Or, I expect there's a way to do it with nmcli - nmcli con show ... will list all the options - just look through that for MTU and then use nmcli con mod to update it.

shearn89
  • 3,403
  • 2
  • 15
  • 39
0

The MTU can be changed on the fly for testing.

You can set the MTU with this command: ip link set mtu 9000 eth0

but remember to add to ifcfg file to make permanent.

ppuschmann
  • 610
  • 1
  • 6
  • 16
Don
  • 1
0

Create /etc/dhcp/dhclient-eth0.conf and add the following lines to it

interface "eth0" {
supersede interface-mtu 1500;
}

For more details please refer to https://github.com/linux-enhancement/set_mtu.

Leon
  • 1