10-MPLS Command Reference

HomeSupportResource CenterReference GuidesCommand ReferencesH3C MSR810 2600 3600 Routers Command References(V7)-R0707-6W30110-MPLS Command Reference
10-L2VPN access to L3VPN or IP backbone commands

L2VPN access to L3VPN or IP backbone commands

The following compatibility matrix shows the support of hardware platforms for L2VPN access to L3VPN or IP backbone:

 

Hardware

Feature compatibility

MSR810, MSR810-W, MSR810-W-DB, MSR810-LM, MSR810-W-LM, MSR810-10-PoE, MSR810-LM-HK, MSR810-W-LM-HK, MSR810-LMS-EA

No

MSR810-LMS, MSR810-LUS

No

MSR2600-6-X1, MSR2600-10-X1

Yes

MSR 2630

Yes

MSR3600-28, MSR3600-51

Yes

MSR3600-28-SI, MSR3600-51-SI

No

MSR3600-28-X1, MSR3600-28-X1-DP, MSR3600-51-X1, MSR3600-51-X1-DP

Yes

MSR3610-I-DP, MSR3610-IE-DP

Yes

MSR3610-X1, MSR3610-X1-DP, MSR3610-X1-DC, MSR3610-X1-DP-DC

Yes

MSR 3610, MSR 3620, MSR 3620-DP, MSR 3640, MSR 3660

Yes

MSR3610-G, MSR3620-G

Yes

bandwidth

Use bandwidth to set the expected bandwidth for an interface.

Use undo bandwidth to restore the default.

Syntax

bandwidth bandwidth-value

undo bandwidth

Default

The expected bandwidth is 100000 kbps.

Views

L2VE interface view

L3VE interface view

Predefined user roles

network-admin

Parameters

bandwidth-value: Specifies the expected bandwidth in the range of 1 to 400000000 kbps.

Usage guidelines

The expected bandwidth for an interface affects the CBQ bandwidth and the link costs in OSPF, OSPFv3, and IS-IS. For more information, see ACL and QoS Configuration Guide and Layer 3—IP Routing Configuration Guide.

Examples

# Set the expected bandwidth for VE-L2VPN 100 to 10000 kbps.

<Sysname> system-view

[Sysname] interface ve-l2vpn 100

[Sysname-VE-L2VPN100] bandwidth 10000

# Set the expected bandwidth for VE-L3VPN 100 to 10000 kbps.

<Sysname> system-view

[Sysname] interface ve-l3vpn 100

[Sysname-VE-L3VPN100] bandwidth 10000

default

Use default to restore the default settings for an interface.

Syntax

default

Views

L2VE interface view

L3VE interface view

Predefined user roles

network-admin

Usage guidelines

CAUTION

CAUTION:

The default command might interrupt ongoing network services. Make sure you are fully aware of the impact of this command when you use it on a live network.

 

This command might fail to restore the default settings for some commands for reasons such as command dependencies or system restrictions. Use the display this command in interface view to identify these commands. Use their undo forms or follow the command reference to restore their default settings. If your restoration attempt still fails, follow the error message instructions to resolve the problem.

Examples

# Restore the default settings for VE-L2VPN 100.

<Sysname> system-view

[Sysname] interface ve-l2vpn 100

[Sysname-VE-L2VPN100] default

This command will restore the default settings. Continue? [Y/N]:y

# Restore the default settings for VE-L3VPN 100.

<Sysname> system-view

[Sysname] interface ve-l3vpn 100

[Sysname-VE-L3VPN100] default

This command will restore the default settings. Continue? [Y/N]:y

description

Use description to configure the description of an interface.

Use undo description to restore the default.

Syntax

description text

undo description

Default

The description of an interface is VE-L2VPNnumber Interface, for example, VE-L2VPN100 Interface.

Views

L2VE interface view

L3VE interface view

Predefined user roles

network-admin

Parameters

