No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

Command Reference

S1720, S2700, S5700, and S6720 V200R011C10

This document describes all the configuration commands of the device, including the command function, syntax, parameters, views, default level, usage guidelines, examples, and related commands.
Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
L2VPN Access to L3VPN Configuration Commands

L2VPN Access to L3VPN Configuration Commands

Command Support

Only the S5720HI supports L2VPN Access to L3VPN commands.

display virtual-ethernet ve-group

Function

The display virtual-ethernet ve-group command displays the binding relationship between Virtual Ethernet (VE) interfaces and a VE group.

Format

display virtual-ethernet ve-group [ ve-group-id ]

Parameters

Parameter Description Value
ve-group-id Specifies the ID of a VE group. The value is an integer ranging from 1 to 8.

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

If a device is configured with many VE groups, you can use this command to view the relationship between VE interfaces and VE groups.

Example

# Display the binding relationship between all VE interfaces and VE groups on a switch.

<HUAWEI> display virtual-ethernet ve-group
 Ve-groupID    TerminateVE                 AccessVE
 1             Virtual-Ethernet0/0/1(L2)   Virtual-Ethernet0/0/2(L3) 
Total 1, 1 printed
Table 10-144  Description of the display virtual-ethernet ve-group command output

Item

Description

Ve-groupID

ID of a VE group.

TerminateVE

L2VE interface terminating an L2VPN.

AccessVE

L3VE interface accessing an L3VPN.

Total 1, 1 printed

Total number of VE groups.

display mpls l2vpn track route

Function

The display mpls l2vpn track route command displays information about the PWs that track VPNv4 route status.

Format

display mpls l2vpn track route [ ipv4-address { mask | mask-length } vpn-instance vpn-instance-name ]

Parameters

Parameter Description Value
ipv4-address Specifies the destination IP address of a VPNv4 route. The value is in dotted decimal notation.
mask Specifies a mask in dotted decimal notation. The value is in dotted decimal notation.
mask-length Specifies the mask length. The value is an integer ranging from 0 to 32.
vpn-instance vpn-instance-name Specifies the VPN instance name. The value must be an existing VPN instance name.

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

In an L2VPN access to L3VPN scenario, if all L3VPN-side links of an NPE become unavailable, a black-hole route comes into existence. The user-side UPE cannot detect the link failures and still sends traffic to the NPE. As a result, traffic loss occurs. To prevent traffic loss, run the mpls l2vpn track route command to configure the PW to track VPNv4 route status. Then, after the NPE detects that all its L3VPN-side links become unavailable, the NPE instructs the UPE to switch traffic to the secondary PW.

To check information about the PWs that track VPNv4 route status, run the display mpls l2vpn track route command.

Example

# Display information about all PWs that track VPNv4 route status.

<HUAWEI> display mpls l2vpn track route
Total route number:1      reachable:0      unreachable:1     
-------------------------------------------------------------

VPN instance name : vpna
Route             : 10.1.1.1/32
Route status      : reachable                                          
PW number         : 1
VC ID      VC Type                Peer IP            VC State   
-------------------------------------------------------------
101        VLAN                   10.1.1.2           up 
Table 10-145  Description of the display mpls l2vpn track route command output

Item

Description

Total route number

Total number of VPNv4 routes tracked by a PW.

reachable

Number of reachable VPNv4 routes.

unreachable

Number of unreachable VPNv4 routes.

VPN instance name

VPN instance name.

Route

Destination IP address of a VPNv4 route.

Route status

VPNv4 route status:
  • reachable
  • unreachable

VC ID

ID of a VC, which uniquely identifies the VC.

VC Type

Encapsulation type of the VC:

  • VLAN
  • Ethernet

Peer IP

Peer IP address.

VC State

VC status:
  • up: The VC is established.
  • Down: The VC is not established.

mpls l2vpn track route

Function

The mpls l2vpn track route command configures a PW to track VPNv4 route status.

The undo mpls l2vpn track route command configures a PW not to track VPNv4 route status.

By default, a PW does not track VPNv4 route status.

Format

mpls l2vpn track route ipv4-address { mask | mask-length } vpn-instance vpn-instance-name

undo mpls l2vpn track route

Parameters

Parameter Description Value
ipv4-address Specifies the destination IP address of a VPNv4 route. The value is in dotted decimal notation.
mask Specifies a mask in dotted decimal notation. The value is in dotted decimal notation.
mask-length Specifies the mask length. The value is an integer ranging from 0 to 32.
vpn-instance vpn-instance-name Specifies the name of a VPN instance. The value must be an existing VPN instance name.

Views

VE sub-interface view

Default Level

2: Configuration level

Usage Guidelines

