VPLS configuration commands

Similar documents
VPLS configuration commands

VPLS configuration commands

Configuring VPLS. VPLS overview. Operation of VPLS. Basic VPLS concepts

Configuring MPLS L2VPN

Configuring MPLS L2VPN

Configuring MPLS L2VPN

Deploy VPLS. APNIC Technical Workshop October 23 to 25, Selangor, Malaysia Hosted by:

HP FlexFabric Switch Series

Operation Manual MPLS VLL. Table of Contents

Contents. EVPN overview 1

Configuring Virtual Private LAN Service (VPLS) and VPLS BGP-Based Autodiscovery

Configure Multipoint Layer 2 Services

HP Routing Switch Series

Basic MPLS commands. display mpls forwarding ilm. Syntax. Views. Predefined user roles. Parameters. Usage guidelines. Examples

H3C S12500-X Switch Series

Configuring Virtual Private LAN Services

Configure L2VPN Autodiscovery and Signaling

HP A5820X & A5800 Switch Series MPLS. Configuration Guide. Abstract

LARGE SCALE IP ROUTING LECTURE BY SEBASTIAN GRAF

H3C S6520XE-HI Switch Series

HP 5920 & 5900 Switch Series

H3C S5830V2 & S5820V2 Switch Series

Command Manual IPv4 Routing H3C S3610&S5510 Series Ethernet Switches. Table of Contents

BGP Commands on Cisco ASR 9000 Series Router

HPE FlexFabric 7900 Switch Series

H3C S12500 Series Routing Switches

Network Configuration Example

MPLS design. Massimiliano Sbaraglia

Implementing Virtual Private LAN Services

HPE FlexFabric 5940 Switch Series

Network Configuration Example

Network Configuration Example

Contents. BGP commands 1

L2VPN Protocol-Based CLIs

Module 11a MPLS VPWS Configuration Lab (LDP)

Configuring MPLS Transport Profile

HP MSR Router Series. Layer 2 LAN Switching Command Reference(V7)

Operation Manual IPv4 Routing H3C S3610&S5510 Series Ethernet Switches. Table of Contents

Contents. Ping, tracert, and system debugging commands 1. debugging 1 display debugging 1 ping 2 ping ipv6 5 tracert 7 tracert ipv6 10

IP Routing Volume Organization

Quidway S5700 Series Ethernet Switches V100R006C01. Configuration Guide - VPN. Issue 01 Date HUAWEI TECHNOLOGIES CO., LTD.

Module 11b MPLS VPLS Configuration Lab (LDP Manual)

CONTENTS. Introduction

Deploy MPLS VPWS. APNIC Technical Workshop October 23 to 25, Selangor, Malaysia Hosted by:

Table of Contents Chapter 1 MPLS L3VPN Configuration

H3C S5500-HI Switch Series

Ping, tracert and system debugging commands

Introduction to MPLS APNIC

H3C S10500 Switch Series

Table of Contents Chapter 1 MPLS Basics Configuration

MPLS LSP Ping Traceroute for LDP TE and LSP Ping for VCCV

H3C S6520XE-HI Switch Series

H3C S7500E-X Switch Series

Frame Relay over L2TPv3

Introduction to MPLS. What is MPLS? 1/23/17. APNIC Technical Workshop January 23 to 25, NZNOG2017, Tauranga, New Zealand. [201609] Revision:

MPLS VPN--Inter-AS Option AB

Configuring Pseudowire

AToM (Any Transport over MPLS)

HP MSR Router Series. MPLS Configuration Guide(V7) Part number: Software version: CMW710-R0106 Document version: 6PW

BGP MPLS VPNs. Introduction

Configuring Pseudowire Group Switchover

HP FlexFabric 5700 Switch Series

MPLS LSP Ping/Traceroute for LDP/TE, and LSP Ping for VCCV

CCIE Service Provider Sample Lab. Part 2 of 7

H3C S10500 Switch Series

Implementing MPLS VPNs over IP Tunnels

L2 MPLS VPN (VPLS) Technology White Paper

ARP attack protection commands

Contents. Configuring EVI 1

Configuring static routing

MPLS VPN Inter-AS Option AB

Alcatel-Lucent 4A Alcatel-Lucent Services Architecture.

HP 5920 & 5900 Switch Series

Deploy MPLS L3 VPN. APNIC Technical Workshop October 23 to 25, Selangor, Malaysia Hosted by:

Contents. Ping, tracert, and system debugging commands 1 debugging 1 display debugging 2 ping 2 ping ipv6 5 tracert 7 tracert ipv6 9

HP MSR Router Series. MPLS Configuration Guide(V5) Part number: Software version: CMW520-R2513 Document version: 6PW

Operation Manual MCE H3C S3610&S5510 Series Ethernet Switches. Table of Contents

H3C SR6600/SR6600-X Routers

Configuring IPv6 basics

Segment Routing On Demand for L2VPN/VPWS

Protecting an EBGP peer when memory usage reaches level 2 threshold 66 Configuring a large-scale BGP network 67 Configuring BGP community 67

Cisco. Maintaining Cisco Service Provider VPNs and MPLS Networks (MSPVM)

BGP Support for the L2VPN Address Family

Deploying MPLS L2VPN

Practice exam questions for the Nokia NRS II Composite Exam

HP Routing Switch Series

VPLS Autodiscovery: BGP Based

HPE FlexFabric 7900 Switch Series

MPLS LDP. Agenda. LDP Overview LDP Protocol Details LDP Configuration and Monitoring 9/27/16. Nurul Islam Roman

L3VPN Configuration. L3VPN Overview. Introduction to L3VPN

Configuring Routed Pseudowire and VPLS

EVPN Virtual Private Wire Service (VPWS) Single Homed

BGP Route Reflector Commands

BGP Command Reference for Cisco NCS 5500 Series and Cisco NCS 540 Series Routers

EVPN Virtual Private Wire Service (VPWS) Single Homed

Multi-Chassis APS and Pseudowire Redundancy Interworking

mpls ldp atm vc-merge through mpls static binding ipv4

Ethernet interface configuration commands

Monitoring MPLS Services

Contents. Tunneling commands 1

Transcription:

Contents VPLS configuration commands 1 car 1 description 1 display bgp vpls 2 display l2vpn fast-switch-group 7 display mac-address vsi 8 display mpls l2vpn fib ac vpls 9 display mpls l2vpn fib pw vpls 12 display pw-class 14 display service-instance interface 15 display vpls connection 16 display vsi 19 display vsi remote 23 dual-npe revertive 24 encapsulation (service instance view) 25 encapsulation (VSI view) 26 l2 binding vsi 27 mac-learning 28 mac-table limit 28 mac-withdraw null-ip-address-tlv 29 mtu (VSI view) 30 peer (VSI LDP view) 30 ping lsp pw (for VPLS) 31 pw-class 32 pwsignal 33 pw-tunnel-policy 33 reset bgp vpls 34 reset mac-address vsi 35 reset service-instance statistics 35 route-distinguisher (VSI BGP view) 36 service-instance 36 shutdown (VSI view) 37 site 38 tnl-policy 38 trans-mode 39 vpls-family 40 vpn-target (VSI BGP view) 40 vsi 41 vsi-id 43 xconnect vsi 43 1