text: Specifies a description, a case-sensitive string of 1 to 255 characters.

Usage guidelines

Configure descriptions for different interfaces for identification and management purposes.

You can use the display interface command to display the configured interface description.

Examples

# Configure a description of L2VPN-Terminate for VE-L2VPN 100.

<Sysname> system-view

[Sysname] interface ve-l2vpn 100

[Sysname-VE-L2VPN100] description L2VPN-Terminate

# Configure a description of L3VPN-Access for VE-L3VPN 100.

<Sysname> system-view

[Sysname] interface ve-l3vpn 100

[Sysname-VE-L3VPN100] description L3VPN-Access

display interface ve-l2vpn

Use display interface ve-l2vpn to display L2VE interface information.

Syntax

display interface [ ve-l2vpn [ interface-number ] ] [ brief [ description | down ] ]

Views

Any view

Predefined user roles

network-admin

network-operator

Parameters

ve-l2vpn [ interface-number ]: Displays information about L2VE interfaces. The interface-number argument represents the number of an existing L2VE interface. If you do not specify the ve-l2vpn keyword, this command displays information about all interfaces on the device. If you specify the ve-l2vpn keyword but do not specify the interface-number argument, this command displays information about all L2VE interfaces.

brief: Displays brief interface information. If you do not specify this keyword, the command displays detailed interface information.

description: Displays complete interface descriptions. If you do not specify this keyword, the command displays only the first 27 characters of interface descriptions.

down: Displays information about interfaces in the physical state of DOWN and the causes. If you do not specify this keyword, the command displays information about interfaces in all states.

Examples

# Display information about VE-L2VPN 100.

<Sysname> display interface ve-l2vpn 100

VE-L2VPN100

Current state: UP

Line protocol state: UP

Description: VE-L2VPN100 Interface

Bandwidth: 100000kbps

Maximum transmission unit: 1500

Internet protocol processing: Disabled

IP Packet Frame Type:PKTFMT_ETHNT_2, Hardware Address: 0011-2200-0202

IPv6 Packet Frame Type:PKTFMT_ETHNT_2, Hardware Address: 0011-2200-0202

Link service is PWE3 ethernet mode

Physical: L2VE, baudrate: 100000000 bps

Last clearing of counters: Never

Last 300 seconds input rate: 0 bytes/sec, 0 bits/sec, 0 packets/sec

Last 300 seconds output rate: 0 bytes/sec, 0 bits/sec, 0 packets/sec

Input: 0 packets, 0 bytes, 0 drops

Output: 0 packets, 0 bytes, 0 drops

Table 1 Command output

Field

Description

VE-L2VPN100

Information about interface VE-L2VPN 100.

Current state

Physical link state of the interface:

·     Administratively DOWN—The interface has been shut down by using the shutdown command.

·     DOWN—The interface is administratively up, but its physical state is down (possibly because no physical link exists or the link has failed).

·     UP—The interface is both administratively and physically up.

Line protocol state

Data link layer state of the interface. The state is determined through automatic parameter negotiation at the data link layer.

·     UP—The data link layer protocol is up.

·     UP (spoofing)—The data link layer protocol is up, but the link is an on-demand link or does not exist. This attribute is typical of null interfaces and loopback interfaces.

·     DOWN—The data link layer protocol is down.

Description

Description of the interface.

Bandwidth

Expected bandwidth of the interface, in kbps.

Maximum transmission unit

MTU of the interface.

Internet protocol processing: Disabled

The interface cannot process IP packets.

Internet Address

IP address of the interface. The primary attribute indicates that the address is the primary IP address.

Link service

Link service mode:

·     VPLS mode—This mode is available when the interface is bound with a VPLS instance. For more information about VPLS instances, see "Configuring VPLS."

·     PWE3 ethernet mode—This mode is available when the interface is associated with a PW whose encapsulation type is Ethernet. For more information about PWs, see "Configuring MPLS L2VPN."

·     PWE3 vlan mode—This mode is available when the interface is associated with a PW whose encapsulation type is VLAN. For more information about PWs, see "Configuring MPLS L2VPN."

Physical: L2VE

Physical type of the interface: L2VE interface for terminating an MPLS L2VPN.

Last clearing of counters

Last time the counters were cleared by using the reset counters interface command.

If the reset counters interface command has never been executed since the device started up, this field displays Never.

Last 300 seconds input rate

Average input rate in the last 300 seconds.

Last 300 seconds output rate

Average output rate in the last 300 seconds.

 

# Display brief information about all L2VE interfaces.

<Sysname> display interface ve-l2vpn brief

Brief information on interfaces in route mode:

Link: ADM - administratively down; Stby - standby

Protocol: (s) - spoofing

Interface            Link Protocol Primary IP      Description

L2VE1                 DOWN DOWN      --

# Display brief information about VE-L2VPN 2, including the entire interface description.

<Sysname> display interface ve-l2vpn 2 brief description

Brief information on interfaces in route mode:

Link: ADM - administratively down; Stby - standby

Protocol: (s) - spoofing

Interface            Link Protocol Primary IP      Description

L2VE1                 DOWN DOWN     --

# Display information about interfaces in the physical state of DOWN and the causes.

<Sysname> display interface brief down

Brief information on interfaces in route mode:

Link: ADM - administratively down; Stby - standby

L2VE1                ADM    Administratively

L2VE2                DOWN   Not connected

Table 2 Command output

Field

Description

Brief information on interfaces in route mode:

Brief information about Layer 3 interfaces.

Interface

Abbreviated interface name.

Link

Physical link state of the interface:

·     UP—The interface is physically up.

·     DOWN—The interface is physically down.

·     ADM—The interface has been shut down by using the shutdown command. To restore the physical state of the interface, use the undo shutdown command.

·     Stby—The interface is a backup interface in standby state. To see the primary interface, use the display interface-backup state command.

Protocol

Data link layer protocol state of the interface:

·     UP—The data link layer protocol of the interface is up.

·     DOWN—The data link layer protocol of the interface is down.

·     UP(s)—The data link layer protocol of the interface is up, but the link is an on-demand link or does not exist. The (s) attribute represents the spoofing flag. This value is typical of null interfaces and loopback interfaces.

Primary IP

Primary IP address of the interface. This field displays two hyphens (--) if the interface does not have an IP address.

Description

Description of the interface.

Cause

Cause for the physical link state of an interface to be DOWN:

·     Administratively—The interface has been manually shut down by using the shutdown command. To restore the physical state of the interface, use the undo shutdown command.

·     Not connected—The tunnel is not established.

 

Related commands

reset counters interface ve-l2vpn

display interface ve-l3vpn

Use display interface ve-l3vpn to display L3VE interface information.

Syntax

