L2VPN access to L3VPN or IP backbone commands -- bandwidth

| NOTE: Support for this command depends on the device model.

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 varies by device model.

Views

L2VE interface view

L2VE subinterface view

L3VE interface view

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

L2VPN access to L3VPN or IP backbone commands -- default

Use default to restore the default settings for an interface.

Syntax

default

Views

L2VE interface view

L2VE subinterface view

L3VE interface view

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

L2VPN access to L3VPN or IP backbone commands -- 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-L2VPN number Interface, for example, VE-L2VPN100 Interface.

Views

L2VE interface view

L2VE subinterface view

L3VE interface view

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

L2VPN access to L3VPN or IP backbone commands -- display interface

Use display interface to display interface information.

Syntax

display interface [ ve-l2vpn [ interface-number | interface-number.subnumber ] | ve-l3vpn [ interface-number | interface-number.subnumber ] ] [ 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 or L2VE subinterfaces.

ve-l3vpn: Displays information about L3VE interfaces or L3VE subinterfaces.

interface-number: Specifies the number of an existing L2VE interface or an L3VE interface.

interface-number.subnumber: Specifies the number of an L2VE subinterface or L3VE subinterface. The interface-number argument represents the number of an existing L2VE interface or L3VE interface. The subnumber argument represents the number of a subinterface created on the interface. Support for the interface-number.subnumber argument depends on the device model. The value range for the subnumber argument varies by device model.

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.

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 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 | 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 Transmit Unit | MTU of the interface.
Internet protocol processing: Disabled | The interface is not assigned an IP address and 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 | 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.
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

L2VPN access to L3VPN or IP backbone commands -- interface ve-l2vpn

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

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

Syntax

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

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

Default

No L2VE interfaces or L2VE subinterfaces exist.

Views

System view

Predefined user roles

network-admin

mdc-admin

Parameters

interface-number: Specifies the L2VE interface number. The value range varies by device model.

interface-number.subnumber: Specifies the L2VE subinterface number. Support for the interface-number.subnumber argument depends on the device model. The value range for the subnumber argument varies by device model.

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.

If an L2VE subinterface receives packets that carry VLAN tags, you must configure the L2VE subinterface to terminate the VLAN tags. For more information about VLAN termination, see Layer 2—LAN Switching Configuration Guide.

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

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

The VPLS access to L3VPN or IP backbone model does not support creating L2VE subinterfaces.

Examples

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

<Sysname> system-view

[Sysname] interface ve-l2vpn 100

[Sysname-VE-L2VPN100]

# Create L2VE subinterface VE-L2VPN 100.10, and enter L2VE subinterface view.

<Sysname> system-view

[Sysname] interface ve-l2vpn 100.10

[Sysname-VE-L2VPN100.10]

L2VPN access to L3VPN or IP backbone commands -- 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

mdc-admin

Parameters

interface-number: Specifies the L3VE interface number. The value range varies by device model.

interface-number.subnumber: Specifies the L3VE subinterface number. Support for the interface-number.subnumber argument depends on the device model. The value range for the subnumber argument varies by device model.

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]

L2VPN access to L3VPN or IP backbone commands -- 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 varies by device model.

Views

L2VE interface view

L2VE subinterface view

L3VE interface view

L3VE subinterface view

Predefined user roles

network-admin

mdc-admin

Parameters

mtu-size: Specifies the MTU in bytes. The value range for this argument varies by device model.

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

L2VPN access to L3VPN or IP backbone commands -- reset counters interface

Use reset counters interface to clear interface statistics.

Syntax

reset counters interface [ ve-l2vpn [ interface-number | interface-number.subnumber ] | ve-l3vpn [ interface-number | interface-number.subnumber ] ]

Views

User view

Predefined user roles

network-admin

mdc-admin

Parameters

ve-l2vpn: Clears statistics for L2VE interfaces or L2VE subinterfaces.

ve-l3vpn: Clears statistics for L3VE interfaces or L3VE subinterfaces.

interface-number: Specifies the number of an existing L2VE interface or an L3VE interface.

interface-number.subnumber: Specifies the number of an L2VE subinterface or L3VE subinterface. The interface-number argument represents the number of an existing L2VE interface or L3VE interface. The subnumber argument represents the number of a subinterface created on the interface. Support for the interface-number.subnumber argument depends on the device model. The value range for the subnumber argument varies by device model.

Usage guidelines

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

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

Examples

# Clear statistics for VE-L2VPN 100.

<Sysname> reset counters interface ve-l2vpn 100

# Clear statistics for VE-L3VPN 100.

<Sysname> reset counters interface ve-l3vpn 100

Related commands

display interface

L2VPN access to L3VPN or IP backbone commands -- shutdown

Use shutdown to shut down an interface.

Use undo shutdown to bring up an interface.

Syntax

shutdown

undo shutdown

Default

L2VE interfaces, L2VE subinterfaces, L3VE interfaces, and L3VE subinterfaces are up.

Views

L2VE interface view

L2VE subinterface view

L3VE interface view

L3VE subinterface view

Predefined user roles

network-admin

mdc-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