- Table of Contents
-
- 09-MPLS Command Reference
- 00-Preface
- 01-Basic MPLS commands
- 02-Static LSP commands
- 03-LDP commands
- 04-MPLS TE commands
- 05-Static CRLSP commands
- 06-RSVP commands
- 07-Tunnel policy commands
- 08-MPLS L3VPN commands
- 09-MPLS L2VPN commands
- 10-VPLS commands
- 11-L2VPN access to L3VPN or IP backbone commands
- 12-MPLS OAM commands
- 13-MCE commands
- 14-Static SR over MPLS commands
- Related Documents
-
Title | Size | Download |
---|---|---|
11-L2VPN access to L3VPN or IP backbone commands | 92.29 KB |
L2VPN access to L3VPN or IP backbone commands
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
mdc-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
mdc-admin
Usage guidelines
|
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 interface 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 interface 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 a description for an interface.
Use undo description to restore the default.
Syntax
description text
undo description
Default
The description for an interface is VE-L2VPNnumber Interface, for example, VE-L2VPN100 Interface.
Views
L2VE interface view
L3VE interface view
Predefined user roles
network-admin
mdc-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 for interface VE-L2VPN 100 as L2VPN-Terminate.
<Sysname> system-view
[Sysname] interface ve-l2vpn 100
[Sysname-VE-L2VPN100] description L2VPN-Terminate
# Configure a description for interface VE-L3VPN 100 as L3VPN-Access.
<Sysname> system-view
[Sysname] interface ve-l3vpn 100
[Sysname-VE-L3VPN100] description L3VPN-Access
display interface
Use display interface to display interface information.
Syntax
display interface [ ve-l2vpn interface-number | ve-l3vpn interface-number ] [ brief [ description | down ] ]
Views
Any view
Predefined user roles
network-admin
network-operator
mdc-admin
mdc-operator
Parameters
ve-l2vpn: Displays information about L2VE interfaces.
ve-l3vpn: Displays information about L3VE interfaces.
interface-number: Specifies the number of an existing L2VE interface or an L3VE interface.
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.
Usage guidelines
If you do not specify an interface type, this command displays information about both L2VE and L3VE interfaces on the device.
If you specify an interface type but no interface number, this command displays information about all interfaces of the specified type.
If you specify both an interface type and an interface number, this command displays information about the specified interface.
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 Transmit 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 |
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. · UP—Both the administrative and physical states of the interface are up. |
Line protocol state |
Link layer protocol state of the interface. The value is determined by parameter negotiation on the link layer. · UP—The protocol state of the interface is up. · UP (spoofing)—The link protocol state of the interface is up, but the link is temporarily set up on demand or does not exist. This attribute is available for null interfaces and loopback interfaces. · DOWN—The protocol state of the interface is down. |
Description |
Description for the interface. |
Bandwidth |
Expected bandwidth for the interface, in kbps. |
Maximum Transmit Unit |
MTU of the interface. |
Internet protocol processing |
IP address of the interface. If no IP address is assigned to the interface, this field displays Internet protocol processing: disabled, and the interface cannot process packets. Primary indicates that it is the primary IP address of the interface. |
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 |
Physical type of the interface: · L2VE—L2VE interface or L2VE subinterface for terminating an MPLS L2VPN. · L3VE—L3VE interface or L3VE subinterface for accessing an MPLS L3VPN or IP backbone. |
baudrate |
Baudrate of the interface. |
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 of interface(s) under route mode:
Link: ADM - administratively down; Stby - standby
Protocol: (s) - spoofing
Interface Link Protocol Main IP Description
L2VE20 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 of interface(s) under route mode:
Link: ADM - administratively down; Stby - standby
Protocol: (s) - spoofing
Interface Link Protocol Main IP Description
L2VE2 UP UP 1.1.1.1 L2VPN-Terminate
# Display information about interfaces in the physical state of DOWN and the causes.
<Sysname> display interface brief down
Brief information of interface(s) under route mode:
Link: ADM - administratively down; Stby - standby
Interface Link Cause
L2VE20 DOWN Administratively
L3VE20 DOWN Administratively
Table 2 Command output
Description |
|
Brief information of interface(s) under route mode: |
Brief information about Layer 3 interfaces. |
Link: ADM - administratively down; Stby - standby |
Link status: · ADM—The interface has been administratively shut down. To bring it up, use the undo shutdown command. · Stby—The interface is a backup interface. To show the primary interface, use the display interface-backup state command. |
Protocol: (s) - spoofing |
(s) indicates that the link layer protocol state is UP, but the link is not available because it is an on-demand link or not present at all. |
Interface |
Abbreviated interface name. |
Link |
Link state of the interface: · UP—The link is physically up. · DOWN—The link is physically down. · ADM—The link has been administratively shut down. To bring it up, use the undo shutdown command. · Stby—The interface is a backup interface. To display the primary interface, use the display interface-backup state command. |
Protocol |
Link layer protocol state whose value is determined by parameter negotiation on the link layer: · UP—The protocol state of the interface is up. · UP (s)—The link protocol state of the interface is up, but the link is temporarily set up on demand or does not exist. This attribute is available for null interfaces and loopback interfaces. · DOWN—The protocol state of the interface is down. |
Main IP |
Primary IP address of the interface. |
Description |
Description for the interface. |
Cause |
Causes for the link state of DOWN: · Administratively—The link has been shut down by using the shutdown command. To bring it up, use the undo shutdown command. · Not connected—The tunnel is not established. |
reset counters interface
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
mdc-admin
Parameters
interface-number: Specifies the L2VE interface number in the range of 1 to 8192.
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 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 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
mdc-admin
Parameters
interface-number: Specifies the L3VE interface number in the range of 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 interface MTU is 1500 bytes.
Views
L2VE interface view
L3VE interface view
Predefined user roles
network-admin
mdc-admin
Parameters
mtu-size: Specifies the MTU in the range of 46 to 9600 bytes.
Examples
# Set the MTU for interface VE-L2VPN 100 to 1430 bytes.
<Sysname> system-view
[Sysname] interface ve-l2vpn 100
[Sysname-VE-L2VPN100] mtu 1430
# Set the MTU for interface VE-L3VPN 100 to 1430 bytes.
<Sysname> system-view
[Sysname] interface ve-l3vpn 100
[Sysname-VE-L3VPN100] mtu 1430
reset counters interface
Use reset counters interface to clear interface statistics.
Syntax
reset counters interface [ ve-l2vpn interface-number | ve-l3vpn interface-number ]
Views
User view
Predefined user roles
network-admin
mdc-admin
Parameters
ve-l2vpn: Clears statistics for L2VE interfaces.
ve-l3vpn: Clears statistics for L3VE interfaces.
interface-number: Specifies the number of an existing L2VE interface or an L3VE interface.
Usage guidelines
If you do not specify an interface type, this command clears statistics for both L2VE and L3VE interfaces on the device.
If you specify an interface type but no interface number, this command clears statistics for all interfaces of the specified type.
If you specify both an interface type and an interface number, this command clears statistics for the specified interface.
Examples
# Clear statistics for interface VE-L2VPN 100.
<Sysname> reset counters interface ve-l2vpn 100
# Clear statistics for interface VE-L3VPN 100.
<Sysname> reset counters interface ve-l3vpn 100
Related commands
display interface
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
mdc-admin
Examples
# Shut down interface VE-L2VPN 100.
<Sysname> system-view
[Sysname] interface ve-l2vpn 100
[Sysname-VE-L2VPN100] shutdown
# Shut down interface VE-L3VPN 100.
<Sysname> system-view
[Sysname] interface ve-l3vpn 100
[Sysname-VE-L3VPN100] shutdown