display interface [ ve-l3vpn [ interface-number ] [ brief [ description | down ] ]

Views

Any view

Predefined user roles

network-admin

network-operator

Parameters

ve-l3vpn [ interface-number ]: Displays information about L3VE interfaces. The interface-number argument represents the number of an existing L3VE interface. If you do not specify the ve-l3vpn keyword, this command displays information about all interfaces on the device. If you specify the ve-l3vpn keyword but do not specify the interface-number argument, this command displays information about all L3VE interfaces.

brief: Displays brief interface information. If you do not specify this keyword, the command displays detailed interface information.

description: Displays complete interface descriptions. If you do not specify this keyword, the command displays only the first 27 characters of interface descriptions.

down: Displays information about interfaces in the physical state of DOWN and the causes. If you do not specify this keyword, the command displays information about interfaces in all states.

Examples

# Display information about interface VE-L3VPN 100.

<Sysname> display interface ve-l3vpn 100

VE-L3VPN100

Current state: UP

Line protocol state: UP

Description: VE-L3VPN100 Interface

Bandwidth: 100000kbps

Maximum transmission unit: 1500

Internet address: 2.2.2.2/24 (primary)

IP Packet Frame Type:PKTFMT_ETHNT_2, Hardware Address: 0011-2200-0202

IPv6 Packet Frame Type:PKTFMT_ETHNT_2, Hardware Address: 0011-2200-0202

Link service is PWE3 ethernet mode

Physical: L3VE, baudrate: 100000000 bps

Last clearing of counters: Never

Last 300 seconds input rate: 0 bytes/sec, 0 bits/sec, 0 packets/sec

Last 300 seconds output rate: 0 bytes/sec, 0 bits/sec, 0 packets/sec

Input: 0 packets, 0 bytes, 0 drops

Output: 0 packets, 0 bytes, 0 drops

Table 3 Command output

Field

Description

VE-L3VPN100

Information about interface VE-L3VPN 100.

Current state

Physical link state of the interface:

·     Administratively DOWN—The interface has been shut down by using the shutdown command.

·     DOWN—The interface is administratively up, but its physical state is down (possibly because no physical link exists or the link has failed).

·     UP—The interface is both administratively and physically up.

Line protocol state

Data link layer state of the interface. The state is determined through automatic parameter negotiation at the data link layer.

·     UP—The data link layer protocol is up.

·     UP (spoofing)—The data link layer protocol is up, but the link is an on-demand link or does not exist. This attribute is typical of null interfaces and loopback interfaces.

·     DOWN—The data link layer protocol is down.

Description

Description of the interface.

Bandwidth

Expected bandwidth of the interface, in kbps.

Maximum transmission unit

MTU of the interface.

Internet address: ip-address/mask-length (Type)

IP address of the interface and type of the address in parentheses.

Possible IP address types include:

·     Primary—Manually configured primary IP address.

·     Sub—Manually configured secondary IP address. If the interface has both primary and secondary IP addresses, the primary IP address is displayed. If the interface has only secondary IP addresses, the lowest secondary IP address is displayed.

·     DHCP-Allocated—DHCP allocated IP address. For more information, see DHCP client configuration in Layer 3—IP Services Configuration Guide.

·     BOOTP-Allocated—BOOTP allocated IP address. For more information, see BOOTP client configuration in Layer 3—IP Services Configuration Guide.

·     PPP-Negotiated—IP address assigned by a PPP server during PPP negotiation. For more information, see PPP configuration in Layer 2—WAN Access Configuration Guide.

·     Unnumbered—IP address borrowed from another interface.

·     Cellular-Allocated—IP address allocated through the modem-manufacturer's proprietary protocol. For more information, see 3G/4G modem management in Layer 2—WAN Access Configuration Guide.

·     MAD—IP address assigned to an IRF member device for MAD on the interface. For more information, see IRF configuration in Virtual Technologies Configuration Guide.

·     MTunnel—IP address of the multicast tunnel interface (MTI), which is the same as the IP address of the MVPN source interface. For more information, see multicast VPN configuration in IP Multicast Configuration Guide.

Internet protocol processing

The interface is not assigned an IP address and cannot process IP packets. The primary attribute indicates that the address is the primary IP address.

Link service

Link service mode:

·     VPLS mode—This mode is available when the interface is bound with a VPLS instance. For more information about VPLS instances, see "Configuring VPLS."

·     PWE3 ethernet mode—This mode is available when the interface is associated with a PW whose encapsulation type is Ethernet. For more information about PWs, see "Configuring MPLS L2VPN."

·     PWE3 vlan mode—This mode is available when the interface is associated with a PW whose encapsulation type is VLAN. For more information about PWs, see "Configuring MPLS L2VPN."

Physical: L3VE

Physical type of the interface: L3VE interface for accessing an MPLS L3VPN or IP backbone.

Last clearing of counters

Last time the counters were cleared by using the reset counters interface command.

If the reset counters interface command has never been executed since the device started up, this field displays Never.

Last 300 seconds input rate

Average input rate in the last 300 seconds.

Last 300 seconds output rate

Average output rate in the last 300 seconds.

Input: 0 packets, 0 bytes, 0 drops

Total input packet statistics, including the number of input packets, input bytes, and dropped input packets.

 

Output: 0 packets, 0 bytes, 0 drops

Total output packet statistics, including the number of output packets, output bytes, and dropped output packets.

 

 

# Display brief information about all L3VE interfaces.

<Sysname> display interface ve-l3vpn brief

Brief information on interfaces in route mode:

Link: ADM - administratively down; Stby - standby

Protocol: (s) - spoofing

Interface            Link Protocol Primary IP      Description

L3VE1                 DOWN DOWN      --

# Display brief information about interface VE-L3VPN 2, including the entire interface description.

<Sysname> display interface ve-l3vpn 2 brief description

Brief information on interfaces in route mode:

Link: ADM - administratively down; Stby - standby

Protocol: (s) - spoofing

Interface            Link Protocol Primary IP      Description

L3VE1                 DOWN DOWN     --

# Display information about interfaces in the physical state of DOWN and the causes.

<Sysname> display interface brief down

Brief information on interfaces in route mode:

Link: ADM - administratively down; Stby - standby

L3VE1                ADM    Administratively

L3VE2                DOWN   Not connected

Table 4 Command output

Field

Description

Brief information on interfaces in route mode:

Brief information about Layer 3 interfaces.

Interface

Abbreviated interface name.

Link

Physical link state of the interface:

·     UP—The interface is physically up.

·     DOWN—The interface is physically down.

·     ADM—The interface has been shut down by using the shutdown command. To restore the physical state of the interface, use the undo shutdown command.

·     Stby—The interface is a backup interface in standby state. To see the primary interface, use the display interface-backup state command.

Protocol

Data link layer protocol state of the interface:

·     UP—The data link layer protocol of the interface is up.

·     DOWN—The data link layer protocol of the interface is down.

·     UP(s)—The data link layer protocol of the interface is up, but the link is an on-demand link or does not exist. The (s) attribute represents the spoofing flag. This value is typical of null interfaces and loopback interfaces.

Primary IP

Primary IP address of the interface. This field displays two hyphens (--) if the interface does not have an IP address.

Description

Description of the interface.

Cause

Cause for the physical link state of an interface to be DOWN:

·     Administratively—The interface has been manually shut down by using the shutdown command. To restore the physical state of the interface, use the undo shutdown command.

·     Not connected—The tunnel is not established.

 

Related commands

reset counters interface ve-l3vpn

interface ve-l2vpn

Use interface ve-l2vpn to create an L2VE interface and enter its view, or enter the view of an existing L2VE interface.

Use undo interface ve-l2vpn to delete an L2VE interface.

Syntax

interface ve-l2vpn  interface-number

undo interface ve-l2vpn interface-number

Default

No L2VE interfaces exist.

Views

System view

Predefined user roles

network-admin

Parameters

interface-number: Specifies the L2VE interface number. The value range for this argument is 1 to 8192.

Usage guidelines

A VE-L2VPN interface (an L2VE interface) or an L2VE subinterface terminates MPLS L2VPN packets. The L2VE interface performs the following operations:

·     Removes the MPLS label from an MPLS L2VPN packet.

·     Sends the original Layer 2 packet to an L3VE interface or L3VE subinterface that has the same interface number as the L2VE interface.

An L2VE subinterface sends original Layer 2 packets only to the L3VE interface that has the same interface number as the L2VE subinterface.

Examples

# Create L2VE interface VE-L2VPN 100, and enter L2VE interface view.

<Sysname> system-view

[Sysname] interface ve-l2vpn 100

[Sysname-VE-L2VPN100]

interface ve-l3vpn

Use interface ve-l3vpn to create an L3VE interface and enter its view, or enter the view of an existing L3VE interface.

Use undo interface ve-l3vpn to delete an L3VE interface.

Syntax

interface ve-l3vpn  interface-number

undo interface ve-l3vpn interface-number

Default

No L3VE interfaces exist.

Views

System view

Predefined user roles

network-admin

Parameters

interface-number: Specifies the L3VE interface number. The value range for this argument is 1 to 8192.

Usage guidelines

A VE-L3VPN interface (an L3VE interface) provides access to an MPLS L3VPN or IP backbone for packets. The L3VE interface forwards packets received from the backbone to an L2VE interface that has the same interface number as the L3VE interface.

Examples

# Create L3VE interface VE-L3VPN 100, and enter L3VE interface view.

<Sysname> system-view

[Sysname] interface ve-l3vpn 100

[Sysname-VE-L3VPN100] quit

mtu

Use mtu to set the MTU for an interface.

Use undo mtu to restore the default.

Syntax

mtu size

undo mtu

Default

The MTU of an interface is 1500 bytes.

Views

L2VE interface view

L3VE interface view

Predefined user roles

network-admin

Parameters

mtu-size: Specifies the MTU in bytes. The value range for this argument is 46 to 1560.

Examples

# Set the MTU for VE-L2VPN 100 to 1430 bytes.

<Sysname> system-view

[Sysname] interface ve-l2vpn 100

[Sysname-VE-L2VPN100] mtu 1430

# Set the MTU for VE-L3VPN 100 to 1430 bytes.

<Sysname> system-view

[Sysname] interface ve-l3vpn 100

[Sysname-VE-L3VPN100] mtu 1430

reset counters interface ve-l2vpn

Use reset counters interface ve-l2vpn to clear L2VE interface statistics.

Syntax

reset counters interface [ ve-l2vpn [ interface-number ] ]

Views

User view

Predefined user roles

network-admin

Parameters

ve-l2vpn [ interface-number ]: Clears statistics for L2VE interfaces. The interface-number argument represents the number of an existing L2VE interface. If you do not specify the ve-l2vpn keyword, this command clears statistics for all interfaces on the device. If you specify the ve-l2vpn keyword but do not specify the interface-number argument, this command clears statistics for all L2VE interfaces.

Usage guidelines

Use this command to clear old statistics so you can observe new traffic statistics on an interface.

Examples

# Clear statistics for VE-L2VPN 100.

<Sysname> reset counters interface ve-l2vpn 100

Related commands

display interface ve-l2vpn

reset counters interface ve-l3vpn

Use reset counters interface ve-l3vpn to clear L3VE interface statistics.

Syntax

reset counters interface [ ve-l3vpn [ interface-number ] ]

Views

User view

Predefined user roles

network-admin

Parameters

ve-l3vpn [ interface-number ]: Clears statistics for L3VE interfaces. The interface-number argument represents the number of an existing L3VE interface. If you do not specify the ve-l3vpn keyword, this command clears statistics for all interfaces on the device. If you specify the ve-l3vpn keyword but do not specify the interface-number argument, this command clears statistics for all L3VE interfaces.

Usage guidelines

Use this command to clear old statistics so you can observe new traffic statistics on an interface.

Examples

# Clear statistics for interface VE-L3VPN 100.

<Sysname> reset counters interface ve-l3vpn 100

Related commands

display interface ve-l3vpn

shutdown

Use shutdown to shut down an interface.

Use undo shutdown to bring up an interface.

Syntax

shutdown

undo shutdown

Default

L2VE interfaces and L3VE interfaces are up.

Views

L2VE interface view

L3VE interface view

Predefined user roles

network-admin

Examples

# Shut down VE-L2VPN 100.

<Sysname> system-view

[Sysname] interface ve-l2vpn 100

[Sysname-VE-L2VPN100] shutdown

# Shut down VE-L3VPN 100.

<Sysname> system-view

[Sysname] interface ve-l3vpn 100

[Sysname-VE-L3VPN100] shutdown