The mru command configures a maximum receive unit (MRU) for an interface.
The undo mru command restores the default MRU for an interface.
By default, no MRU is configured, and the length of the received data packet is not compared with the MRU.
Parameter | Description | Value |
---|---|---|
mru-value |
Specifies an MRU for an interface. It is recommended that you do not change the MRU in normal cases. Some protocols have limitations on the smallest packet. If a small MRU is configured, protocol neighbor relationships cannot be established. |
The value is an integer ranging from 46 to 9600, in bytes. |
100GE interface view, 10G LAN interface view, 10G WAN interface view, 25GE interface view, 400GE interface view, 40GE interface view, Eth-Trunk sub-interface view, Eth-Trunk interface view, GE sub-interface view, GE interface view, Global-VE layer2 subinterface view, Global VE sub-interface view, PW-VE sub-interface view, VBDIF interface view, VE layer2 subinterface view, VE sub-interface view, VLANIF interface view, Layer 2 sub-interface view, Management interface view
Usage Scenario
In some cases, the maximum length of a received data frame needs to be limited at the IP layer. After receiving an IP data packet, the IP layer obtains the interface's MRU and compares the MRU with the length of the received data packet. If the length (excluding the data link layer) of the received data packet is greater than the MRU, the data packet is discarded.
Configuration Impact
When the length of protocol packets received on an interface is greater than the MRU configured on the interface, protocol packet loss occurs. Therefore, setting the MRU to a value greater than the MTU is recommended.
Precautions
If the total length of the packets received by the interface minus the length of the Layer 2 header of the packets is greater than the MRU configured on the interface, the packets are discarded.
The following lengths are compared with the MRU: