mtu (MPLS-L2VPN instance view)

Function

The mtu command configures the MTU of an MPLS L2VPN instance.

The undo mtu command restores the default configuration.

By default, the MTU of an MPLS L2VPN instance is 1500 bytes.

Format

mtu mtu

undo mtu

Parameters

Parameter Description Value
mtu

Specifies the MTU.

The value is a decimal integer that can be 0 or ranges from 46 to 16352.

Views

MPLS-L2VPN instance view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
l2vpn write

Usage Guidelines

Usage Scenario

The MTU size determines the maximum packet size allowed by a VPWS network. If the MTU is greater than the maximum packet size allowed by a VPWS network or an intermediate node (P), packet fragmentation or even drop will occur, affecting network transmission. The MTU is one of the VPWS negotiation parameters. If the MTUs of the same L2VPN instance on the endpoint PEs are different, the two PEs cannot exchange reachability information or establish a PW. An appropriate MTU must be set for an L2VPN instance based on the MTU of the interface bound to the L2VPN instance. The MTU of an L2VPN instance must be less than or equal to the MTU of the interface bound to the L2VPN instance.

Prerequisites

The MPLS-L2VPN instance view has been displayed using the mpls l2vpn l2vpn-name command.

Configuration Impact

The MTU of an MPLS L2VPN instance cannot be changed after VPN targets are configured for the MPLS L2VPN instance using the vpn-target (MPLS-L2VPN instance view).

Precautions

The devices of some vendors cannot perform the MTU match check for MPLS L2VPN instances. When a Huawei device interworks with a non-Huawei device on a BGP VPWS network, perform either of the following operations on the Huawei device to ensure that the VC can go Up:

  • Set the MTU of the MPLS L2VPN instance on the Huawei device to be the same as that on the non-Huawei device.
  • Run the ignore-mtu-match (MPLS-L2VPN instance view) command on the Huawei device to disable the device from performing the MTU match check.

Example

# Configure the MTU as 1000 bytes for an MPLS L2VPN instance named vpn1.
<HUAWEI> system-view
[~HUAWEI] mpls l2vpn
[*HUAWEI-l2vpn] quit
[*HUAWEI] mpls l2vpn vpn1 encapsulation ethernet
[*HUAWEI-mpls-l2vpn-vpn1] route-distinguisher 100:1
[*HUAWEI-mpls-l2vpn-vpn1] mtu 1000
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >