09-MPLS Command Reference

HomeSupportRoutersCR16000-F SeriesReference GuidesCommand ReferencesH3C CR16000-F Routers Command References-Release795x-6W10009-MPLS Command Reference
11-L2VPN access to L3VPN or IP backbone commands

L2VPN access to L3VPN or IP backbone commands

L2VPN access to L3VPN or IP backbone is supported only on CSPC-GE16XP4L-E, CSPC-GE24L-E, CSPC-GP24GE8XP2L-E, CSPEX, and CEPC cards.

default

Use default to restore the default settings for an interface.

Syntax

default

Views

L2VE interface view

L3VE interface view

L3VE subinterface 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

L3VE subinterface 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 or L2VE subinterfaces. 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 interface 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

IP address of the L2VE interface.

Internet protocol processing: disabled indicates that 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: L2VE

Physical type of the interface: L2VE interface or L2VE subinterface 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.

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 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 interface 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.

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.

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.

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 | interface-number.subnumber ] [ brief [ description | down ] ]

Views

Any view

Predefined user roles

network-admin

network-operator

Parameters

ve-l3vpn [ interface-number | interface-number.subnumber ]: Displays information about L3VE interfaces or L3VE subinterfaces. The interface-number argument represents the number of an existing L3VE interface. The subnumber argument represents the number of a subinterface created on the 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 or interface-number.subnumber 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 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: 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 protocol processing

IP address of the L3VE interface.

Internet protocol processing: disabled indicates that 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 or L3VE subinterface 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.

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.

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 in the range of 1 to 2046.

Usage guidelines

A VE-L2VPN interface (an L2VE interface) 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.

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 or L3VE subinterface and enter its view, or enter the view of an existing L3VE interface or L3VE subinterface.

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

Syntax

interface ve-l3vpn { interface-number | interface-number.subnumber }

undo interface ve-l3vpn { interface-number | interface-number.subnumber }

Default

No L3VE interfaces or L3VE subinterfaces exist.

Views

System view

Predefined user roles

network-admin

Parameters

interface-number: Specifies the L3VE interface number in the range of 1 to 2046.

interface-number.subnumber: Specifies the L3VE subinterface number. The value range for the subnumber argument is 1 to 4094.

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.

If packets entering an MPLS L3VPN or IP backbone carry VLAN tags, you must create an L3VE subinterface on the L3VE interface to terminate the VLAN tags. For more information about VLAN termination, see Layer 2—LAN Switching Configuration Guide.

Deleting an L3VE interface also deletes all subinterfaces on the interface.

Before you create an L3VE subinterface, the main L3VE interface of the subinterface must already exist.

Examples

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

<Sysname> system-view

[Sysname] interface ve-l3vpn 100

[Sysname-VE-L3VPN100] quit

# Create L3VE subinterface VE-L3VPN 100.10, and enter L3VE subinterface view.

[Sysname] interface ve-l3vpn 100.10

[Sysname-VE-L3VPN100.10]

mac-address

Use mac-address to configure a MAC address for an L3VE interface.

Use undo mac-address to restore the default.

Syntax

mac-address mac-address

undo mac-address

Default

The MAC address of an L3VE interface is assigned by the device.

Views

L3VE interface view

Predefined user roles

network-admin

Parameters

mac-address: Specifies a MAC address in H-H-H format.

Usage guidelines

This command is supported only when the system operating mode is WAN SDN. For more information about system operating modes, see device management commands in Fundamentals Command Reference.

This command is supported only on CSPEX (except CSPEX-1204 and CSPEX-1104-E) and CEPC cards.

Examples

# Configure 0001-0001-0001 as the MAC address of L3VE interface VE-L3VPN 100.

<Sysname> system-view

[Sysname] interface ve-l3vpn 100

[Sysname-VE-L3VPN100] mac-address 1-1-1

mtu

Use mtu to set the MTU for an interface.

Use undo mtu to restore the default.

Syntax

mtu size

undo mtu

Default

The default MTU is 1500 bytes.

Views

L3VE interface view

L3VE subinterface view

Predefined user roles

network-admin

Parameters

mtu-size: Specifies the MTU in 46 to 9600 bytes.

Usage guidelines

As a best practice, set the MTU of an L3VE interface or L3VE subinterface to a value larger than 1280 bytes if the device contains CSPC-GE16XP4L-E, CSPC-GE24L-E, CSPC-GP24GE8XP2L-E, CSPEX, and CEPC cards. If the MTU of an L3VE interface/subinterface is less than 1280 bytes, the interface/subinterface uses the 1280-byte MTU to fragment packets received from those cards.

Examples

# 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 or L2VE subinterfaces. 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 | interface-number.subnumber ] ]

Views

User view

Predefined user roles

network-admin

Parameters

ve-l3vpn [ interface-number | interface-number.subnumber ]: Clears statistics for L3VE interfaces or L3VE subinterfaces. The interface-number argument represents the number of an existing L3VE interface. The subnumber argument represents the number of a subinterface created on the 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 or interface-number.subnumber 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, L3VE interfaces, and L3VE subinterfaces are up.

Views

L2VE interface view

L3VE interface view

L3VE subinterface 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

  • Cloud & AI
  • InterConnect
  • Intelligent Computing
  • Security
  • SMB Products
  • Intelligent Terminal Products
  • Product Support Services
  • Technical Service Solutions
All Services
  • Resource Center
  • Policy
  • Online Help
All Support
  • Become a Partner
  • Partner Resources
  • Partner Business Management
All Partners
  • Profile
  • News & Events
  • Online Exhibition Center
  • Contact Us
All About Us
新华三官网