How to check the maximum transmission unit value in Cen…
In CentOS 7, you can check the Maximum Transmission Unit (MTU) value using the ifconfig command.
To begin, open the terminal and enter the following command to view information about the network interfaces:
ifconfig
To locate the network interface you want to view in the output, look for interfaces that typically start with “eth” or “enp.” Interface names may include eth0, eth1, enp0s3, and so on.
Next, type the following command to view the MTU value of the interface:
ifconfig <接口名称> | grep 'MTU'
Replace
For example, if you want to check the MTU value of the eth0 interface, you can enter the following command:
ifconfig eth0 | grep 'MTU'
The output of the command will display the MTU value of the interface.