Linux: network: dhcp: mtu 这个里面也有关于网卡的MTU设置;

https://linux.die.net/man/5/dhcp-options

需注意这个DHCP配置选项。
option interface-mtu uint16;
This option specifies the MTU to use on this interface. The minimum legal value for the MTU is 68.

假如在网卡的配置文件中设置了dhcp获取IP信息,可能导致这个网卡的MTU设置会跟着dhcp中的走,而不是网卡的配置信息。
/etc/sysconfig/network-scripts/ifcfg-eth6

BOOTPROTO=dhcp
MTU=1500 、、、 这个值可能会被 覆盖

使用到的脚本是
#rpm -qf /etc/sysconfig/network-scripts/ifup-eth
network-scripts-10.00.18-1.el8.x86_64
这个脚本就是先设置MTU,然后再做dhcp的请求,这样就会把mtu的值覆盖掉。

猜你喜欢

转载自blog.csdn.net/qq_36428903/article/details/132901975
MTU
今日推荐