How do I change the jumbo frame size?

ifconfig eth2 mtu 2022

Is it possible to change the jumbo frame size of the NIC by setting as above?

  • INFO​

NIC: connect x-5

OS: centOS 7.2

Hello HC,

Thank you for posting your question on the NVIDIA/Mellanox Community.

Our adapters support jumbo frames, so yes you can set the MTU size based on the ‘ifconfig’ syntax you have provided.

As ‘ifconfig’ is deprecated, you can also use:

ip link set dev mtu

Example output:

ip link set dev eno2 mtu 2022

ip link sh eno2

3: eno2: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 2022 qdisc mq state DOWN mode DEFAULT qlen 1000

link/ether 0c:c4:7a:32:01:3d brd ff:ff:ff:ff:ff:ff

Thank you,

~NVIDIA/Mellanox Support