we have some redhat servers , cluster servers ( as mabri cluster )

few questions:

  1. which linux command print the current MTU value ? , ( we not configured yet MTU in ifcfg file )

  2. what is the default MTU value ( let say we install redhat machine from ISO , then what is the default MTU ? )

  3. in which cases need to use high MTU values and what is the max value ?

  4. , what is the formula to calculate the MTU and according to what ?

  • The sysctl command will allow you to print and change current mtu settings. – Raman Sailopal Feb 23 '18 at 14:08
  • sysctl -a | grep -i mtu ת we got a lot of parameters which parameter refers to MTU ? – yael Feb 23 '18 at 14:15
  • If you are looking for the MTU of your NIC it will be net.ipv6.conf.{nic-name}.mtu – Raman Sailopal Feb 23 '18 at 14:22
  • ok but we see all this - net.ipv6.conf.all.mtu = 1280 net.ipv6.conf.default.mtu = 1280 net.ipv6.conf.eno16780032.mtu = 1500 net.ipv6.conf.lo.mtu = 65536 – yael Feb 23 '18 at 14:25
  • I want to ask also when we increase the MTU , what about the huge pages size ? – yael Feb 23 '18 at 14:28

In my opinion the question should not be "How to know ...if"; it is more suitable asking "When should I setup Jumbo frames".

As per your answers about MTU/Jumbo frames:

1) To see your MTU, either ifconfig or ip do:

$ ifconfig
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet  netmask  broadcast
        ether 00:0c:29:40:68:ee  txqueuelen 1000  (Ethernet)
        RX packets 50182  bytes 22054712 (21.0 MiB)
        RX errors 0  dropped 3  overruns 0  frame 0
        TX packets 6674  bytes 838613 (818.9 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

Or with ip:

$ ip addr show eth0
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
    link/ether 00:0c:29:40:68:ee brd ff:ff:ff:ff:ff:ff
    inet brd scope global eth0
       valid_lft forever preferred_lft forever

Or more simply:

$ ip link show eth0 | grep mtu
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP mode DEFAULT group default qlen 1000

2) Normally in IPv4, the default is MTU being 1500 (bytes).

3 and 4)

Usually the default MTU is fine. Rarely you have to change it for lower, temporarily, when dealing with communications problems, when firewalls are blocking ICMP packets which do not allow MTU to be negotiated.

The other situation you may wish to change MTU is for defining JUMBO frames.

However, you do not benefit alway of using JUMBO frames, only in specific cases like a dedicated VLAN of file servers or maybe DB servers, and on top of that, in a VLAN with JUMBO frames ALL the machines have to be configured for JUMBO frames; the switches also have to support JUMBO frames.

You surely do not want to use JUMBO frames for Internet facing systems, like web servers or DNS servers.

For setting in run time an interface for JUMBO frames:

ip link set eth0 mtu 9000

Or in /etc/network/interfaces (in Debian) for making it permanent:

auto eth0
iface eth0 inet static
    mtu 9000

For RH based systems:

Do vi /etc/sysconfig/network-scripts/ifcfg-eth0

and add:


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.