VPLS configuration commands car The term "router" in this document refers to both routers and Layer 3 switches. car { inbound outbound } name car-name undo car { inbound outbound } Service instance view inbound: Applies a global CAR action in the inbound direction. outbound: Applies a global CAR action in the outbound direction. name car-name: Specifies a global CAR action by name, a string of 1 to 31 characters. Use car to apply a global CAR action in the inbound or outbound traffic on an attachment circuit (AC). Use undo car to restore the default. By default, no global CAR action is applied to an AC. # Apply global CAR action car1 to inbound traffic and car2 to outbound traffic for service instance 200 on the interface GigabitEthernet 3/0/1. [Sysname] interface GigabitEthernet 3/0/1 [Sysname-GigabitEthernet3/0/1] service-instance 200 [Sysname-GigabitEthernet3/0/1-srv200] car inbound name car1 [Sysname-GigabitEthernet3/0/1-srv200] car outbound name car2 description description text undo description VSI view 1

text: for a VPLS instance, a string of 1 to 80 characters. Use description to set a description for a VPLS instance. Use undo description to remove the configuration. By default, no description is set for a VPLS instance. # Set the description of VPLS instance aaa to Aaa_Technologies_Co._Ltd.. [Sysname] vsi aaa [Sysname-vsi-aaa] description Aaa_Technologies_Co._Ltd. display bgp vpls Any view display bgp vpls { all group [ group-name ] peer [ [ ip-address ] verbose ] route-distinguisher route-distinguisher [ site-id site-id [ label-offset label-offset ] ] } [ { begin exclude include } regular-expression ] 1: Monitor level all: Specifies all VPLS information in the BGP routing table. group group-name: Specifies a peer group by its name, a string of 1 to 47 characters. ip-address: IP address of the peer. verbose: Displays detailed information. route-distinguisher route-distinguisher: Specifies the route distinguisher (RD), a string of 3 to 21 characters in the format of nn:nn or IP_address:nn. site-id site-id: Specifies the site in the VPLS instance by its ID. label-offset label-offset: Specifies the label offset value in the range of 0 to 65535. : Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide. begin: Displays the first line that matches the specified regular expression and all lines that follow. exclude: Displays all lines that do not match the specified regular expression. include: Displays all lines that match the specified regular expression. regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters. 2

Use display bgp vpls to display the VPLS information in a BGP routing table. # Display all VPLS information in the BGP routing table. <Sysname> display bgp vpls all BGP Local Router ID : 2.2.2.9, Local AS number : 100 Origin codes:i - IGP, e - EGP,? - incomplete BGP.VPLS: 1 destination **Route Distinguisher: 100:1 SITE ID LB Offset LB Size LB Base Nexthop LocPref 1 0 10 131346 3.3.3.9 100 Table 1 Command output Field BGP Local Router ID Local AS number Origin codes BGP.VPLS SITE ID LB Offset LB Size LB Base LocPref Router ID of the local BGP router. Number of the local AS. Route origin codes. Valid values include: i - IGP Learned from within the AS. e - EGP Learned through EGP.? - incomplete Learned in any other way. Number of BGP VPLS. ID of a site in the VPLS instance. Label offset value. Size of the label block. Initial label of the label block. Local preference. # Display detailed information about VPLS peer 3.3.3.9 in the BGP routing table. <Sysname> display bgp vpls peer 3.3.3.9 verbose Peer: 3.3.3.9 Local: 2.2.2.9 Type: IBGP link BGP version 4, remote router ID 3.3.3.9 BGP current state: Established, Up for 01h06m42s BGP current event: KATimerExpired BGP last state: OpenConfirm Port: Local - 1040 Remote - 179 Configured: Active Hold Time: 180 sec Keep Alive Time:60 sec Received : Active Hold Time: 180 sec Negotiated: Active Hold Time: 180 sec Keep Alive Time:60 sec Peer optional capabilities: Peer support bgp multi-protocol extended Peer support bgp route refresh capability Graceful Restart Capability: received 3

Restart Timer Value of Peer: 150 seconds Forwarding State preserved by Peer for following Address families: IPv4 Unicast VPLS Address family IPv4 Unicast: advertised and received Address family VPLS: advertised and received Received: Total 26 messages, Update messages 2 Sent: Total 28 messages, Update messages 2 Maximum allowed prefix number: 4294967295 Threshold: 75% Minimum time between advertisement runs is 15 seconds Optional capabilities: Route refresh capability has been enabled Connect-interface has been configured Peer Preferred Value: 0 BFD: Enabled Routing policy configured: No routing policy is configured Table 2 Command output Field Peer Local Type BGP version 4 remote router ID BGP current state BGP current event BGP last state Port Configured Received Negotiated Peer optional capabilities: Peer support bgp multi-protocol extended Peer support bgp route refresh capability Graceful Restart Capability: Restart Timer Value of Peer Forwarding State preserved by Peer for following Address families Address family IPv4 Unicast Address family VPLS IP address of the peer. IP address of the local router. BGP type. BGP version information. IP address of the remote router. Current status of the BGP session. Current event of the BGP session. State that the BGP session was in before transitioning to the current status. Local and remote port numbers of the BGP session. Settings of the local timers. Received active hold interval. Negotiated timer settings. Optional peer capabilities. In this example, the peer supports BGP multicast protocol extension and route refresh. Information about Graceful Restart (GR) capability, including the peer restart timer and the address families for which forwarding state is preserved. IPv4 unicast address family capability. VPLS address family. 4

Field Received Sent Maximum allowed prefix number Threshold Minimum time between advertisement runs is XX seconds Optional capabilities: Route refresh capability has been enabled Connect-interface has been configured Peer Preferred Value BFD Routing policy configured Counts of received messages, including the total number of received messages and the number of received update messages. Counts of sent messages, including the total number of sent messages and the number of sent update messages. Maximum number of routes allowed. Threshold value. When the number of routes reaches the maximum number of routes allowed multiplied by this threshold value, an alarm is issued. Minimum advertising interval. Optional capabilities. In this example, route refresh capability is enabled, and the directly connected interface is configured. Peer preference value. Whether BFD is enabled for the peer. Routing policy configured for the peer. # Display the VPLS information for RD 100:1 in the BGP routing table. <Sysname> display bgp vpls route-distinguisher 100:1 BGP Local Router ID : 2.2.2.9, Local AS Number : 100 Origin codes:i - IGP, e - EGP,? - incomplete BGP.VPLS: 1 destination SITE ID LB Offset LB Size LB Base Nexthop LocPref 8 0 10 524624 3.3.3.9 100 Table 3 Command output Field BGP Local Router ID Local AS Number Origin codes BGP.VPLS SITE ID LB Offset LB Size LB Base Nexthop Router ID of the local BGP router. Number of the local AS. Route origin codes. Valid values include: i - IGP Learned from within the AS. e - EGP Learned through EGP.? - incomplete Learned in any other way. Number of BGP VPLS. ID of a site in the VPLS instance. Label offset value. Size of the label block. Initial label of the label block. Address of the next hop. 5

Field LocPref Local preference. # Display the VPLS information for specified RD, CE number, and label offset in the BGP routing table. <Sysname> display bgp vpls route-distinguisher 100:1 site-id 4 label-offset 0 BGP Local router ID : 2.2.2.9, local AS number : 100 Origin codes:i - IGP, e - EGP,? - incomplete *Nexthop : 3.3.3.9, Locpref : 100 Metric : 133, Flag : 0x85 LB Base : 132096, LB NewBase : 0 LB Size : 10, Label Offset : 0 MTU :0, Encap Type :Unknown or Reserved Path Attribute : RefCount : 1, MED 133:, AS Path : 200 The following table gives the description on the fields of the display bgp vpls route-distinguisher site-id label-offset command. Table 4 Command output Field BGP Local router ID local AS number Origin codes *Nexthop Locpref Metric Router ID of the local BGP router. Number of the local AS. Route origin codes. Valid values include: i - IGP Learned from within the AS. e - EGP Learned through EGP.? - incomplete Learned in any other way. Address of the next hop. Local preference. Cost value. Current status of the label: 0x0001 (BGP_VPLS_LB_NOT_SENTTO_VPLS) 0x0002 (BGP_VPLS_LB_SENTTO_VPLS) 0x0004 (BGP_VPLS_LB_SELECTED) 0x0008 (BGP_VPLS_LB_ASBR_TNLDOWN) Flag LB Offset LB Size LB Base LB NewBase 0x0010 (BGP_VPLS_LB_FROM_RR_IBGP) 0x0020 (BGP_VPLS_LB_FROM_RR_EBGP) 0x0040 (BGP_VPLS_LB_FROM_IBGP) 0x0080 (BGP_VPLS_LB_FROM_EBGP) 0x0085 (BGP_VPLS_LB_NOT_SENTTO_VPLS BGP_VPLS_LB_SELECTED BGP_VPLS_LB_FROM_EBGP) Label offset value. Size of the label block. Initial label of the label block. New label block. 6

Field RefCount MED AS Path Label reference count. Cost value. AS path of the route. MTU Maximum transmission unit at Layer 2. Encap Type Encapsulation type. display l2vpn fast-switch-group display l2vpn fast-switch-group [ group-index ] [ { begin exclude include } regular-expression ] Any view 1: Monitor level group-index: Fast switching group index in the range of 0 to 4095. : Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide. begin: Displays the first line that matches the specified regular expression and all lines that follow. exclude: Displays all lines that do not match the specified regular expression. include: Displays all lines that match the specified regular expression. regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters. Use display l2vpn fast-switch-group to display information about one or all fast switching groups. NOTE: The switch does not support this command. # Display information about all fast switching groups. <Sysname> display l2vpn fast-switch-group Fast group index :0 Peer router ID :20.0.0.1 Backup-peer router ID :20.0.0.2 In used peer router ID :20.0.0.1 Reference counter :1 Fast group index :1 Peer router ID :30.0.0.1 Backup-peer router ID :30.0.0.2 7

In used peer router ID :30.0.0.1 Reference counter :1 Table 5 Command output Field Fast group index Peer router ID Backup-peer router ID In used peer router ID Reference counter Index of the fast switching group. Address of the VPLS instance peer. Address of the backup peer. Address of the peer that is in use. Number of times that the group has been referenced. display mac-address vsi Any view display mac-address vsi [ vsi-name ] [ blackhole dynamic static ] [ count ] [ { begin exclude include } regular-expression ] 1: Monitor level vsi-name: Name of the VPLS instance, a case-insensitive string of 1 to 31 characters. Hyphens (-) are not allowed. blackhole: Black hole MAC forwarding entries. dynamic: Dynamic MAC forwarding entries. static: Static MAC forwarding entries. count: Number of MAC forwarding entries. : Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide. begin: Displays the first line that matches the specified regular expression and all lines that follow. exclude: Displays all lines that do not match the specified regular expression. include: Displays all lines that match the specified regular expression. regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters. Use display mac-address vsi to display the MAC address table information for a specific VPLS instance or all VPLS instances. Related commands: vsi; mac-address (Layer 2 LAN Switching Command Reference). 8

NOTE: The switch does not support black hole MAC forwarding entries (blackhole) and static MAC forwarding entries (static). If you specify the blackhole and static keywords, no information is output for them. # Display information about the MAC address table. <Sysname> display mac-address vsi MAC ADDR STATE VSI ID PEER IP AGING TIME 0000-0000-000a dynamic 1 Vlan 300 AGING 0000-0000-0009 dynamic 1 LinkId 1 AGING --- 2 mac address(es) found --- # Display the total number of entries in the MAC address table. <Sysname> display mac-address vsi count 2 mac address(es) found Table 6 Command output Field MAC ADDR STATE MACTYPE Vsilndex LINK ID VSI ID PEER IP AGING TIME XX mac address(es) found MAC address. Status of the MAC address. MAC address type of the VPLS instance. VSI index. Link ID. ID of the VPLS instance. IP address of the peer in the VPLS instance. For a device on the private network side, it is the ID of the VLAN to which the switch belongs. For a device on the public network side, it is the PW ID. Whether the MAC address of the VPLS instance get aged, AGING or NOAGED. Total number of MAC addresses in the MAC address table of the VPLS instance. display mpls l2vpn fib ac vpls In standalone mode: display mpls l2vpn fib ac vpls [ vsi vsi-name interface interface-type interface-number [ service-instance service-instanceid ] ] [ slot slot-number ] [ verbose ] [ { begin exclude include } regular-expression ] In IRF mode: display mpls l2vpn fib ac vpls [ vsi vsi-name interface interface-type interface-number [ service-instance service-instanceid ] ] [ chassis chassis-number slot slot-number ] [ verbose ] [ { begin exclude include } regular-expression ] 9

Any view 1: Monitor level vsi vsi-name: Specifies the VPLS instance name, a case-insensitive string of 1 to 31 characters. Hyphens (-) are not allowed. interface interface-type interface-number: Specifies the interface connecting a CE by its type and number. service-instance service-instanceid: Specifies a service instance. service-instanceid is the service instance ID in the range of 1 to 4094. verbose: Displays the detailed information. slot slot-number: Displays the AC information on a card. slot-number represents the number of the slot that holds the card. Use this option when your switch is operating in standalone (the default) mode. chassis chassis-number slot slot-number: Displays the AC entries of a card on an IRF member switch. The chassis-number argument represents the ID of the IRF member switch, and the slot-number argument represents the number of the slot that holds the card. You can display the chassis number and slot number with the display device command. Use this option when your switch is operating in IRF mode. : Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide. begin: Displays the first line that matches the specified regular expression and all lines that follow. exclude: Displays all lines that do not match the specified regular expression. include: Displays all lines that match the specified regular expression. regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters. Use display mpls l2vpn fib ac vpls to display the AC entry information for one or all VPLS instances. When you use this command, note these guidelines: If you specify an interface but do not specify a service instance, the command displays the AC entries of the VPLS connection created on the Layer 3 interface. If you specify both an interface and a service instance, the command displays the AC entries of the VPLS connection created for the service instance on the Layer 2 interface. If you do not specify any parameter, the command displays the AC entries of all VPLS connections. # Display the AC entry information for all VPLS instances. <Sysname> display mpls l2vpn fib ac vpls Total VSI Entry:1 Total AC Entry:1 In Interface ServID VSIName VSIIndex LinkID ------------------------------------------------------------ GE3/1/1 1000 vsi1 1 1 10

Table 7 Command output Field Total VSI Entry Total AC Entry In Interface ServID VSIName VSIIndex LinkID Total number of VSI entries, which is displayed only when you display all VPLS AC entries. Total number of VPLS AC entries, which is displayed only when you display all VPLS AC entries. Incoming interface, the interface bound to an L2VPN. Service instance ID. VPLS instance name. VPLS instance index. Link ID of an AC in the VPLS instance. # Display the detailed AC entry information for all VPLS instances. <Sysname> display mpls l2vpn fib ac vpls verbose Total VSI Entry:2 Total AC Entry:2 VSI Name: aaa VSI Index: 0 **In Interface : GE3/0/1 Service Instance ID : 1 Link ID : 9 Access Mode : Vlan CE Type : Independent AC Encapsulation : s-vid 300 c-vid 400 to 500 600 700 Hub Spoke Type : ---- GR Count : 0 VSI Name: bbb VSI Index: 1 **In Interface : GE3/0/1 Service Instance ID : 2 Link ID : 9 Access Mode : Vlan CE Type : Independent AC Encapsulation : s-vid 4011 4012 to 4050 Hub Spoke Type : ---- GR Count : 0 Table 8 Command output Field Total VSI Entry Total AC Entry VSI Name VSI Index In Interface Link ID Total number of VSI entries, which is displayed only when you display all VPLS AC entries. Total number of VPLS AC entries, which is displayed only when you display all VPLS AC entries. Name of the VPLS instance. Index of the VPLS instance. Incoming interface, the interface bound to an L2VPN. Link ID of an AC in the VPLS instance. 11

Field Access Mode CE Type AC Encapsulation GR Count Access mode at the AC side. Interface encapsulation type at the AC side, which can be PortVlan or Independent. Encapsulation VLAN information at the AC side. Number of times that GR occurs. display mpls l2vpn fib pw vpls In standalone mode: display mpls l2vpn fib pw vpls [ vsi vsi-name [ link link-id ] ] [ slot slot-number ] [ verbose ] [ { begin exclude include } regular-expression ] In IRF mode: Any view display mpls l2vpn fib pw vpls [ vsi vsi-name [ link link-id ] ] [ chassis chassis-number slot slot-number ] [ verbose ] [ { begin exclude include } regular-expression ] 1: Monitor level vsi vsi-name: Specifies the VPLS instance name, a case-insensitive string of 1 to 31 characters. Hyphens (-) are not allowed. The specified VPLS instance must have existed. link link-id: Specifies a PW in the VPLS instance by its link ID. The specified PW must have existed. verbose: Displays the detailed information. slot slot-number: Displays the PW information on a card. The slot-number argument represents the number of the slot that holds the card. Use this option when your switch is operating in standalone (the default) mode. chassis chassis-number slot slot-number: Displays the PW entries of a card on an IRF member switch. The chassis-number represents the ID of the IRF member switch, and the slot-number argument represents the number of the slot that holds the card. You can display the chassis number and slot number with the display device command. Use this option when your switch is operating in IRF mode. : Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide. begin: Displays the first line that matches the specified regular expression and all lines that follow. exclude: Displays all lines that do not match the specified regular expression. include: Displays all lines that match the specified regular expression. regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters. 12

Use display mpls l2vpn fib pw vpls to display the PW entry information for one or all VPLS instances. # Display the PW entry information for all VPLS instance. <Sysname> display mpls l2vpn fib pw vpls Total VSI Entry:1 Total PW Entry:1 VSI Name VSI Index Link ID InVCLabel OutVCLabel TunnelID -------------------------------------------------------------- vsi1 1 1 1000 1002 0x878ad000 Table 9 Command output Field Total VSI Entry Total PW Entry VSI Name VSI Index Link ID InVCLabel OutVCLabel TunnelID Total number of VSI entries, which is displayed only when you display all VPLS PW entries. Total number of VPLS PW entries, which is displayed only when you display all VPLS PW entries. VPLS instance name. VPLS instance index. Link ID of a PW in the VPLS instance. Incoming VC label. Outgoing VC label. Public tunnel ID. # Display the detailed PW entry information for all VPLS instances. <Sysname> display mpls l2vpn fib pw vpls verbose Total VSI Entry:1 Total PW Entry:1 VSI Name : vsi1 VSI Index: 0 **Link ID : 1 In Interface : GE3/1/1 In VC Label : 1000 Out VC Label : 1002 Encapsulation Type : Ethernet Hub Spoke Type : Hub MTU : 1500 Role : Main State : Active Dual Link ID : 2 Fast Switch Group ID: 1 Tunnel ID : 0x878ad000(Done) GrCount:1 Tunnel ID : 0x878ad001(Waiting) GrCount:1 13

Table 10 Command output Field Total VSI Entry Total PW Entry VSI Name VSI Index Link ID In Interface In VC Label Out VC Label MTU Role State Dual Link ID Fast Switch Group ID Tunnel ID Total number of VSI entries, which is displayed only when you display all VPLS PW entries. Total number of VPLS PW entries, which is displayed only when you display all VPLS PW entries. VPLS instance name. VPLS instance index. Link ID of a PW in the VPLS instance. Incoming interface, the interface bound to an L2VPN. Incoming VC label. Outgoing VC label. Maximum transmission unit. PW role, which can be Main, Backup, or Normal. PW state, active or standby. Link ID of the other PW, which is displayed when main and backup PWs exist in the VPLS instance. PW group ID. Public tunnel ID and entry state (Done or Waiting) GrCount: Number of times that GR occurs. display pw-class Any view display pw-class [ pw-class-name ] [ { begin exclude include } regular-expression ] 1: Monitor level pw-class-name: Name of a PW class, a case-insensitive string of 1 to 19 characters. : Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide. begin: Displays the first line that matches the specified regular expression and all lines that follow. exclude: Displays all lines that do not match the specified regular expression. include: Displays all lines that match the specified regular expression. regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters. 14

Use display pw-class to display information about one or all PW classes. If no PW class is specified, the command displays information about all PW classes. If you specify a PW class, the command output includes an additional field to show the number of times the PW class has been referenced. # Display information about all PW classes. <Sysname> display pw-class Total 3 PW-class(es) PW-class name Transport mode Tunnel policy 1234 Ethernet abc 1025 VLAN abc 1026 VLAN - # Display information about the PW class named 1234. <Sysname> display pw-class 1234 PW-class name Transport mode Tunnel policy Reference count 1234 Ethernet abc 0 Table 11 Command output Field Tunnel policy Reference count Name of the tunneling policy used by the PW class. If no tunneling policy is specified for the PW class, this field displays a hyphen (-). Number of times that the PW class are referenced. display service-instance interface Any view display service-instance interface interface-type interface-number [ service-instance service-instance-id ] [ { begin exclude include } regular-expression ] 1: Monitor level interface-type interface-number: Specifies an interface by it type and number. service-instance service-instance-id: Specifies a service instance configured on the specified interface. service-instance-id is in the range of 1 to 4094. If you do not specify any service instance, the command displays information about all service instances configured on the specified interface. : Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide. begin: Displays the first line that matches the specified regular expression and all lines that follow. 15

exclude: Displays all lines that do not match the specified regular expression. include: Displays all lines that match the specified regular expression. regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters. Use display service-instance interface to display information about one or all service instances configured on an interface. # Display information about all service instances configured on GigabitEthernet 3/0/3. <Sysname> display service-instance interface GigabitEthernet 3/0/3 Service instance : 1000 Encapsulation : s-vid 100 MTU : 1500 Access-mode : VLAN Service type : VPLS Service instance : 1002 Encapsulation : s-vid 103 MTU : 1500 Access-mode : VLAN Service type : VPLS Table 12 Command output Field Encapsulation Service Type Packet matching rule. Service type associated with the service instance. The service type can be VPLS or VPWS, and is displayed as when the service instance is not associated with L2VPN. display vpls connection Any view display vpls connection [ bgp ldp vsi vsi-name ] [ block down up ] [ verbose ] [ { begin exclude include } regular-expression ] 1: Monitor level bgp: Specifies all Kompella VPLS connections. ldp: Specifies all Martini VPLS connections. vsi vsi-name: Specifies a VPLS instance by its name, a case-insensitive string of 1 to 31 characters. Hyphens (-) are not allowed. block: Specifies VPLS connections that are blocked. A PW in the block state is not used for the moment. 16

down: Specifies VPLS connections that are down. up: Specifies VPLS connections that are up. verbose: Displays detailed information. : Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide. begin: Displays the first line that matches the specified regular expression and all lines that follow. exclude: Displays all lines that do not match the specified regular expression. include: Displays all lines that match the specified regular expression. regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters. Use display vpls connection to display information about VPLS connections. Related commands: vsi. # Display information about VPLS connections of VPLS instance aaa. <Sysname> display vpls connection vsi aaa Total 1 connection(s), connection(s): 1 up, 0 block, 0 down, 1 ldp, 0 bgp VSI Name: aaa Signaling: ldp VsiID VsiType PeerAddr InLabel OutLabel LinkID VCState 500 vlan 1.1.1.9 1024 1024 1 up Table 13 Command output Field VSI Name Signaling VsiID VsiType PeerAddr InLabel OutLabel LinkID VCState Name of the VPLS instance. Type of the PW signaling protocol used by the VPLS instance. ID of the VPLS instance. Access type of the VPLS instance. Address of the peer in the VPLS instance. Incoming label of the VPLS instance. Outgoing label of the VPLS instance. ID of the PW in the VPLS instance. Status of the VC. # Display detailed information about VPLS connections of VPLS instance aaa. <Sysname> display vpls connection vsi aaa verbose VSI Name: aaa Signaling: ldp **Remote Vsi ID : 500 VC State : up Encapsulation : vlan 17

Group ID : 0 MTU : 1500 Peer Ip Address : 1.1.1.9 PW Type : label Local VC Label : 1024 Remote VC Label : 1024 Link ID : 1 Tunnel Policy : -- Tunnel ID : 0x3703ae Local VCCV CC Type : CW, RA Local VCCV CV Type : LSPV Remote VCCV CC Type : CW, RA Remote VCCV CV Type : LSPV Table 14 Command output Field VSI Name Signaling Remote Vsi ID VC State Encapsulation MTU Peer Ip Address PW Type Link ID Local VCCV CC Type Name of the VPLS instance. PW signaling protocol used by the VPLS instance. ID of the VPLS instance. Status of the virtual circuit. Encapsulation type of the VPLS instance. Maximum transmission unit of the VPLS instance. IP address of the peer of the VPLS instance. PW type: label NPW, the PW with a PE. MEHVPLS UPW, the PW with a UPE. ID of the PW in the VPLS instance. Virtual Circuit Connectivity Verification (VCCV) control channel (CC) types supported on the local peer: CW Control word. RA Router alert (RA) label. VCCV is technology like ping. It is used to check the connectivity of L2VPN PWs. Local VCCV CV Type Remote VCCV CC Type Remote VCCV CV Type VCCV connectivity verification (CV) types supported on the local peer. Only LSPV is supported, indicating that MPLS LSP ping is used to check the PW connectivity. VCCV control channel types supported on the remote peer. VCCV connectivity verification types supported on the remote peer. NOTE: You can use VCCV to verify the connectivity of a PW only if the two peers support at least one identical CC type and one identical CV type. 18

display vsi display vsi [ vsi-name ] [ verbose ] [ { begin exclude include } regular-expression ] Any view 1: Monitor level vsi-name: Name of the VPLS instance, a case-insensitive string of 1 to 31 characters. Hyphens (-) are not allowed. verbose: Displays detailed information. : Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide. begin: Displays the first line that matches the specified regular expression and all lines that follow. exclude: Displays all lines that do not match the specified regular expression. include: Displays all lines that match the specified regular expression. regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters. Use display vsi to display information about a specific VPLS instance or all VPLS instances. Related commands: vsi. # Display information about VPLS instance aaa. <Sysname> display vsi aaa Vsi Mem PW Mac Encap Mtu Vsi Name Disc Type Learn Type Value State aaa static ldp unqualify vlan 1500 up Table 15 Command output Field Vsi Name Mem Disc PW Type Mac Learn Encap Type Mtu Value Name of the VSI. Peer discovery mechanism of the VSI: static The peer must be configured manually. auto The peer automatic discovery mechanism is used. PW signaling protocol, ldp or bgp. MAC address learning type, unqualify or qualify. PW encapsulation type, vlan, ethernet, or bgp-vpls. Maximum transmission unit. 19

Field Vsi State Status of the VSI, up or down. # Display detailed configuration information about VPLS instance aaa, which uses LDP as the PW signaling protocol. <Sysname> display vsi aaa verbose ***VSI Name : aaa VSI Index : 0 VSI : 1 PW Signaling : ldp Member Discovery Style : static PW MAC Learn Style : unqualify Encapsulation Type : vlan MTU : 1500 Bandwidth : 102400 kbps BroadcastRestrain : 5% Multicast Restrain : 50% Unknown Unicast Restrain : 10% MacTabLimit : 128 Drop Unknown : enabled MacLearnEnable : enable Hub-spoke : unspecified P2P : unspecified Wait to Restore Time : 10(Min) VSI State : down Local VCCV CC Type : CW, RA Local VCCV CV Type : LSPV VSI ID : 100 *Peer Router ID : 2.2.2.2 VC Label : 1024 Session : up Service : QoS Inbound CAR name : car1 Inbound CAR ID : 1 Outbound CAR name : car1 Outbound CAR ID : 1 Interface Name : GigabitEthernet3/0/3 State : down Service instance ID : 100 *Peer Ip Address : 2.2.2.2 PW State : up Local VC Label : 1024 Remote VC Label : 1027 PW Type : label Tunnel ID : 0xd2008 20

Remote VCCV CC Type Remote VCCV CV Type : RA : LSPV # Display detailed configuration information about VPLS instance bbb, which uses BGP as the PW signaling protocol. <Sysname> display vsi bbb verbose ***VSI Name : bbb VSI Index : 1 PW Signaling : bgp Member Discovery Style : auto PW MAC Learn Style : unqualify Encapsulation Type : vlan MTU : 1500 Bandwidth : 102400 kbps BroadcastRestrain : 5% Multicast Restrain : 50% Unknown Unicast Restrain : 10% MacTabLimit : 128 Drop Unknown : disabled MacLearnEnable : enable Wait to Restore Time : Invalid VSI State : down BGP RD : 111:1 SiteID/Range/Offset : 100/10/0 Import vpn target : 111:1 Export vpn target : 111:1 Local Label Block : 8192/10/0 Interface Name : GigabitEthernet3/0/4 State : down Service instance ID : 200 Table 16 Command output Field VSI Name VSI Index VSI PW Signaling Member Discovery Style PW MAC Learn Style Name of the VPLS instance. Index of the VPLS instance. of the VPLS instance. Type of the PW signaling protocol used by the VPLS instance, which can be ldp or bgp. Peer discovery mechanism of the VPLS instance: static The peer must be specified manually. auto The peer automatic discovery mechanism is used. MAC address learning type, unqualify or qualify. 21

Field Encapsulation Type IntfIndex MTU Bandwidth BroadcastRestrain Multicast Restrain Unknown Unicast Restrain MacTabLimit Drop Unknown MacLearnEnable Hub-spoke P2P Wait to Restore Time VSI State Local VCCV CC Type Local VCCV CV Type VSI ID Peer Router ID VC Label Session Service PW encapsulation type, vlan, ethernet, or bgp-vpls. Index of the interface. Maximum transmission unit. Bandwidth threshold of the VPLS instance. Broadcast suppression ratio of the VPLS instance. Multicast suppression ratio of the VPLS instance. Unknown unicast suppression ratio of the VPLS instance. Maximum number of MAC addresses for a VPLS instance. Whether to drop packets with unknown source MAC addresses when the VPLS instance has learned the maximum number of MAC addresses allowed. enabled Drops packets with unknown source MAC addresses. disabled Forwards packets with unknown source MAC addresses. Whether MAC address learning is enabled. Whether Hub-Spoke capability is enabled when the peer discovery mechanism is static. Whether P2P capability is enabled when the peer discovery mechanism is static. PW switchback delay time, in minutes. A value of invalid means that the switchback function is disabled. Status of the VPLS instance, down or up. Virtual Circuit Connectivity Verification (VCCV) control channel types supported on the local peer: CW Control word. RA Router alert (RA) label. VCCV is a technology like ping. It is used to check the connectivity of L2VPN PWs. VCCV connectivity verification types supported on the local peer. Only LSPV is supported, indicating that MPLS LSP ping is used to check the PW connectivity. ID of the VPLS instance. ID of the peer. Label of the VC. Status of the session. Enabled services: Statistics The statistics collection service. QoS The PW traffic policing service. 22

Field Inbound CAR name Inbound CAR ID Outbound CAR name Outbound CAR ID Fast Switch Group Index BGP RD SiteID/Range/Offset Import vpn target Export vpn target Interface Name State Service instance ID PW Type Remote VCCV CC Type Remote VCCV CV Type Name of the CAR action applied in the inbound direction. If no CAR action is specified, this field does not appear. ID of the CAR action applied in the inbound direction. If no CAR action is specified, this field does not appear. Name of the CAR action applied in the outbound direction. If no CAR action is specified, this field does not appear. ID of the CAR action applied in the outbound direction. If no CAR action is specified, this field does not appear. Index of the fast switching group. BGP router distinguisher. Site ID/site range/ce offset of a site in the VPLS instance. Incoming routing information from the destination VPN extended community. Outgoing routing information to the destination VPN extended community. Name of the Layer 2 Ethernet interface where the service instance associated with the VPLS instance resides. Status of the Layer 2 Ethernet interface where the service instance associated with the VPLS instance resides. ID of the service instance associated with the VPLS instance. PW type: label NPW, the PW with a PE. MEHVPLS UPW, the PW with a UPE. VCCV control channel types supported on the remote peer. VCCV connectivity verification types supported on the remote peer. display vsi remote display vsi remote { bgp ldp } [ { begin exclude include } regular-expression ] Any view 23

1: Monitor level bgp: Displays information about remote VPLS connections using the signaling protocol of BGP. ldp: Displays information about remote VPLS connections using the signaling protocol of LDP. : Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide. begin: Displays the first line that matches the specified regular expression and all lines that follow. exclude: Displays all lines that do not match the specified regular expression. include: Displays all lines that match the specified regular expression. regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters. Use display vsi remote to display information about remote VPLS connections using a specific signaling protocol. Related commands: vsi. # Display information about remote VPLS connections using LDP. <Sysname> display vsi remote ldp Vsi Peer VC Group Vsi MTU Vsi ID RouterID Label ID Type Value Index 500 60.1.1.1 524688 0 vlan 1500 0 Table 17 Command output Field Vsi ID Peer Router ID VC Label Group ID Vsi Type MTU Value Vsi Index ID of the VPLS instance. ID of the peer. Label of the VC. ID of the group. Encapsulation type of the VPLS instance. Maximum transmission unit. Index of the VPLS instance. dual-npe revertive dual-npe revertive [ wtr-time wtr-time ] undo dual-npe revertive [ wtr-time ] VSI LDP view 24

wtr-time wtr-time: Specifies the switchback delay time, or the wait-to-restore time. After the primary PW comes back, the system waits for a period of time dictated by the switchback delay time before switching data from the secondary PW back to the primary PW. The wtr-time argument is in the range of 1 to 720, in minutes. The default is 30 minutes. Use dual-npe revertive to enable the switchback function and set the switchback delay time. Use undo dual-npe revertive wtr-time to restore the default switchback delay time. Use undo dual-npe revertive to disable the switchback function. By default, the switchback function is disabled. # Create a VPLS instance named vpna that uses the peer discovery mechanism of manual configuration and set the switchback delay time to 1 minute. [Sysname] vsi vpna static [Sysname-vsi-vpna] pwsignal ldp [Sysname-vsi-vpna-ldp] dual-npe revertive wtr-time 1 encapsulation (service instance view) encapsulation { s-vid vlan-id [ only-tagged ] port-based tagged untagged } undo encapsulation Service instance view s-vid vlan-id: Specifies the outer VLAN ID. VLAN ID is in the range of 1 to 4094. only-tagged: Matches only tagged packets. If the specified VLAN ID is the default VLAN of the port and the only-tagged keyword is not specified, the service instance matches untagged packets as well as packets carrying the current port's default VLAN ID. port-based: Matches packets by port. tagged: Matches tagged packets. untagged: Matches untagged packets. Use encapsulation to configure a packet matching rule for the current service instance. Use undo encapsulation to remove the packet matching rule of the current service instance. 25

By default, no packet matching rule is configured for a service instance. If you configure this command for a service instance for multiple times, only the last configuration will take effect. On a port, if you have configured a rule to match packets carrying the port's PVID tag in a service instance without specifying the only-tagged keyword, and to match untagged packets in another service instance, untagged packets will be matched in the service instance where this command was configured first. H3C recommends that you also specify the only-tagged keyword to match packets carrying specific VLAN tags. Otherwise, untagged packets might be matched to a different service instance than the one you expected. Specify different VLAN IDs for different service instances on the same Layer 2 Ethernet interface. # Configure service instance 100 to match VLAN 100. [Sysname] interface GigabitEthernet 3/0/3 [Sysname-GigabitEthernet3/0/3] service-instance 100 [Sysname-GigabitEthernet3/0/3-srv100] encapsulation s-vid 100 encapsulation (VSI view) VSI view encapsulation { bgp-vpls ethernet vlan } bgp-vpls: Specifies the PW encapsulation type of the current BGP VPLS instance as the standard encapsulation type defined in RFC 4761, which corresponds to the PW encapsulation type of Ethernet. ethernet: Specify the PW encapsulation type of the current VPLS instance as Ethernet. vlan: Specifies the PW encapsulation type of the current VPLS instance as VLAN. Use encapsulation to specify the PW encapsulation type for a VPLS instance. By default, the PW encapsulation type of a VPLS instance is VLAN. # Set the VPLS instance encapsulation type to Ethernet. [Sysname] vsi aaa [Sysname-vsi-aaa] encapsulation ethernet 26

l2 binding vsi l2 binding vsi vsi-name [ access-mode { ethernet vlan } { hub spoke } ] * undo l2 binding vsi vsi-name Interface view vsi-name: Name of the VPLS instance, a case-insensitive string of 1 to 31 characters. Hyphens (-) are not allowed. access-mode: Specifies the access mode of the VPLS instance, which can be ethernet or vlan. When the interface bound with the VPLS instance is a routing interface, the default access mode is Ethernet. When interface bound with the VPLS instance is a routing subinterface, the default access mode is VLAN. ethernet: Specifies the access mode of Ethernet. vlan: Specifies the access mode of VLAN. hub: Specifies that the attached CE is the hub-ce. spoke: Specifies that the attached CE is a spoke-ce. This is the default when the hub-spoke feature is enabled for the instance. Use l2 binding vsi to bind a VPLS instance on an interface. Use undo l2 binding vsi to remove the binding. When the hub-spoke feature is enabled for a VPLS instance (the hub-spoke keyword included in the vsi static command), you can also specify whether the attached CE is a spoke site or the hub site. IMPORTANT: With the l2 binding vsi command configured on an interface, services bound to the interface are considered the internal VPN services of the VPLS instance. After a Layer 3 interface is bound with a VPLS instance, its Layer 3 subinterfaces cannot be bound with an L2VPN or VPLS instance. After a Layer 3 subinterface is bound with a VPLS instance, the corresponding Layer 3 interface cannot be bound with an L2VPN or VPLS instance. Related commands: peer and vsi. # Bind VPLS instance aaa on GigabitEthernet 3/0/1. [Sysname] interface GigabitEthernet 3/0/1 [Sysname-GigabitEthernet3/0/1] port link-mode route [Sysname-GigabitEthernet3/0/1] l2 binding vsi aaa 27

mac-learning mac-learning { enable disable } VSI view enable: Enables MAC address learning for the VPLS instance. disable: Disables MAC address learning for the VPLS instance. Use mac-learning to enable or disable MAC address learning for a VPLS instance. With MAC address learning disabled for a VPLS instance, the system does not learn source MAC addresses from the packets received from the VPLS instance. By default, MAC address learning is enabled. # Enables MAC address learning for VPLS instance aaa. [Sysname] vsi aaa [Sysname-vsi-aaa] mac-learning enable mac-table limit VSI view mac-table limit mac-limit-number undo mac-table limit mac-limit-number: Maximum number of MAC addresses that the switch can learn for the VPLS instance. The value range depends on the system working mode. For more information, see Fundamentals Configuration Guide. Use mac-table limit to specify the maximum number of MAC addresses that the switch can learn for the VPLS instance. Use undo mac-table limit to restore the default. 28

By default, the maximum number depends on the system working mode. For more information, see Fundamentals Configuration Guide. Once the number of MAC addresses learned for a VPLS instance reaches this limit, the switch does not learn source MAC addresses any more but broadcasts the received packet in the VPLS instance. # Set the maximum number of MAC addresses that the switch can learn for VPLS instance aaa to 1024. [Sysname] vsi aaa [Sysname-vsi-aaa] mac-table limit 1024 mac-withdraw null-ip-address-tlv mac-withdraw null-ip-address-tlv undo mac-withdraw null-ip-address-tlv PW class view None Use mac-withdraw null-ip-address-tlv to configure the signaling protocol to carry an empty IP address list TLV in MAC address withdraw messages. Use undo mac-withdraw null-ip-address-tlv to configure the signaling protocol to not carry an empty IP address list TLV in MAC address withdraw messages. By default, a MAC address withdraw message carries an empty IP address list TLV. Use the mac-withdraw null-ip-address-tlv command or its undo form on your device to make sure the two end devices of a PW have the same implementation on whether a MAC address withdraw message will carry an empty IP address list TLV. Otherwise, when a primary/backup PW switchover occurs, the local device cannot receive the MAC address withdraw message from the peer device. For more information about the Address List TLV, see "Address Withdraw Message" in RFC 5036. # Configure the signaling protocol to not carry an empty IP address list TLV in MAC address withdraw messages. [Sysname] pw-class pw100 [Sysname-pw-pw100] undo mac-withdraw null-ip-address-tlv 29

mtu (VSI view) mtu mtu undo mtu VSI view mtu: Maximum transmission unit (MTU) for the VPLS instance, in the range of 328 to 8192. The default is 1500. Use mtu to set the MTU of a VPLS instance. Use undo mtu to restore the default. The MTU of a VPLS instance is a global attribute and is also the MTU of the PW. In Martini VPLS, the MTUs of VPLS instances of peer PEs must be identical. In Kompella VPLS, the MTUs of VPLS instances of peer PEs can be different. # Set the MTU of VPLS instance aaa to 1400. [Sysname] vsi aaa [Sysname-vsi-aaa] mtu 1400 peer (VSI LDP view) peer ip-address [ { hub spoke } pw-class class-name [ pw-id pw-id ] [ upe backup-peer ip-address [ backup-pw-id pw-id ] ] ] * undo peer ip-address VSI LDP view ip-address: IP address of the remote VPLS peer PE. hub: Specifies the peer PE as the hub. spoke: Specifies the peer PE as a spoke. This is the default when the hub-spoke feature is enabled for the instance. 30

pw-class class-name: References a PW class. class-name represents the template name, a case-insensitive string of 1 to 19 characters. pw-id pw-id: ID of the PW to the VPLS peer PE, in the range of 1 to 4294967295. The default is VSI ID. upe: Specifies that the peer PE is a UPE in the H-VPLS model. backup-peer ip-address: Specifies the IP address of the backup NPE. If you specify this parameter, you create a primary NPE and a backup NPE on the UPE. backup-pw-id pw-id: Specifies the ID of the PW to the backup NPE. The pw-id argument is in the range of 1 to 4294967295, and the default is the VSI ID. Use peer to create a peer PE for a VPLS instance. Use undo peer to remove a peer PE. With the hub-spoke feature for a VPLS instance, you can specify the connection mode of the peer PE as hub or spoke. Related commands: vsi and vsi-id. # Create a peer PE, which is of the UPE type, with the IP address of 4.4.4.4 and the PW ID of 200. [Sysname] vsi aaa [Sysname-vsi-aaa] pwsignal ldp [Sysname-vsi-aaa-ldp] peer 4.4.4.4 pw-id 200 upe # Create a primary peer PE 1.1.1.1 and a backup peer PE 2.2.2.2, and set the PW ID to the primary peer to 300 and that to the backup peer to 400. [Sysname] vsi aaa [Sysname-vsi-aaa] pwsignal ldp [Sysname-vsi-aaa-ldp] peer 1.1.1.1 pw-id 300 backup-peer 2.2.2.2 backup-pw-id 400 ping lsp pw (for VPLS) Any view ping lsp [ -a source-ip -c count -exp exp-value -h ttl-value -m wait-time -r reply-mode -s packet-size -t time-out -v ] * pw ip-address pw-id pw-id 0: Visit level -a source-ip: Specifies the source IP address of the Echo Request messages to be sent. -c count: Specifies the number of request messages to be sent. The count argument is in the range of 1 to 4294967295 and defaults to 5. 31

-exp exp-value: Specifies the EXP value for the Echo Request messages. The exp-value argument is in the range of 0 to 7 and defaults to 0. -h ttl-value: Specifies the TTL value for the Echo Request messages. The ttl-value argument is in the range of 1 to 255 and defaults to 255. -m wait-time: Specifies the interval for sending Echo Request messages. The wait-time argument is in the range of 1 to 10000 and defaults to 200, in milliseconds. -r reply-mode: Specifies the reply mode of the receiver in response to an Echo Request message. The reply-mode argument can be 1 or 2, where 1 means "Do not respond" and 2 means "Respond using a UDP packet". The default is 2. -s packet-size: Specifies the payload length of the Echo Request message. The packet-size argument is in the range of 65 to 8100 and defaults to 100, in bytes. -t time-out: Specifies the timeout interval for waiting for the response to an echo request message. The time-out argument is in the range of 0 to 65535 and defaults to 2000, in milliseconds. -v: Displays detailed response information. pw ip-address: Specifies the IP address of the peer PE. pw-id pw-id: Specifies the ID of the PW to the peer PE. The pw-id argument is in the range of 1 to 4294967295. Use ping lsp pw to check the connectivity of a Martini PW. # Check the connectivity of the PW to peer PE 3.3.3.9 that uses the PW ID of 301. <Sysname> ping lsp pw 3.3.3.9 pw-id 301 LSP Ping FEC: FEC 128 PSEUDOWIRE (NEW) 3.3.3.9 301 : 100 data bytes, press CTRL_C to break Reply from 100.1.2.1: bytes=100 Sequence=0 time = 31 ms Reply from 100.1.2.1: bytes=100 Sequence=1 time = 62 ms Reply from 100.1.2.1: bytes=100 Sequence=2 time = 62 ms Reply from 100.1.2.1: bytes=100 Sequence=3 time = 62 ms Reply from 100.1.2.1: bytes=100 Sequence=4 time = 62 ms pw-class --- FEC: FEC 128 PSEUDOWIRE (NEW) 3.3.3.9 301 ping statistics --- 5 packet(s) transmitted 5 packet(s) received 0.00% packet loss round-trip min/avg/max = 31/55/62 ms pw-class pw-class-name undo pw-class pw-class-name System view 32