mtu spread

Function

The mtu spread command sets an MTU value for IP packets to be sent by an interface and applies the MTU value to sub-interfaces created on the interface.

The undo mtu spread command restores the default MTU value for IP packets to be sent by an interface and deletes the MTU value applied to the sub-interfaces created on the interface.

By default, the MTU value is 1500 bytes for interfaces.

Format

mtu mtu spread

undo mtu spread

Parameters

Parameter Description Value
mtu

Specifies a path MTU, that is, the maximum size of IPv6 packets allowed to be sent along the path.

The value is an integer ranging from 46 to 9600, in bytes.

Views

100GE interface view, 10GE interface view, 25GE interface view, 400GE interface view, 40GE interface view, 50GE interface view, Eth-Trunk interface view, FlexE interface view, GE optical interface view, GE interface view, GE electrical interface view, PW-VE interface view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
interface-mgr write

Usage Guidelines

Usage Scenario

Sub-interfaces can inherit the MTU value of the interface where the sub-interfaces reside. In this situation, you can run the mtu spread command to change the MTU value of the interface. The MTU values of sub-interfaces are then changed in batches.

If a sub-interface has its own MTU configuration, the MTU value configured using the ipv6 mtu spread command does not take effect for the sub-interface MTU. This command takes effect only after the MTU configuration is deleted from the sub-interface.

Precautions

Example

# Set the MTU value for IP packets to be sent by GE 0/1/0 to 1300 bytes.
<HUAWEI> system-view
[~HUAWEI] interface GigabitEthernet0/1/0
[*HUAWEI-GigabitEthernet0/1/0] mtu 1300 spread
Copyright ? Huawei Technologies Co., Ltd.
Copyright ? Huawei Technologies Co., Ltd.
< Previous topic Next topic >