HPE 12500 Series Command Reference Manual
HPE 12500 Series Command Reference Manual

HPE 12500 Series Command Reference Manual

Mpls, routing switch series
Table of Contents

Advertisement

Quick Links

HP 12500 Routing Switch Series
MPLS

Command Reference

Part number: 5998-3428
Software version: 12500-CMW710-R7128
Document version: 6W710-20121130

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the 12500 Series and is the answer not in the manual?

Questions and answers

Summary of Contents for HPE 12500 Series

  • Page 1: Command Reference

    HP 12500 Routing Switch Series MPLS Command Reference Part number: 5998-3428 Software version: 12500-CMW710-R7128 Document version: 6W710-20121130...
  • Page 2 Legal and notice information © Copyright 2012 Hewlett-Packard Development Company, L.P. No part of this documentation may be reproduced or transmitted in any form or by any means without prior written consent of Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice. HEWLETT-PACKARD COMPANY MAKES NO WARRANTY OF ANY KIND WITH REGARD TO THIS MATERIAL, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
  • Page 3: Table Of Contents

    Contents Basic MPLS commands ············································································································································································ 1   display mpls forwarding ilm ·························································································································································· 1   display mpls forwarding nhlfe ······················································································································································ 2   display mpls interface ······································································································································································· 4   display mpls label ··············································································································································································· 5   display mpls lsp ··················································································································································································· 6   display mpls lsp statistics ······························································································································································ 10  ...
  • Page 4 targeted-peer ····················································································································································································· 56   vpn-instance ······················································································································································································· 57   MPLS L3VPN commands ······································································································································································ 59   description (VPN instance view) ················································································································································· 59   display bgp group vpnv4 ······························································································································································ 59   display bgp peer vpnv4 ································································································································································· 61   display bgp routing-table ipv4 unicast inlabel ···················································································································· 64  ...
  • Page 5 ipv6-family vpnv6 ·········································································································································································· 120   policy vpn-target ··········································································································································································· 120   refresh bgp vpnv6 ········································································································································································· 121   reset bgp vpnv6 ············································································································································································· 122   rr-filter ································································································································································································ 122   MPLS L2VPN commands ··································································································································································· 124   ac interface ······················································································································································································· 124   connection ······················································································································································································· 125  ...
  • Page 6: Basic Mpls Commands

    Basic MPLS commands The switch operates in IRF or standalone (the default) mode. For more information about IRF, see IRF Configuration Guide. display mpls forwarding ilm Use display mpls forwarding ilm to display Incoming Label Map (ILM) entries. Syntax In standalone mode: display mpls forwarding ilm [ label ] slot slot-number In IRF mode: display mpls forwarding ilm [ label ] chassis chassis-number slot slot-number...
  • Page 7: Display Mpls Forwarding Nhlfe

    InLabel Oper Flag SwapLabel Forwarding Info -------------------------------------------------------------------------------- SWAP 1300 1024 # Display all ILM entries. <Sysname> display mpls forwarding ilm Total ILM entries: 3 Flags: T - Forwarded through a tunnel N - Forwarded through the outgoing interface to the nexthop IP address B - Backup forwarding information A - Active forwarding information InLabel Oper...
  • Page 8 Syntax In standalone mode: display mpls forwarding nhlfe [ nid ] slot slot-number In IRF mode: display mpls forwarding nhlfe [ nid ] chassis chassis-number slot slot-number Views Any view Predefined user roles network-admin network-operator mdc-admin mdc-operator Parameters nid: Displays the NHLFE entry with the specified NID. The value range for the NID is 0 to 1000000. If you do not specify an NID, the command displays information about all NHLFE entries on the specified card.
  • Page 9: Display Mpls Interface

    B - Backup forwarding information A - Active forwarding information Tnl-Type Flag OutLabel Forwarding Info -------------------------------------------------------------------------------- 2049 2050 2048 2025 GE3/0/2 10.11.112.26 2049 3024 GE3/0/2 10.11.112.26 3026 2050 3025 GE3/0/1 10.11.113.26 Table 2 Command output Field Description Total NHLFE entries Total number of NHLFE entries.
  • Page 10: Display Mpls Label

    mdc-operator Parameters interface-type interface-number: Specifies an interface by its type and number. If you do not specify an interface, the command displays MPLS information for all MPLS-enabled interfaces. Examples # Displays all MPLS interfaces. <Sysname> display mpls interface Interface Status MPLS MTU GE3/0/1 1514...
  • Page 11: Display Mpls Lsp

    Table 3 Command output Field Description Label Label value. Protocol that is using the label. Possible values include LDP, BGP, Owner RSVP, and L2VPN. Usage state of the label: • Idle—The label is idle. • Alloc—The label has been allocated. State •...
  • Page 12 static: Displays static LSPs. static-cr: Displays static CR-LSPs. The switch does not support this keyword. transit: Displays the LSPs taking the current LSR as a transit LSR. vpn-instance vpn-instance-name: Displays LSPs for the specified VPN. The vpn-instance-name is a case-sensitive string of 1 to 31 characters. If you do not specify this option, the command displays LSPs for the public network.
  • Page 13 Table 4 Command output Field Description Forwarding equivalence class: • IP address/mask—Classifies FECs by destination address. • IP address—Classifies FECs by next hop. • IP address/Out Label—Classifies FECs by next hop and outgoing label. • Ingress LSR ID/Tunnel ID/LSP ID—RSVP TE FEC. •...
  • Page 14 Field Description Label distribution protocol: • LDP. • BGP. • Protocol RSVP. • Static. • StaticCR—Static CR-LSP. • Local—Direct LSP. BkLabel Outgoing label of the backup LSP. BkInterface Outgoing interface of the backup LSP. # Display detailed information for all LSPs. <Sysname>...
  • Page 15: Display Mpls Lsp Statistics

    Table 6 Command output Field Description Destination LSP destination address. Forwarding equivalence class: • IP address/mask—Classifies FECs by destination address. • IP address—Classifies FECs by next hop. • IP address/Out Label—Classifies FECs by next hop and outgoing label. • Ingress LSR ID/Tunnel ID/LSP ID—RSVP TE FEC. •...
  • Page 16: Display Mpls Nid

    Views Any view Predefined user roles network-admin network-operator mdc-admin mdc-operator Examples # Display LSP statistics. <Sysname> display mpls lsp statistics LSP Type Ingress/Transit/Egress Active Static LSP 0/0/0 0/0/0 Static CRLSP 0/0/0 0/0/0 LDP LSP 2/2/1 2/2/1 RSVP CRLSP 0/0/0 0/0/0 BGP LSP 0/0/0 0/0/0...
  • Page 17: Display Mpls Summary

    Views Any view Predefined user roles network-admin network-operator mdc-admin mdc-operator Parameters nid-value1: Specifies an NID in the range of 0 to 1000000. If used with the nid-value2 argument, the nid-value1 argument represents the start NID of an NID range. to nid-value2: Specifies the end NID in the range of 0 to 1000000. If you specify an NID range by using the nid-value1 argument and the to nid-value2 option, the command displays the usage information for the specified range of NIDs.
  • Page 18: Display Mpls Statistics

    Examples # Display MPLS summary information. <Sysname> display mpls summary Memory State : Normal MPLS LSR ID : 2.2.2.2 Egress Label Type: Implicit-null Labels: Range Idle 16-1023 1008 1024-13311 12288 65536-69631 4096 131072-139263 8192 Protocols: Type State Normal Static Normal Table 8 Command output Field Description...
  • Page 19 Views Any view Predefined user roles network-admin network-operator mdc-admin mdc-operator Parameters all: Displays MPLS forwarding statistics for all LSPs. lsp-index index: Displays MPLS forwarding statistics for the specified LSP. The index argument represents the index of an LSP, in the range of 1 to 4294967295. Usage guidelines To use this command to view MPLS forwarding statistics for LSPs, you must first enable MPLS forwarding statistics for LSPs by using the mpls statistics command.
  • Page 20: Mpls Enable

    Errors Discards Start Time : 2006/05/20 15:52:30 End Time : 2006/05/20 15:52:30 Table 9 Command output Field Description Statistics for LSP (LSP index: index) MPLS forwarding statistics for the LSP identified by the index. Inbound Inbound direction. Outbound Outbound direction. Octets Bytes of packets processed.
  • Page 21: Mpls Label Advertise

    Usage guidelines Execute this command on all interfaces that need to perform MPLS forwarding. Examples # Enable MPLS on VLAN-interface 2. <Sysname> System-view [Sysname] interface vlan-interface 2 [Sysname-Vlan-interface2] mpls enable Related commands display mpls interface mpls label advertise Use mpls label advertise to specify the type of label the egress will advertise to the penultimate hop.
  • Page 22: Mpls Lsr-Id

    To re-establish BGP LSPs, delete the routes corresponding to the BGP LSPs, and then • redistribute the routes. Examples # Configure the egress device to advertise an explicit null label to the penultimate hop. <Sysname> system-view [Sysname] mpls label advertise explicit-null Related commands reset mpls ldp mpls lsr-id...
  • Page 23: Mpls Ttl Expiration Enable

    undo mpls mtu Default The MPLS MTU of an interface is not configured. Fragmentation for MPLS packets is based on the MTU of the interface, and the length of a fragment does not include that of the MPLS label. Thus, after an MPLS label is inserted into a fragment, the length of the MPLS fragment may exceed the interface MTU.
  • Page 24: Mpls Ttl Propagate

    Usage guidelines The mpls ttl expiration enable command enables an LSR to generate an ICMP TTL-expired message upon receiving an MPLS packet with TTL being 1. If the MPLS packet has only one label, the LSR sends the ICMP TTL-expired message back to the source through IP routing. If the MPLS packet has multiple labels, the LSR forwards the ICMP TTL-expired message along the LSP of the MPLS packet to the egress, which then sends the message back to the source.
  • Page 25 Examples # Enable TTL propagation for VPN packets. <Sysname> system-view [Sysname] mpls ttl propagate vpn...
  • Page 26: Static Lsp Commands

    Static LSP commands display mpls static-lsp Use display mpls static-lsp to display static LSP information. Syntax display mpls static-lsp [ lsp-name lsp-name ] Views Any view Predefined user roles network-admin network-operator mdc-admin mdc-operator Parameters lsp-name lsp-name: Specifies a static LSP by its name, a case-sensitive string of 1 to 15 characters. If you do not specify a static LSP, the command displays information about all static LSPs.
  • Page 27: Static-Lsp Ingress

    Syntax static-lsp egress lsp-name in-label in-label undo static-lsp egress lsp-name Default No static LSP exists on the device. Views System view Predefined user roles network-admin mdc-admin Parameters lsp-name: Specifies a name for the static LSP, a case-sensitive string of 1 to 15 characters. in-label in-label: Specifies an incoming label, which can be 0, 3, or a value in the range of 16 to 1023.
  • Page 28: Static-Lsp Transit

    destination dest-addr: Specifies a destination IP address for the LSP. mask: Specifies the mask of the destination IP address. mask-length: Specifies the mask length of the destination address, in the range of 0 to 32. nexthop next-hop-addr: Specifies a next hop address. outgoing-interface interface-type interface-number: Specifies an outgoing interface by its type and number.
  • Page 29 in-label in-label: Specifies an incoming label in the range of 16 to 1023. nexthop next-hop-addr: Specifies a next hop address. outgoing-interface interface-type interface-number: Specifies an outgoing interface by its type and number. You can specify an outgoing interface only in a point-to-point network. out-label out-label: Specifies an outgoing label, which can be 0, 3, or a value in the range of 16 to 1023.
  • Page 30: Ldp Commands

    LDP commands accept-label Use accept-label to configure a label acceptance policy. Use undo accept-label to remove the label acceptance policy. Syntax accept-label peer peer-lsr-id prefix-list prefix-list-name undo accept-label peer peer-lsr-id Default No label acceptance policy is configured. LDP accepts all label mappings from all peers. Views LDP view, LDP-VPN instance view Predefined user roles...
  • Page 31: Advertise-Label

    [Sysname-ldp] accept-label peer 1.1.1.9 prefix-list prefix-from-RTA Related commands display mpls ldp peer verbose • ip prefix-list (Layer 3—IP Routing Command Reference) • advertise-label Use advertise-label to configure a label advertisement policy. Use undo advertise-label to delete a label advertisement policy. Syntax advertise-label prefix-list prefix-list-name [ peer peer-prefix-list-name ] undo advertise-label prefix-list prefix-list-name...
  • Page 32: Backoff

    Examples # Configure two label advertisement policies. One policy advertises only the label mapping for subnet 10.1.1.0/24 to the peer 3.3.3.9; the other policy advertises only the label mapping for subnet 10.2.1.0/24 to the peer 4.4.4.9. <Sysname> system-view [Sysname] ip prefix-list prefix-to-C permit 10.1.1.0 24 [Sysname] ip prefix-list prefix-to-D permit 10.2.1.0 24 [Sysname] ip prefix-list peer-C permit 3.3.3.9 32 [Sysname] ip prefix-list peer-D permit 4.4.4.9 32...
  • Page 33: Display Mpls Ldp Discovery

    After LDP fails to establish a session with a peer LSR for the first time, LDP does not start another attempt until the initial delay timer expires. If the session setup fails again, LDP waits for two times the initial delay before the next attempt. This process continues until the maximum delay time is reached.
  • Page 34 Examples # Display brief LDP discovery information for the public network. <Sysname> display mpls ldp discovery Type: L - Link Hello, T - Targeted Hello Discovery Source Peer LDP ID Hello Sent/Rcvd (L) GigabitEthernet3/0/2 100.100.100.18:0 83/80 200.100.100.18:0 83/60 (T) 100.100.100.18 100.100.100.18:0 23/20 Table 11 Command output...
  • Page 35: Display Mpls Ldp Fec

    Table 12 Command output Field Description Information about basic discovery that sends Link Hellos on interfaces. Link Hellos In a non-point-to-point network, an interface may discover multiple peers. Interface Interface using basic discovery. Hello Interval Hello interval in milliseconds. Hello Sent/Rcvd Number of Hellos sent or received on the interface.
  • Page 36 network-operator mdc-admin mdc-operator Parameters vpn-instance vpn-instance-name: Specifies an MPLS L3VPN instance by its name, a case-sensitive string of 1 to 31 characters. The command displays FEC-label mappings for the specified VPN. If you do not specify a VPN instance, the command displays FEC-label mappings for the public network.
  • Page 37 Field Description Upstream peer to which the local LSR advertised the FEC-label mapping Upstream Info and current state of the LSP. Peer LDP ID of an upstream peer. Current state of the LSP established with the upstream peer: • Established—Active state. •...
  • Page 38: Display Mpls Ldp Interface

    Field Description Sent Number of label mappings sent and being sent. Received Number of label mappings accepted. display mpls ldp interface Use display mpls ldp interface to display LDP interface information. Syntax display mpls ldp interface [ interface-type interface-number ] Views Any view Predefined user roles...
  • Page 39: Display Mpls Ldp Lsp

    display mpls ldp lsp Use display mpls ldp lsp to display information about LSPs generated by LDP. Syntax display mpls ldp lsp [ vpn-instance vpn-instance-name ] [ destination-address mask-length ] Views Any view Predefined user roles network-admin network-operator mdc-admin mdc-operator Parameters vpn-instance vpn-instance-name: Specifies an MPLS L3VPN instance by its name, a case-sensitive string of 1 to 31 characters.
  • Page 40: Display Mpls Ldp Parameter

    Field Description LSP statistics: • FECs—Total number of FECs. • Ingress LSPs—Number of LSPs that take the local device as the ingress node. Statistics • Transit LSPs—Number of LSPs that take the local device as a transit node. • Egress LSPs—Number of LSPs that take the local device as the egress node.
  • Page 41: Display Mpls Ldp Peer

    Instance ID Instance State : Active LSR ID : 0.0.0.0 Loop Detection : Off Hop Count Limit : 32 Path Vector Limit : 32 Label Retention Mode: Liberal Label Distribution Control Mode: Ordered IGP Sync Delay : 0 sec IGP Sync Delay on Restart Table 17 Command output Field Description...
  • Page 42 Predefined user roles network-admin network-operator mdc-admin mdc-operator Parameters vpn-instance vpn-instance-name: Specifies an MPLS L3VPN instance by its name, a case-sensitive string of 1 to 31 characters. The command displays LDP peer and session information for the specified VPN. If you do not specify a VPN instance, the command displays the LDP peer and session information of the public network.
  • Page 43 # Display detailed information about all LDP peers and LDP sessions for the public network. <Sysname> display mpls ldp peer verbose Peer LDP ID : 100.100.100.20:0 Local LDP ID : 100.100.100.17:0 TCP Connection : 100.100.100.20:47515 -> 100.100.100.17:646 Session State : Operational Session Role : Passive Session Up Time...
  • Page 44 Field Description Keepalive time negotiated, in seconds. • Keepalive Time Local—Locally configured Keepalive holding time, in seconds. • Peer—Keepalive holding time (in seconds) configured on the peer. Keepalive Interval Current Keepalive interval, in seconds. Msgs Sent/Rcvd Total number of LDP messages sent and received. KA Sent/Rcvd Total number of Keepalive messages sent and received.
  • Page 45: Display Mpls Ldp Summary

    Field Description Local session protection duration, in seconds. Duration Infinite indicates that session protection takes effect permanently. Remaining time of the session hold timer, in seconds. This field is displayed only when the session protection state is Holdup time remaining Protecting.
  • Page 46: Graceful-Restart

    Operational : 1 (0 GR) OpenSent OpenRecv Initialized : 0 Non-Existent: 0 Table 20 Command output Field Description Memory state: • Normal—The memory is normal. • Memory State Minor—The memory has a minor alarm. • Severe—The memory has a severe alarm. •...
  • Page 47: Graceful-Restart Timer

    Views LDP view Predefined user roles network-admin mdc-admin Usage guidelines GR enables an LSR to retain MPLS forwarding entries during an LDP restart, ensuring continuous MPLS forwarding. The graceful-restart command does not take effect for LDP sessions established before the command is executed.
  • Page 48: Label-Distribution

    reconnect timeout: Specifies the Reconnect time in the range of 60 to 300 seconds. This time specifies the period the local LSR expects the peer to wait for LDP session re-establishment after the peer detects an LDP session failure. The local LSR sends the Reconnect time to the peer. Usage guidelines The MPLS Forwarding State Holding time must be greater than the Reconnect time.
  • Page 49: Loop-Detect

    undo label-distribution Default The label distribution control mode is ordered. Views LDP view, LDP-VPN instance view Predefined user roles network-admin mdc-admin Parameters independent: Specifies Independent label distribution mode. In this mode, an LSR can distribute label mappings to the upstream LSR at any time. ordered: Specifies Ordered label distribution mode.
  • Page 50: Lsp-Trigger

    Predefined user roles network-admin mdc-admin Usage guidelines This command enables LDP to detect and terminate LSP loops. LDP loop detection uses one of the following methods: Hop count. For more information, see "maxhops." • Path vector. For more information, see "pv-limit." •...
  • Page 51: Lsr-Id

    Usage guidelines The default LSP generation policy depends on the label distribution control mode. In Ordered mode, LDP can only use the Loopback interface address routes with a 32-bit mask • and the routes with a 32-bit mask that match the FECs of label mappings received from downstream LSRs to generate LSPs.
  • Page 52: Maxhops

    LDP uses the same LSR ID for all sessions in the same VPN instance. After you configure a new LSR ID for a VPN instance, LDP does not use the new LSR ID unless you use the reset mpls ldp command to reestablish all LDP sessions in the VPN instance.
  • Page 53: Md5-Authentication

    [Sysname] mpls ldp [Sysname-ldp] maxhops 25 Related commands display mpls ldp parameter • loop-detect • pv-limit • md5-authentication Use md5-authentication to enable LDP MD5 authentication. Use undo md5- authentication to restore the default. Syntax md5-authentication peer-lsr-id { cipher | plain } password undo md5-authentication peer-lsr-id Default LDP MD5 authentication is disabled.
  • Page 54: Mpls Ldp

    [Sysname-ldp] md5-authentication 3.3.3.3 plain pass Related commands display mpls ldp peer mpls ldp Use mpls ldp to enable LDP globally and enter LDP view. Use undo mpls ldp to disable LDP globally for an LSR and delete all LDP-VPN instances. Syntax mpls ldp undo mpls ldp...
  • Page 55: Mpls Ldp Timer

    Syntax mpls ldp enable undo mpls ldp enable Default LDP is disabled on an interface. Views Interface view Predefined user roles network-admin mdc-admin Usage guidelines Before you enable LDP for an interface, use the mpls ldp command in system view to enable LDP globally.
  • Page 56 undo mpls ldp timer { hello-hold | hello-interval | keepalive-hold | keepalive-interval } Default The Link Hello hold time is 15 seconds, the Link Hello interval is 5 seconds, the Targeted Hello hold time is 45 seconds, the Targeted Hello interval is 15 seconds, the Keepalive hold time is 45 seconds, and the Keepalive interval is 15 seconds.
  • Page 57: Mpls Ldp Transport-Address

    Keepalive messages at the local Keepalive interval. Otherwise, the LSR sends Keepalive messages at an interval 1/3 of the negotiated Keepalive hold time. Examples # Set the Targeted Hello hold time to 1000 seconds, Targeted Hello interval to 50 seconds, Keepalive hold time to 1000 seconds, and Keepalive interval to 50 seconds for peer 3.3.3.3.
  • Page 58: Pv-Limit

    Predefined user roles network-admin mdc-admin Parameters ip-address: Specifies the LDP transport address. interface: Uses the IP address of the current interface as the LDP transport address. Usage guidelines Before two LSRs establish an LDP session, they must establish a TCP connection by using the LDP transport address.
  • Page 59: Reset Mpls Ldp

    Views LDP view, LDP-VPN instance view Predefined user roles network-admin mdc-admin Parameters pv-number: Specifies the path vector limit in the range of 1 to 32. Usage guidelines LDP adds LSR ID information in a label request or label mapping message. Each LSR checks whether its LSR ID is contained in the message.
  • Page 60: Session Protection

    Usage guidelines Resetting an LDP session deletes and re-establishes the session and all LSPs based on the session. To apply new parameters except the MD5 authentication key to an LDP session, you must use this command to reset the LDP session. Examples # Reset all LDP sessions in the public network.
  • Page 61: Targeted-Peer

    When you enable the session protection function, you can specify the session protection duration. If the Link Hello adjacency does not recover within the duration, LDP deletes the Targeted Hello adjacency and the LDP session. If you do not specify the session protection duration, the two peers always maintain the LDP session over the Targeted Hello adjacency.
  • Page 62: Vpn-Instance

    [Sysname] mpls ldp [Sysname-ldp] targeted-peer 3.3.3.3 [Sysname-ldp-peer-3.3.3.3] Related commands display mpls ldp discovery • display mpls ldp peer • vpn-instance Use vpn-instance to enable LDP for a VPN instance and enter LDP-VPN instance view. Use undo vpn-instance to delete the LDP-VPN instance. Syntax vpn-instance vpn-instance-name undo vpn-instance vpn-instance-name...
  • Page 63 [Sysname-ldp-vpn1] Related commands ip vpn-instance • mpls ldp •...
  • Page 64: Mpls L3Vpn Commands

    MPLS L3VPN commands description (VPN instance view) Use description to configure a description for a VPN instance. Use undo description to delete the description. Syntax description text undo description Default No description is configured for a VPN instance. Views VPN instance view Default command level 2: System level Parameters...
  • Page 65 Parameters vpn-instance vpn-instance-name: Specifies a VPN instance by its name, a case-sensitive string of 1 to 31 characters. If no VPN instance is specified, this command displays BGP VPNv4 peer group information for the public network. group-name: Specifies a peer group by its name, a case-sensitive string of 1 to 47 characters. If no peer group is specified, this command displays all peer groups.
  • Page 66: Display Bgp Peer Vpnv4

    Field Description Warning threshold. When the percentage of received route prefixes to the maximum number of Threshold routes reaches this threshold, the device generates a prompt. Configured hold time Configured hold time, in seconds. Keepalive time Keepalive interval, in seconds. Minimum time between advertisements Minimum time between advertisements Peer Preferred Value...
  • Page 67 ip-address: Specifies a BGP VPNv4 peer. log-info: Displays log information. verbose: Displays detailed information. Usage guidelines With no parameters specified, this command displays brief information about all BGP VPNv4 peers. Examples # Display brief information about BGP VPNv4 peers for the public network. <Sysname>...
  • Page 68 Configured: Active Hold Time: 180 sec Keepalive Time: 60 sec Received : Active Hold Time: 180 sec Negotiated: Active Hold Time: 180 sec Keepalive Time: 60 sec Peer optional capabilities: Peer support BGP multi-protocol extended Peer support BGP route refresh capability Peer support BGP route AS4 capability Address family IPv4 Unicast: received Address family VPNv4: advertised and received...
  • Page 69: Display Bgp Routing-Table Ipv4 Unicast Inlabel

    Field Description Peer support bgp multi-protocol extended The peer supports multiprotocol extension. Peer support bgp route refresh capability The peer supports route refresh capability. Peer support bgp route AS4 capability The peer supports 4-byte AS number capability. Address family IPv4 Unicast IPv4 unicast family capability.
  • Page 70: Display Bgp Routing-Table Ipv4 Unicast Outlabel

    mdc-admin mdc-operator Parameters vpn-instance vpn-instance-name: Specifies a VPN instance by its name, a case-sensitive string of 1 to 31 characters. If no VPN instance is specified, this command displays incoming labels for BGP IPv4 unicast routes on the public network. Usage guidelines The unicast keyword does not affect the command output.
  • Page 71: Display Bgp Routing-Table Vpnv4

    mdc-admin mdc-operator Parameters vpn-instance vpn-instance-name: Specifies a VPN instance by its name, a case-sensitive string of 1 to 31 characters. If no VPN instance is specified, this command displays outgoing labels for BGP IPv4 unicast routes on the public network. Usage guidelines The unicast keyword does not affect the command output.
  • Page 72 mdc-admin mdc-operator Parameters route-distinguisher route-distinguisher: Specifies an RD, a string of 3 to 21 characters in one of these formats: 16-bit AS number:32-bit user-defined number. For example, 101:3. • 32-bit IP address:16-bit user-defined number. For example, 192.168.122.15:1. • 32-bit AS number:16-bit user-defined number, where the minimum value of the AS number is •...
  • Page 73 Route distinguisher: 200:1 Total number of routes: 2 Network NextHop LocPrf PrefVal Path/Ogn >i 10.3.1.0/24 3.3.3.9 >i 192.168.1.0 3.3.3.9 65420? # Display brief information about BGP VPNv4 routes with RD 100:1.. <Sysname> display bgp routing-table vpnv4 route-distinguisher 100:1 BGP local router ID is 1.1.1.9 Status codes: * - valid, >...
  • Page 74 Field Description Total number of routes from all PEs Total number of VPNv4 routes from all PEs. Network Network address. NextHop Address of the next hop. MED value. LocPrf Local preference value. PrefVal Preferred value. Path/Ogn AS_PATH and Origin attributes. # Display detailed information about the BGP VPNv4 route destined for 10.3.1.0/24.
  • Page 75 # Display detailed information about the BGP VPNv4 route destined for 10.3.1.0/24 and with RD 100:1. <Sysname> display bgp routing-table vpnv4 route-distinguisher 100:1 10.3.1.0 24 BGP local router ID: 1.1.1.9 Local AS number: 100 Route distinguisher: 100:1(vpn1) Total number of routes: 1 Paths: 1 available, 1 best BGP routing table information of 10.3.1.0/24:...
  • Page 76: Display Bgp Routing-Table Vpnv4 Advertise-Info

    display bgp routing-table vpnv4 advertise-info Use display bgp routing-table vpnv4 advertise-info to display advertisement information for BGP VPNv4 routes. Syntax display bgp routing-table vpnv4 [ route-distinguisher route-distinguisher ] network-address [ mask | mask-length ] advertise-info Views Any view Predefined user roles network-admin network-operator mdc-admin...
  • Page 77: Display Bgp Routing-Table Vpnv4 As-Path-Acl

    BGP routing table information of 10.1.1.0/24: Advertised to VPN peers (1 in total): 3.3.3.9 Inlabel : 1279 display bgp routing-table vpnv4 as-path-acl Use display bgp routing-table vpnv4 as-path-acl to display BGP IPv4 unicast routes permitted by an AS path ACL. Syntax display bgp routing-table vpnv4 [ route-distinguisher route-distinguisher ] as-path-acl as-path-acl-number...
  • Page 78: Display Bgp Routing-Table Vpnv4 Community-List

    > 10.1.1.0/24 10.1.1.2 32768 10.1.1.1 65410? > 10.1.1.2/32 127.0.0.1 32768 >i 10.3.1.0/24 3.3.3.9 >e 192.168.1.0 10.1.1.1 65410? 3.3.3.9 65420? Route distinguisher: 200:1 Total number of routes: 2 Network NextHop LocPrf PrefVal Path/Ogn >i 10.3.1.0/24 3.3.3.9 >i 192.168.1.0 3.3.3.9 65420? For command output, see Table Related commands ip as-path (Layer 3—IP Routing Configuration Guide)
  • Page 79: Display Bgp Routing-Table Vpnv4 Inlabel

    comm-list-name: Specifies a community list by its name, a case-sensitive string of 1 to 63 characters. whole-match: Displays routes exactly matching the specified community list. Without this keyword, the command displays routes whose COMMUNITY attributes comprise the specified community list. adv-community-list-number: Specifies an advanced community list by its number in the range of 100 to 199.
  • Page 80: Display Bgp Routing-Table Vpnv4 Outlabel

    Views Any view Predefined user roles network-admin network-operator mdc-admin mdc-operator Examples # Display incoming labels for all BGP VPNv4 routes. <Sysname> display bgp routing-table vpnv4 inlabel Total number of routes: 2 BGP local router ID is 1.1.1.9 Status codes: * - valid, > - best, d - dampened, h - history, s - suppressed, S - stale, i - internal, e - external Origin: i - IGP, e - EGP, ? - incomplete Route distinguisher: 100:1...
  • Page 81: Display Bgp Routing-Table Vpnv4 Peer

    mdc-admin mdc-operator Examples # Display outgoing labels for all BGP VPNv4 routes. <Sysname> display bgp routing-table vpnv4 outlabel BGP local router ID is 1.1.1.9 Status codes: * - valid, > - best, d - dampened, h - history, s - suppressed, S - stale, i - internal, e - external Origin: i - IGP, e - EGP, ? - incomplete Total number of routes from all PEs: 2 Route distinguisher: 100:1(vpn1)
  • Page 82 Views Any view Predefined user roles network-admin network-operator mdc-admin mdc-operator Parameters vpn-instance vpn-instance-name: Specifies an MPLS L3VPN instance by its name, a case-sensitive string of 1 to 31 characters. If no VPN instance is specified, the command displays BGP VPNv4 routing information advertised to or received from the specified BGP peer on the public network.
  • Page 83: Display Bgp Routing-Table Vpnv4 Statistics

    > 10.1.1.0/24 10.1.1.2 >e 192.168.1.0 10.1.1.1 65410? # Display all BGP VPNv4 routing information received from BGP peer 3.3.3.9 on the public network. <Sysname> display bgp routing-table vpnv4 peer 3.3.3.9 received-routes Total number of routes: 2 BGP local router ID is 1.1.1.9 Status codes: * - valid, >...
  • Page 84: Display Ip Vpn-Instance

    Predefined user roles network-admin network-operator mdc-admin mdc-operator Examples # Display BGP VPNv4 route statistics for the public network. <Sysname> display bgp routing-table vpnv4 statistics Total number of routes from all PEs: 2 Route distinguisher: 100:1(vpn1) Total number of routes: 6 Route distinguisher: 200:1 Total number of routes: 2 display ip vpn-instance...
  • Page 85: Domain-Id

    Table 31 Command output Field Description VPN-Instance Name Name of the VPN instance. RD of the VPN instance. Create Time Time when the VPN instance was created. # Display detailed information about VPN instance vpn1. <Sysname> display ip vpn-instance instance-name vpn1 VPN-Instance Name and ID : vpn1, 2 Route Distinguisher : 100:1 Description : vpn1...
  • Page 86: Export Route-Policy

    Predefined user roles network-admin mdc-admin Parameters domain-id: OSPF domain ID, in one of these formats: Integer, in the range of 0 to 4294967295. For example, 1. • Dotted decimal notation. For example, 0.0.0.1. • Dotted decimal notation:16-bit user-defined number in the range of 0 to 65535. For example, •...
  • Page 87: Ext-Community-Type

    Parameters route-policy: Specifies a routing policy by its name, a case-sensitive string of 1 to 63 characters. Usage guidelines You can specify an export routing policy to filter advertised routes or modify their route attributes for the VPN instance. An export routing policy specified in VPN instance view applies to both IPv4 VPN and IPv6 VPN. An export routing policy specified in IPv4 VPN view or IPv6 VPN view applies to only IPv4 VPN or IPv6 VPN.
  • Page 88: Import Route-Policy

    Predefined user roles network-admin mdc-admin Parameters domain-id type-code1: Specifies the type code for domain ID. Valid values are 0x0005, 0x0105, 0x0205, and 0x8005. router-id type-code2: Specifies the type code for router ID. Valid values are 0x0107 and 0x8001. router-type type-code3: Specifies the type code for route type. Valid values are 0x0306 and 0x8000. Examples # Configure the type codes of domain ID, router ID, and route type as 0x8005, 0x8001, and 0x8000 for OSPF process 100.
  • Page 89: Ip Binding Vpn-Instance

    IPv4/IPv6 VPN prefers the import routing policy specified in IPv4/IPv6 VPN view over the one specified in VPN instance view. Examples # Apply import routing policy poly-1 for VPN instance vpn1. <Sysname> system-view [Sysname] ip vpn-instance vpn1 [Sysname-vpn-instance-vpn1] import route-policy poly-1 # Apply import routing policy poly-2 for IPv4 VPN vpn2.
  • Page 90: Ip Vpn-Instance (System View)

    This command or its undo form clears the IP address and routing protocol configuration on the interface. After executing this command or its undo form, use the display this command to view current configuration and re-configure the IP address and routing protocol on the interface. The specified VPN instance must have been created by the ip vpn-instance command in system view.
  • Page 91: Ipv4-Family (Vpn Instance View)

    Related commands route-distinguisher ipv4-family (VPN instance view) Use ipv4-family in VPN instance view to enter IPv4 VPN view. Use undo ipv4-family to remove all configurations from IPv4 VPN view. Syntax ipv4-family undo ipv4-family Views VPN instance view Predefined user roles network-admin mdc-admin Usage guidelines...
  • Page 92: Nesting-Vpn

    mdc-admin Usage guidelines A VPNv4 address comprises an RD and an IPv4 prefix. VPNv4 routes comprise VPNv4 addresses. For a PE to exchange BGP VPNv4 routes with a BGP peer, you must enable that peer by executing the peer enable command in BGP VPNv4 address family view or BGP-VPN VPNv4 address family view.
  • Page 93: Peer Next-Hop-Invariable

    Usage guidelines To exchange VPNv4 routes with a peer in nested VPN, you must enable nested VPN and then execute the peer enable command to enable that peer in BGP VPNv4 view. Examples # Enable nested VPN. <Sysname> system-view [Sysname] bgp 10 [Sysname-bgp] ipv4-family vpnv4 [Sysname-bgp-vpnv4] nesting-vpn peer next-hop-invariable...
  • Page 94: Peer Upe

    Related commands peer next-hop-local (Layer 3—IP Routing Command Reference) peer upe Use peer upe to configure a BGP peer or peer group as a HoVPN UPE in BGP VPNv4 address family view. Use undo peer upe to remove the configuration. Syntax peer { group-name | ip-address } upe undo peer { group-name | ip-address } upe...
  • Page 95: Policy Vpn-Target

    Default No routes are advertised to any peer. Views BGP VPNv4 address family view Predefined user roles network-admin mdc-admin Parameters group-name: Specifies a peer group by its name, a case-sensitive string of 1 to 47 characters. The specific peer group must have created. ip-address: Specifies a peer by its IP address.
  • Page 96: Refresh Bgp Vpnv4

    Views BGP VPNv4 address family view Predefined user roles network-admin mdc-admin Usage guidelines In an inter-AS option B scenario, an ASBR-PE must save all incoming VPNv4 routes and advertises those routes to the peer ASBR-PE. For this purpose, you must execute the undo policy vpn-target command on the ASBR-PE to disable route target filtering.
  • Page 97: Reserve-Vlan (Vpn Instance View)

    Usage guidelines Soft reset can update BGP VPNv4 routing information without breaking down BGP neighbor relationships. You can apply a new route selection policy by executing this command. If you execute this command with the export keyword, BGP filters advertised routing information based on the new policy and sends the matching routes to the BGP peer.
  • Page 98: Reset Bgp Vpnv4

    A common VLAN, including a default VLAN, a VLAN created by vlan, and a dynamically learned VLAN, cannot be specified as a reserved VLAN. After you specify a VLAN as the reserved VLAN of a VPN instance, the VLAN cannot be created by the vlan command, or dynamically learned. Reserved VLANs specified for VPN instances must be different.
  • Page 99: Route-Distinguisher (Vpn Instance View)

    internal: Resets IBGP VPNv4 connections. vpn-instance vpn-instance-name: Resets BGP VPNv4 connections for the VPN instance identified by its name, a case-sensitive string of 1 to 31 characters. If no VPN instance is specified, the command resets BGP VPNv4 connections for the public network. Usage guidelines This command tears down specified BGP neighbor relationships to update BGP VPNv4 routes with the new policy.
  • Page 100: Route-Tag

    [Sysname-vpn-instance-vpn1] route-distinguisher 22:1 route-tag Use route-tag to configure an external route tag for redistributed VPN routes. Use undo route-tag to restore the default. Syntax route-tag tag-value undo route-tag Default If the AS number is not greater than 65535, the first two octets of the default external route tag are 0xD000 and the last two octets is the local AS number.
  • Page 101: Routing-Table Limit

    [Sysname] ospf 100 [Sysname-ospf-100] route-tag 100 Related commands import-route routing-table limit Use routing-table limit to limit the maximum number of routes in a VPN instance. Use undo routing-table limit to restore the default. Syntax routing-table limit number { warn-threshold | simply-alert } undo routing-table limit Default The maximum number of routes depends on the system operating mode.
  • Page 102: Rr-Filter

    # Specify that the IPv4 VPN vpn2 supports up to 1000 routes, and when routes exceed the upper limit, can receive new routes but generates a system log message. <Sysname> system-view [Sysname] ip vpn-instance vpn2 [Sysname-vpn-instance-vpn2] route-distinguisher 100:2 [Sysname-vpn-instance-vpn2] ipv4-family [Sysname-vpn-ipv4-vpn2] routing-table limit 1000 simply-alert # Specify that the IPv6 VPN vpn3 supports up to 1000 routes, and when routes exceed the upper limit, can receive new routes but generates a system log message.
  • Page 103: Tnl-Policy (Vpn Instance View/Ipv4 Vpn View/Ipv6 Vpn View)

    tnl-policy (VPN instance view/IPv4 VPN view/IPv6 VPN view) Use tnl-policy to associate a VPN instance with a tunnel policy. Use undo tnl-policy to remove the association. Syntax tnl-policy tunnel-policy-name undo tnl-policy Default No tunnel policy is associated with a VPN instance. Views VPN instance view, IPv4 VPN view Predefined user roles...
  • Page 104: Vpn Popgo

    [Sysname-vpn-ipv4-vpn2] tnl-policy po1 [Sysname-vpn-ipv4-vpn2] quit [Sysname-vpn-instance-vpn2] quit # Associate the IPv6 VPN vpn3 with tunnel policy po1. [Sysname] ip vpn-instance vpn3 [Sysname-vpn-instance-vpn3] route-distinguisher 11:33 [Sysname-vpn-instance-vpn3] ipv6-family [Sysname-vpn-ipv6-vpn3] tnl-policy po1 Related commands tunnel-policy (MPLS Command Reference) vpn popgo Use vpn popgo to specify the VPN label processing mode as POPGO forwarding on an egress PE, which will pop the label for each packet and forward the packet out of the interface corresponding to the label.
  • Page 105: Vpn-Instance-Capability Simple

    <Sysname> system-view [Sysname] bgp 100 [Sysname-bgp] undo vpn popgo vpn-instance-capability simple Use vpn-instance-capability simple to disable OSPF routing loop detection for a VPN instance. Use undo vpn-instance-capability to restore the default. Syntax vpn-instance-capability simple undo vpn-instance-capability Default OSPF routing loop detection is enabled for a VPN instance. Views OSPF view Predefined user roles...
  • Page 106 Predefined user roles network-admin mdc-admin Parameters vpn-target&<1-8>: Specifies route targets. &<1-8> means that you can specify up to eight route targets. A route target is a string of 3 to 21 characters in one of these formats: 16-bit AS number:32-bit user-defined number. For example, 101:3. •...
  • Page 107 [Sysname-vpn-ipv4-vpn2] vpn-target 4:4 import-extcommunity [Sysname-vpn-ipv4-vpn2] vpn-target 5:5 both # Configure route targets for the IPv6 VPN vpn3. <Sysname> system-view [Sysname] ip vpn-instance vpn3 [Sysname-vpn-instance-vpn3] ipv6-family [Sysname-vpn-ipv6-vpn3] vpn-target 3:3 export-extcommunity [Sysname-vpn-ipv6-vpn3] vpn-target 4:4 import-extcommunity [Sysname-vpn-ipv6-vpn3] vpn-target 5:5 both...
  • Page 108: Ipv6 Mpls L3Vpn Commands

    IPv6 MPLS L3VPN commands This chapter describes only IPv6 MPLS L3VPN-specific commands. For information about the commands available for both IPv4 MPLS L3VPN and IPv6 MPLS L3VPN, see "MPLS L3VPN commands." display bgp group vpnv6 Use display bgp group vpnv6 to display information about a specific BGP VPNv6 peer group or all BGP VPNv6 peer groups.
  • Page 109: Display Bgp Peer Vpnv6

    Routing policy configured: No routing policy is configured Members: Peer MsgRcvd MsgSent OutQ PrefRcv Up/Down State 2.2.2.2 0 00:00:22 Idle Table 32 Command output Field Description BGP peer-group Name of the BGP peer group. Remote AS AS number of the peer group. Type of the BGP peer group: •...
  • Page 110 Views Any view Predefined user roles network-admin network-operator mdc-admin mdc-operator Parameters group-name: Displays peers in the peer group specified by its name, a case-sensitive string of 1 to 47 characters. ip-address: Specifies a BGP VPNv6 peer. If no peer is specified, the command displays all BGP VPNv6 peers.
  • Page 111 Field Description PrefRcv Number of received prefixes. Up/Down Duration of the BGP session in the current state. State State of the peer. # Display detailed information about BGP VPNv6 peer 10.1.1.2. <Sysname> display bgp peer vpnv6 10.1.1.2 verbose Peer: 10.1.1.2 Local: 192.168.1.135 Type: EBGP link BGP version 4, remote router ID 192.168.1.136...
  • Page 112 Field Description BGP version BGP version of the peer. remote router ID Router ID of the peer. BGP current state Current state of the BGP session. Up for Duration since the peer is established. BGP current event Current event of the BGP session. State that the BGP session was in before BGP last state transitioning to the current state.
  • Page 113: Display Bgp Routing-Table Vpnv6

    Field Description ORF capability negotiated by the local and remote peers. The value can be: • send—The local peer can send Route-refresh messages with ORF information and the remote peer can receive Route-refresh messages with ORF information. Negotiated • receive—The local peer can receive Route-refresh messages with ORF information and the remote peer can send Route-refresh messages with ORF information.
  • Page 114 mdc-admin mdc-operator Parameters route-distinguisher route-distinguisher: Specifies an RD, a string of 3 to 21 characters in one of these formats: 16-bit AS number:32-bit user-defined number. For example, 101:3. • 32-bit IP address:16-bit user-defined number. For example, 192.168.122.15:1. • 32-bit AS number:16-bit user-defined number, where the minimum value of the AS number is •...
  • Page 115 PrefVal : 0 OutLabel : 1279 Path/Ogn: ? Route distinguisher: 200:1 Total number of routes: 1 >i Network : 2001:3:: PrefixLen : 96 NextHop : ::FFFF:3.3.3.9 LocPrf : 100 PrefVal : 0 OutLabel : 1279 Path/Ogn: ? Table 35 Command output Field Description BGP Local router ID...
  • Page 116: Display Bgp Routing-Table Vpnv6 Advertise-Info

    display bgp routing-table vpnv6 advertise-info Use display bgp routing-table vpnv6 advertise-info to display advertisement information for BGP VPNv6 routes. Syntax display bgp routing-table vpnv6 [ route-distinguisher route-distinguisher ] network-address [ mask | mask-length ] advertise-info Views Any view Predefined user roles network-admin network-operator mdc-admin...
  • Page 117: Display Bgp Routing-Table Vpnv6 As-Path-Acl

    display bgp routing-table vpnv6 as-path-acl Use display bgp routing-table vpnv6 as-path-acl to display BGP VPNv6 routes permitted by an AS path ACL. Syntax display bgp routing-table vpnv6 [ route-distinguisher route-distinguisher ] as-path-acl as-path-acl-number Views Any view Predefined user roles network-admin network-operator mdc-admin mdc-operator...
  • Page 118: Display Bgp Routing-Table Vpnv6 Community-List

    NextHop : 2001:1::1 LocPrf PrefVal : 0 OutLabel : NULL Path/Ogn: 65410? > Network : 2001:1::2 PrefixLen : 128 NextHop : ::1 LocPrf PrefVal : 32768 OutLabel : NULL Path/Ogn: ? >i Network : 2001:3:: PrefixLen : 96 NextHop : ::FFFF:3.3.3.9 LocPrf : 100 PrefVal : 0...
  • Page 119 Parameters route-distinguisher route-distinguisher: Specifies an RD, a string of 3 to 21 characters in one of these formats: 16-bit AS number:32-bit user-defined number. For example, 101:3. • 32-bit IP address:16-bit user-defined number. For example, 192.168.122.15:1. • 32-bit AS number:16-bit user-defined number, where the minimum value of the AS number is •...
  • Page 120: Display Bgp Routing-Table Vpnv6 Inlabel

    Path/Ogn: ? >i Network : 2001:3:: PrefixLen : 96 NextHop : ::FFFF:3.3.3.9 LocPrf : 100 PrefVal : 0 OutLabel : 1279 Path/Ogn: ? Route distinguisher: 200:1 Total number of routes: 1 >i Network : 2001:3:: PrefixLen : 96 NextHop : ::FFFF:3.3.3.9 LocPrf : 100 PrefVal : 0...
  • Page 121: Display Bgp Routing-Table Vpnv6 Outlabel

    > Network : 2001:1:: PrefixLen : 96 NextHop : :: OutLabel : NULL InLabel : 1279 Table 36 Command output Field Description BGP Local router ID Router ID of the local BGP router. Status codes Route status codes. See Table Origin Route origin.
  • Page 122: Display Bgp Routing-Table Vpnv6 Peer

    >i Network : 2001:3:: PrefixLen : 96 NextHop : ::FFFF:3.3.3.9 OutLabel : 1279 Table 37 Command output Field Description BGP Local router ID Router ID of the local BGP router. Status Route status codes. See Table Origin Route origin codes. See Table OutLabel Outgoing label.
  • Page 123: Display Bgp Routing-Table Vpnv6 Statistics

    Origin: i - IGP, e - EGP, ? - incomplete Route distinguisher: 100:1 Total number of routes: 1 > Network : 2001:1:: PrefixLen : 96 NextHop : :: LocPrf OutLabel : NULL Path/Ogn: ? # Display all BGP VPNv6 routing information received from BGP peer 3.3.3.9 on the public network. <Sysname>...
  • Page 124: Ipv6-Family (Vpn Instance View)

    Syntax display bgp routing-table vpnv6 statistics Views Any view Predefined user roles network-admin network-operator mdc-admin mdc-operator Examples # Display BGP VPNv6 route statistics for the public network. <Sysname> display bgp routing-table vpnv6 statistics Total number of routes from all PEs: 1 Route distinguisher: 100:1(vpn1) Total number of routes: 4 Route distinguisher: 200:1...
  • Page 125: Ipv6-Family Vpnv6

    Related commands ipv4-family (VPN instance view) ipv6-family vpnv6 Use ipv6-family vpnv6 to enter BGP VPNv6 address family view. Use undo ipv6-family vpnv6 to remove all settings from BGP VPNv6 address family view. Syntax ipv6-family vpnv6 undo ipv6-family vpnv6 Views BGP view Predefined user roles network-admin mdc-admin...
  • Page 126: Refresh Bgp Vpnv6

    Views BGP VPNv6 address family view Predefined user roles network-admin mdc-admin Usage guidelines In an inter-AS option B scenario, an ASBR-PE must save all incoming VPNv4 routes and advertises those routes to the peer ASBR-PE. For this purpose, you must execute the undo policy vpn-target command on the ASBR-PE to disable route target filtering.
  • Page 127: Reset Bgp Vpnv6

    policy and sends the matching routes to the BGP peer. If you execute this command with the import keyword, BGP advertises a route-refresh message to the peer so the peer re-advertises its routing information. After receiving the routing information from the peer, BGP filters the routing information by using the new policy.
  • Page 128 Use undo rr-filter to restore the default. Syntax rr-filter extended-community-number undo rr-filter Default An RR does not filter reflected routes. Views BGP VPNv6 address family view Predefined user roles network-admin mdc-admin Parameters extended-community-number: Specifies an extended community list by its number, in the range of 1 to 199.
  • Page 129: Mpls L2Vpn Commands

    MPLS L2VPN commands The switch does not support MPLS L2VPN when the system is operating in normal mode. For more information about system operating modes, see Fundamentals Configuration Guide. ac interface Use ac interface to bind an AC to a cross-connect. Use undo ac interface to remove the binding.
  • Page 130: Connection

    Ethernet access mode—If Ethernet frames from the AC have a VLAN tag in the header, the PE • considers it as a U-tag and ignores it. Ethernet frames sent to the AC do not carry the P-tag. The service instance specified in this command must have match criteria configured by encapsulation.
  • Page 131: Control-Word Enable

    Usage guidelines A cross-connect is a point-to-point connection. You can execute ac interface and peer to connect an AC to a PW, so the PE can forward packets between the AC and the PW. Examples # Create cross-connect ac2pw for cross-connect group vpn1 and enter cross-connect view. <Sysname>...
  • Page 132: Description

    description Use description to configure a description for a cross-connect group. Use undo description to remove the description of a cross-connect group. Syntax description text undo description Default No description is configured for a cross-connect group. Views Cross-connect group view Predefined user roles network-admin mdc-admin...
  • Page 133 Parameters peer ip-address: Displays LDP PW label information advertised by the specified peer PE. The ip-address argument specifies the LSR ID of the peer PE. If no peer PE is specified, the command displays LDP PW label information advertised by all peer PEs. pw-id pw-id: Displays LDP PW label information for the PW specified by its PW ID in the range of 1 to 4294967295.
  • Page 134: Display L2Vpn Forwarding

    Field Description PW state communicate: • PW Status Notification method—Uses Notifications to communicate PW state. Communication • Label withdraw method—Assigns a PW label to the PW when the AC is up and withdraws the PW label when the AC goes down. VCCV CV type: •...
  • Page 135 chassis chassis-number slot slot-number: Displays cross-connect forwarding information for a card on an IRF member device. The chassis-number argument specifies the ID of the IRF member device and the slot-number argument specifies the slot number of the card. (In IRF mode.) verbose: Displays detailed information.
  • Page 136 Field Description AC access mode: • Access Mode VLAN • Ethernet Match criterion of the service instance. This field is displayed only when the AC type is Encapsulation Layer 2 interface and service instance. # Display brief PW forwarding information for all cross-connect groups. <Sysname>...
  • Page 137: Display L2Vpn Interface

    Table 44 Command output Field Description PW state: Up, Down, or Blocked. PW State Blocked indicates that the PW is the backup PW for redundancy. PW attribute: • PW Attributes Main—The PW is the primary PW. • Backup—The PW is the backup PW. Tunnel Group ID ID of the tunnel group for the PW.
  • Page 138: Display L2Vpn Pw

    Total number of interfaces: 2, 2 up, 0 down Interface Owner Link ID State Type Vlan10 vpws1 VPWS Vlan11 vpws2 VPWS Table 45 Command output Field Description Owner Cross-connect group name. Link ID Link ID of the AC corresponding to the interface. Type L2VPN type: VPLS or VPWS.
  • Page 139 Total number of PWs: 2, 2 up, 0 blocked, 0 down Xconnect-group Name: vpn1 Peer PW ID In/Out Label Proto Flag Link ID State 192.1.1.1 1000 65663/65662 192.3.3.3 1000 65661/65660 Table 46 Command output Field Description PW flag: Flag • M—Primary PW.
  • Page 140: Display L2Vpn Pw-Class

    Field Description Wait time to switch traffic from the backup PW to the primary PW when the primary PW recovers, in seconds. If the switchover is disabled, this field displays Infinite. Wait to Restore Time This field is available when both primary and backup PW exist, and is displayed only for the primary PW.
  • Page 141: Display L2Vpn Service-Instance

    Related commands pw-class display l2vpn service-instance Use display l2vpn service-instance to display service instance information. Syntax display l2vpn service-instance [ interface interface-type interface-number [ service-instance instance-id ] ] [ verbose ] Views Any view Predefined user roles network-admin network-operator mdc-admin mdc-operator Parameters interface interface-type interface-number: Displays service instance information for the specified...
  • Page 142 Field Description Name of the cross-connect group bound to the service instance. If no Owner cross-connect group is bound, this field displays nothing. Type L2VPN type: VPLS or VPWS. # Display detailed information about all service instances on GigabitEthernet 3/0/3. <Sysname>...
  • Page 143: Display L2Vpn Xconnect-Group

    display l2vpn xconnect-group Use display l2vpn xconnect-group to display cross-connect group information. Syntax display l2vpn xconnect-group [ name group-name ] [ verbose ] Views Any view Predefined user roles network-admin network-operator mdc-admin mdc-operator Parameters name group-name: Displays information about the cross-connect group specified by its name, a case-sensitive sting of 1 to 31 characters.
  • Page 144: Encapsulation

    Interworking IPv4: Enabled LDP PWs: Peer PW ID Link ID State 192.3.3.3 ACs: Link ID State Vlan10 Table 51 Command output Field Description Xconnect-group Cross-connect group name. Description for the cross-connect group. If no description is configured, this Description field is not displayed. Connection Cross-connect name.
  • Page 145: L2Vpn Enable

    Parameters s-vid vlan-id: Matches packets with a specified outer VLAN ID. The value range for the vlan-id argument is 1 to 4094. only-tagged: Matches only tagged packets. If this keyword is not specified when the matching VLAN is the default VLAN, packets with the default VLAN ID or without any VLAN ID are all matched.
  • Page 146: Mtu

    Predefined user roles network-admin mdc-admin Usage guidelines You must enable L2VPN before configuring other L2VPN settings. Examples # Enable L2VPN. <Sysname> system-view [Sysname] l2vpn enable Use mtu to configure an MTU for a cross-connect. Use undo mtu to restore the default. Syntax mtu mtu undo mtu...
  • Page 147: Peer

    peer Use peer to configure a PW for a cross-connect and enter PW view. If the specified PW has been created, the command places you to PW view. Use undo peer to delete a PW. Syntax peer ip-address pw-id pw-id [ in-label label-value out-label label-value ] [ pw-class class-name | tunnel-policy tunnel-policy-name ] * undo peer ip-address pw-id pw-id Default...
  • Page 148: Pw-Class

    [Sysname-xcg-vpn1-pw2pw] peer 4.4.4.4 pw-id 200 [Sysname-xcg-vpn1-pw2pw-4.4.4.4-200] Related commands display l2vpn ldp • display l2vpn pw • pw-class • tunnel-policy (Tunnel policy commands) • pw-class Use pw-class to create a PW template and enter PW template view. Use undo pw-class to delete a PW template. Syntax pw-class class-name undo pw-class class-name...
  • Page 149: Pw-Type

    pw-type Use pw-type to specify a PW type for a PW template. Use undo pw-type to restore the default. Syntax pw-type { ethernet | vlan } undo pw-type Default The PW type is VLAN. Views PW template view Predefined user roles network-admin mdc-admin Parameters...
  • Page 150: Service-Instance

    For traffic received from the PW, if the AC access mode (configured by as interface) is VLAN, • the PE modifies or keeps the P-Tag and forwards the traffic through the AC. If the AC access mode is Ethernet, the PE removes the P-Tag and forwards the traffic through the AC. This command takes effect only when the AC type is Ethernet.
  • Page 151: Shutdown

    shutdown Use shutdown to disable a cross-connect group. Use undo shutdown to restore the default. Syntax shutdown undo shutdown Default A cross-connect group is enabled. Views Cross-connect group view Predefined user roles network-admin mdc-admin Usage guidelines After you disable a cross-connect group, all cross-connects in the group cannot provide L2VPN services.
  • Page 152 Predefined user roles network-admin mdc-admin Parameters group-name: Specifies the name of the cross-connect group, a case-sensitive string of 1 to 31 characters excluding hyphens. Examples # Create a cross-connect group named vpn1 and enter cross-connect group view. <Sysname> system-view [Sysname] xconnect-group vpn1 [Sysname-xcg-vpn1] Related commands display l2vpn xconnect-group...
  • Page 153: Mpls Oam Commands

    MPLS OAM commands ping mpls ipv4 Use ping mpls ipv4 to test MPLS LSP connectivity for IPv4 prefixes. Syntax ping mpls [ -a source-ip | -c count | -exp exp-value | -h ttl-value | -m wait-time | -r reply-mode | -s packet-size time-out ipv4...
  • Page 154 destination destination-ip-addr-header: Specifies the destination address in the IP header of an MPLS echo request. The destination address must be an address on subnet 127.0.0.0/8—any local loopback address. The default destination address is 127.0.0.1. Examples # Test LSP connectivity to destination 3.3.3.9/32. <Sysname>...
  • Page 155: Tracert Mpls Ipv4

    Related commands tracert mpls ipv4 tracert mpls ipv4 Use tracert mpls ipv4 to trace MPLS LSPs (from the ingress node to the egress node) for IPv4 prefixes. Syntax tracert mpls [ -a source-ip | -exp exp-value | -h ttl-value | -r reply-mode | -t time-out ] * ipv4 dest-addr mask-length [ destination destination-ip-addr-header ] Views Any view...
  • Page 156 100.1.2.1 129 ms Egress Table 53 Output description Field Description Number of hops. Replier Address of the LSR that replied the request. Time Time used to receive the reply, in milliseconds. Type LSR type: ingress, transit, or egress. Address of the downstream LSR and the label assigned Downstream by the downstream LSR.
  • Page 157: Index

    Index A B C D E G I L M N P R S T V X display l2vpn interface,132 display l2vpn ldp,127 interface,124 display l2vpn pw,133 accept-label,25 display l2vpn pw-class,135 advertise-label,26 display l2vpn service-instance,136 display l2vpn xconnect-group,138 display mpls forwarding ilm,1 backoff,27 display mpls forwarding...
  • Page 158 ipv4-family vpnv4,86 pw-class,143 ipv6-family (VPN instance view),119 pw-type,144 ipv6-family vpnv6,120 refresh bgp vpnv4,91 l2vpn enable,140 refresh bgp vpnv6,121 label-distribution,43 reserve-vlan (VPN instance view),92 loop-detect,44 reset bgp vpnv4,93 lsp-trigger,45 reset bgp vpnv6,122 lsr-id,46 reset mpls ldp,54 route-distinguisher (VPN instance view),94 route-tag,95 maxhops,47 routing-table limit,96...

Table of Contents