In an L2VPN access to L3VPN scenario, if all L3VPN-side links of an NPE become unavailable, a black-hole route comes into existence. The user-side UPE cannot detect the link failures and still sends traffic to the NPE. As a result, traffic loss occurs. To prevent traffic loss, run the mpls l2vpn track route command to configure the PW to track VPNv4 route status. Then, after the NPE detects that all its L3VPN-side links become unavailable, the NPE instructs the UPE to switch traffic to the secondary PW.

Example

# Configure a PW to track VPNv4 route status.

<HUAWEI> system-view
[HUAWEI] interface virtual-ethernet 0/0/1
[HUAWEI-Virtual-Ethernet0/0/1] ve-group 1 l2-terminate 
[HUAWEI-Virtual-Ethernet0/0/1] quit
[HUAWEI] interface virtual-ethernet 0/0/1.1
[HUAWEI-Virtual-Ethernet0/0/1.1] mpls l2vc 10.1.1.2 101
[HUAWEI-Virtual-Ethernet0/0/1.1] mpls l2vpn track route 10.1.1.1 32 vpn-instance vpna 

statistic enable (VE interface view)

Function

The statistic enable command enables the traffic statistics collection function on a Virtual Ethernet (VE) interface.

The undo statistic enable command disables the traffic statistics collection function on a VE interface.

By default, the traffic statistics collection function is disabled on a VE interface.

Format

statistic enable { both | inbound | outbound }

undo statistic enable { both | inbound | outbound }

Parameters

Parameter

Description

Value

both

Enables the traffic statistics collection function for incoming and outgoing traffic.

-

inbound

Enables the traffic statistics collection function for incoming traffic.

-

outbound

Enables the traffic statistics collection function for outgoing traffic.

-

Views

VE interface view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

You can enable the traffic statistics collection function on the VE interfaces if you want to check the network status or troubleshoot network faults.

Prerequisites

The VE interfaces have been bound to VE groups by using the ve-group command. Otherwise, the statistic enable command does not take effect.

Precautions

  • After you run the undo statistic enable command on a VE interface, the switch stops collecting traffic statistics on the VE interface and the collected traffic statistics will be deleted.

  • The switch uses ACL resources when collecting traffic statistics. If the traffic statistics collection function is enabled on too many VE interfaces, other services may fail to obtain ACL resources.

  • The switch can only collect statistics of unicast, multicast, and broadcast packets on VE interfaces.

  • On the VE interface enabled with the traffic statistics collection function, the packets such as ping packets sent from the switch cannot be counted.

Example

# Enable the traffic statistics collection function for incoming and outgoing traffic on the VE interface.

<HUAWEI> system-view
[HUAWEI] interface virtual-ethernet 0/0/1
[HUAWEI-Virtual-Ethernet0/0/1] ve-group 1 l2-terminate
[HUAWEI-Virtual-Ethernet0/0/1] statistic enable both

ve-group

Function

The ve-group command configures a VE interface to work in multi-service access mode and binds the VE interface to a specified VE group.

The undo ve-group command restores a VE interface to common mode.

By default, a VE interface works in common mode.

Format

ve-group ve-group-id { l2-terminate | l3-access }

undo ve-group

Parameters

Parameter Description Value
ve-group-id Specifies the ID of a VE group. The value is an integer ranging from 1 to 8.
l2-terminate Sets the VE interface to an L2VE interface that terminates the L2VPN. -
l3-access Sets the VE interface to an L3VE interface that accesses the L3VPN. -

Views

VE interface view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

In L2VPN access to L3VPN scenarios:
  • To change a VE interface to an L2VE interface, run the ve-group ve-group-id l2-terminate command.

  • To change a VE interface to an L3VE interface, run the ve-group ve-group-id l3-access command.

Precautions

  • A VE group has only one L2VE interface and one L3VE interface.

  • The two VE interfaces in a VE group must be on the same chassis.

  • Multiple sub-interfaces can be created for each L2VE or L3VE interface to provide access for different VLAN services.

Example

# Set Virtual-Ethernet 0/0/1 to an L2VE interface.

<HUAWEI> system-view
[HUAWEI] interface virtual-ethernet 0/0/1
[HUAWEI-Virtual-Ethernet0/0/1] ve-group 1 l2-terminate

# Set Virtual-Ethernet 0/0/2 to an L3VE interface.

<HUAWEI> system-view
[HUAWEI] interface virtual-ethernet 0/0/2
[HUAWEI-Virtual-Ethernet0/0/2] ve-group 1 l3-access
Translation
Download
Updated: 2019-04-18

Document ID: EDOC1000178165

Views: 42931

Downloads: 1107

Average rating:
This Document Applies to these Products
Related Documents
Related Version
Share
Previous Next