interface-mtu check-mode

Function

The interface-mtu check-mode command configures an interface MTU check mode.

By default, the device compares the interface MTU with a packet's length.

Format

interface-mtu check-mode { ip | label-contained-length } slot slot-id

Parameters

Parameter Description Value
ip

Configures the device to compare the interface MTU with a packet's length.

-

label-contained-length

Configures the device to compare the interface MTU with the sum of a packet's label length and packet length.

-

slot slot-id

Specifies the slot ID of a board for which an interface MTU check mode is to be configured.

-

Views

System view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
forwarding write

Usage Guidelines

Usage Scenario

To improve packet transmission efficiency, an interface MTU is usually configured to restrict the maximum length of packets that can be permitted. The Router can check whether a packet meets an interface MTU requirement by comparing the interface MTU with a packet's length or with the sum of a packet's label length and packet length. To specify the interface MTU check mode, run the interface-mtu check-mode command.

The two check modes apply to different scenarios:

  • ip: applies to IP forwarding scenarios.
  • label-contained-length: applies to MPLS forwarding scenarios.

Precautions

In VS mode, the interface-mtu check-mode command can be run only on admin VS to be shared by all VSs and is unconfigurable on VSn.

Example

# Configure the device to compare the interface MTU with the sum of a packet's label length and packet length for packets on the board in slot 1.
<HUAWEI> system-view
[~HUAWEI] interface-mtu check-mode label-contained-length slot 1
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
Next topic >