HP FlexFabric 12500 Command Reference Manual
HP FlexFabric 12500 Command Reference Manual

HP FlexFabric 12500 Command Reference Manual

Routing switch series, mpls
Table of Contents

Advertisement

HP FlexFabric 12500 and 12500E Routing
Switch Series
MPLS

Command Reference

Part number: 5998-4883
Software version: 12500-CMW710-R7328
Document version: 6PW100-20140128

Advertisement

Table of Contents
loading

Summary of Contents for HP FlexFabric 12500

  • Page 1: Command Reference

    HP FlexFabric 12500 and 12500E Routing Switch Series MPLS Command Reference Part number: 5998-4883 Software version: 12500-CMW710-R7328 Document version: 6PW100-20140128...
  • Page 2 The only warranties for HP products and services are set forth in the express warranty statements accompanying such products and services. Nothing herein should be construed as constituting an additional warranty.
  • 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 ······································································································································ 11 display mpls nib ···················································································································································· 12 display mpls nid ····················································································································································...
  • Page 4 snmp-agent trap enable ldp ································································································································· 56 targeted-peer ·························································································································································· 56 vpn-instance ··························································································································································· 57 MPLS L3VPN commands ············································································································································ 59 address-family ipv4 (VPN instance view) ··········································································································· 59 address-family vpnv4 ············································································································································ 59 description (VPN instance view) ·························································································································· 60 display bgp routing-table ipv4 unicast inlabel ··································································································· 61 display bgp routing-table ipv4 unicast outlabel ·································································································...
  • Page 5 (for LSP) ····························································································································· 141 ping mpls ipv4 ····················································································································································· 142 tracert mpls ipv4 ·················································································································································· 144 Support and other resources ·································································································································· 148 Contacting HP ······························································································································································ 148 Subscription service ············································································································································ 148 Related information ······················································································································································ 148 Documents ···························································································································································· 148 Websites ······························································································································································· 148 Conventions ··································································································································································...
  • Page 6: Basic Mpls Commands

    Basic MPLS commands 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 ] Views Any view Predefined user roles...
  • Page 7: Display Mpls Forwarding Nhlfe

    A - Active forwarding information 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.
  • Page 9: Display Mpls Interface

    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 Tnl-Type Flag OutLabel Forwarding Info -------------------------------------------------------------------------------- 2049 2050 2048 2025 GE3/0/2 10.11.112.26 2049 3024...
  • Page 10: Display Mpls Label

    Predefined user roles network-admin network-operator mdc-admin mdc-operator Parameters interface-type interface-number: Specifies an interface by the interface 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>...
  • Page 11: Display Mpls Lsp

    Examples # Display usage information for labels 900 through 902. <Sysname> display mpls label 900 to 902 Label Owner State Idle Idle Alloc Table 3 Command output Field Description Label Label value. Protocol that is using the label. Possible values include LDP, BGP, and Owner L2VPN.
  • Page 12 outgoing-interface interface-type interface-number: Displays the LSPs using the specified interface as the outgoing interface. The interface-type interface-number argument specifies an interface by its type and number. protocol: Displays the LSPs established by a specific protocol. bgp: Displays BGP LSPs. Ldp: Displays LDP LSPs. local: Displays the direct LSP.
  • Page 13 101.101.101.101/32 Static -/100 Vlan20 Static 100/200 Vlan20 Static 101/- Vlan20 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.
  • Page 14 Field Description BkInterface Outgoing interface of the backup LSP. # Display detailed information about all LSPs. <Sysname> display mpls lsp verbose Destination : 56.10.10.2 : 56.10.10.2/32 Protocol : LDP LSR Type : Egress Service : Statistics In-Label : 1024 State : Active Inbound Statistics: Octets...
  • Page 15 NHLFE ID : 2000 State : Active Out-Label : 1800 Nexthop : 10.1.1.2 Out-Interface: Vlan10 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. •...
  • Page 16: Display Mpls Lsp Statistics

    Field Description MPLS forwarding statistics in outbound direction: • Octets—Number of sent octets. • Outbound Statistics Packets—Number of sent packets. • Errors—Number of error packets. • Discards—Number of discarded packets. Related commands display mpls lsp statistics display mpls lsp statistics Use display mpls lsp statistics to display LSP statistics.
  • Page 17: Display Mpls Nib

    Field Description Ingress Number of LSPs that take the local device as the ingress node. Transit Number of LSPs that take the local device as a transit node. Egress Number of LSPs that take the local device as the egress node. Active Number of active LSPs of a specific type.
  • Page 18: Display Mpls Nid

    Field Description Outgoing NHLFE ID ID of the NHLFE entry to which the next hop corresponds. Backup outgoing NHLFE ID ID of the backup NHLFE entry. display mpls nid Use display mpls nid to display usage information for dynamic NIDs. Syntax display mpls nid [ nid-value1 [ to nid-value2 ] ] Views...
  • Page 19: Display Mpls Summary

    display mpls summary Use display mpls summary to display MPLS summary information. Syntax display mpls summary Views Any view Predefined user roles network-admin network-operator mdc-admin mdc-operator Examples # Display MPLS summary information. <Sysname> display mpls summary Memory State : Normal MPLS LSR ID : 1.1.1.1 Egress Label Type: Implicit-null...
  • Page 20: Mpls Enable

    Field Description Range Label range. Idle Number of idle labels in the label range. Protocols Running label distribution protocols and the related information. Type Protocol type: LDP, BGP, Static, or L2VPN. Label distribution protocol running status: • State Normal. • Recover—The protocol is in the GR process.
  • Page 21: Mpls Lsr-Id

    Specifies the egress to advertise an implicit null label of 3 to the penultimate hop. Usage guidelines If the penultimate hop supports PHP, HP recommends that you configure the egress to advertise an implicit null label to the penultimate hop. If you want to simplify packet forwarding on the egress but keep labels in packets for the egress to determine QoS policies, you can configure the egress to advertise an explicit null label to the penultimate hop.
  • Page 22: Mpls Mtu

    Specifies an ID for identifying the LSR, in dotted decimal notation. Usage guidelines HP recommends that you use the address of a loopback interface on the LSR as the LSR ID. Examples # Configure the LSR ID as 3.3.3.3 for the local node.
  • Page 23: Mpls Ttl Expiration Enable

    If the MPLS MTU is larger than the interface MTU, data forwarding might fail. Examples # Set the MPLS MTU of interface VLAN-interface 2 to 1000 bytes. <Sysname> system-view [Sysname] interface vlan-interface 2 [Sysname-Vlan-interface2] mpls enable [Sysname-Vlan-interface2] mpls mtu 1000 Related commands display mpls interface mpls ttl expiration enable...
  • Page 24: Snmp-Agent Trap Enable Mpls

    IP TTL and label TTL. HP recommends that you set the same TTL processing mode on all LSRs of an LSP. To enable TTL propagation for a VPN, you must enable it on all PE devices in the VPN, so that you can get the same traceroute result (hop count) from those PEs.
  • Page 25 Syntax snmp-agent trap enable mpls undo snmp-agent trap enable mpls Default SNMP notifications for MPLS are enabled. Views System view Predefined user roles network-admin mdc-admin Usage guidelines This command enables MPLS to generate SNMP notifications. The generated SNMP notifications are sent to the SNMP module.
  • 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 Egress

    static-lsp egress Use static-lsp egress to configure the egress node of a static LSP. Use undo static-lsp egress to delete the egress node configuration for a static LSP. 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...
  • Page 28: Static-Lsp Transit

    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. destination dest-addr: Specifies a destination IP address for the LSP. mask: Specifies the mask of the destination IP address.
  • Page 29 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 in the range of 16 to 1023. nexthop next-hop-addr: Specifies a next hop address.
  • Page 30: Ldp Commands

    Using a label advertisement policy on an LSR or using a label acceptance policy on its upstream LSR can achieve the same purpose. HP recommends that you use the label advertisement policy to reduce network load.
  • Page 31: Advertise-Label

    Using a label advertisement policy on an LSR or using a label acceptance policy on its upstream LSR can achieve the same purpose. HP recommends that you use the label advertisement policy to reduce network load.
  • 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.
  • 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 Hello Sent/Rcvd Peer LDP ID (L) Vlan17 83/80 100.100.100.18:0 200.100.100.18:0 (T) 100.100.100.18 23/20 100.100.100.18:0 Table 11 Command output Field...
  • 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 might 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 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. destination-address mask-length: Specifies an FEC by an IP address and a mask in the range of 0 to 32.
  • Page 37 Field Description Upstream peer to which the local LSR advertised the FEC-label mapping and Upstream Info 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

    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 network-admin network-operator mdc-admin mdc-operator Parameters interface-type interface-number: Specifies an interface by its type and number. If you do not specify an interface, this command displays information about all LDP interfaces.
  • Page 39 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. The command displays LDP LSP information for the specified VPN. If you do not specify a VPN instance, the command displays LDP LSP information for the public network.
  • Page 40: Display Mpls Ldp Parameter

    Field Description In/Out Label Incoming/outgoing label. Nexthop Next hop address for the FEC. OutInterface Outgoing interface for the FEC. Related commands display mpls lsp display mpls ldp parameter Use display mpls ldp parameter to display LDP running parameters. Syntax display mpls ldp parameter [ vpn-instance vpn-instance-name ] Views Any view Predefined user roles...
  • Page 41: Display Mpls Ldp Peer

    Field Description Protocol Version LDP protocol version. Whether the nonstop routing function is enabled. • Nonstop Routing On—Enabled. • Off—Disabled. Whether the GR function is enabled. • Graceful Restart On—Enabled. • Off—Disabled. Reconnect Time Value of the Reconnect timer, in seconds. Forwarding State Hold Time Value of the MPLS Forwarding State Holding timer, in seconds.
  • Page 42 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 Keepalive Interval : 15 sec Msgs Sent/Rcvd : 288/426 KA Sent/Rcvd : 13/13 Label Adv Mode : DU Graceful Restart : On Reconnect Time : 120 sec Recovery Time : 360 sec Loop Detection : On Path Vector Limit: 32 Discovery Sources: Targeted Hello 100.100.100.17 ->...
  • Page 44 Field Description Label advertisement mode negotiated. The device only supports the DU Label Adv Mode mode. Indicates whether GR is enabled on the peer. • Graceful Restart On—Enabled. • Off—Disabled. Reconnect Time Reconnect time negotiated, in seconds. Recovery Time Recovery time (in seconds) carried in packets sent by the peer. Whether loop detection is enabled on the peer.
  • Page 45: Display Mpls Ldp Summary

    Field Description Addresses received from peer IP addresses received from the peer. display mpls ldp summary Use display mpls ldp summary to display LDP summary information. Syntax display mpls ldp summary [ all | vpn-instance vpn-instance-name ] Views Any view Predefined user roles network-admin network-operator...
  • Page 46: Graceful-Restart

    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. • Critical—The memory has a critical alarm. Number of Hellos discarded when the memory is in an alarm state. If no Hello Discarded Hellos is discarded, this filed is not displayed.
  • Page 47: Graceful-Restart Timer

    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 on LDP sessions established before the command is executed. To apply the new setting, execute the reset mpls ldp command to reestablish LDP sessions. Examples # Enable GR for LDP.
  • Page 48: Label-Distribution

    When LDP restarts, the GR restarter starts the MPLS Forwarding State Holding timer, and marks the MPLS forwarding entries as stale. When a GR helper detects that the LDP session with the GR restarter is down, it marks the FEC-label mappings learned from the session as stale and starts the Reconnect timer, the value of which is received from the GR restarter.
  • Page 49: Loop-Detect

    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. In this mode, an LSR distributes a label mapping for a FEC to the upstream LSR only when the LSR receives a label mapping for that FEC from the downstream LSR or the LSR is the egress node of that FEC.
  • Page 50: Lsp-Trigger

    After you configure an LSP generation policy, LDP uses all routes or the routes permitted by the IP prefix list to generate LSPs, regardless of the label distribution control mode. HP recommends that you use the default LSP generation policy.
  • Page 51: Lsr-Id

    LDP sessions in the VPN instance. For the public network, HP recommends that you use the default LDP LSR ID configured by the mpls lsr-id command. If you want to configure an LDP LSR ID for the public network by using the lsr-id command, specify the IP address of a local Loopback interface as the LDP LSR ID for high reliability.
  • Page 52: Maxhops

    [Sysname-ldp] lsr-id 2.2.2.2 Related commands • display mpls ldp parameter mpls lsr-id • maxhops Use maxhops to specify the maximum hop count for loop detection. Use undo maxhops to restore the default. Syntax maxhops hop-number undo maxhops Default The maximum hop count for loop detection is 32. Views LDP view, LDP-VPN instance view Predefined user roles...
  • Page 53: Md5-Authentication

    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. Views LDP view, LDP-VPN instance view Predefined user roles network-admin mdc-admin...
  • Page 54: Mpls Ldp Enable

    Use undo mpls ldp to disable LDP globally for an LSR and delete all LDP-VPN instances. Syntax mpls ldp undo mpls ldp Default LDP is globally disabled. Views System view Predefined user roles network-admin mdc-admin Usage guidelines You must enable LDP globally for an LSR to run LDP. The GR commands, the session protection command, and the targeted-peer command are available only in LDP view.
  • Page 55: Mpls Ldp Timer

    Predefined user roles network-admin mdc-admin Usage guidelines Before you enable LDP on an interface, use the mpls ldp command in system view to enable LDP globally. Disabling LDP on an interface terminates all LDP sessions on the interface, and removes all LSPs established through the sessions.
  • Page 56 If the Hello hold time and the Keepalive hold time values are too large, LDP cannot quickly detect link failures. If the values are too small, LDP might mistakenly consider a normal link failed. HP recommends that you use the default values.
  • Page 57: Mpls Ldp Transport-Address

    [Sysname-ldp-peer-3.3.3.3] mpls ldp timer keepalive-interval 50 # On interface VLAN-interface 2, set the Link Hello hold time to 100 seconds, Link Hello interval to 20 seconds, Keepalive hold time to 50 seconds, and Keepalive interval to 10 seconds. <Sysname> System-view [Sysname] interface vlan-interface 2 [Sysname-Vlan-interface2] mpls ldp timer hello-hold 100 [Sysname-Vlan-interface2] mpls ldp timer hello-interval 20...
  • Page 58: Pv-Limit

    Using mpls ldp transport-address in LDP peer view, you specify the transport address carried in the Targeted Hellos sent to the LDP peer. HP recommends that you use the default transport address. If two LSRs have multiple links in between and you want to establish an LDP session on each link, make sure that all the links use the same transport address.
  • Page 59: Reset Mpls Ldp

    If it is not, the LSR adds its own LSR ID into the message. • • If it is, the LSR considers that a loop occurs and terminates LSP establishment. In addition, when the number of LSR IDs in the message reaches the path vector limit, LDP also considers that a loop occurs and terminates LSP establishment.
  • Page 60: Session Protection

    session protection Use session protection to enable session protection. Use undo session protection to disable session protection. Syntax session protection [ duration time ] [ peer peer-prefix-list-name ] undo session protection Default Session protection is disabled. Views LDP view Predefined user roles network-admin mdc-admin Parameters...
  • Page 61: Snmp-Agent Trap Enable Ldp

    Related commands display mpls ldp peer snmp-agent trap enable ldp Use snmp-agent trap enable ldp to enable SNMP notifications for LDP. Use undo snmp-agent trap enable ldp to disable SNMP notifications for LDP. Syntax snmp-agent trap enable ldp undo snmp-agent trap enable ldp Default SNMP notifications for LDP are enabled.
  • Page 62: Vpn-Instance

    Predefined user roles network-admin mdc-admin Parameters peer-lsr-id: Specifies the LSR ID of a peer. Examples # Configure the device to send Targeted Hellos to the peer 3.3.3.3, and enter LDP peer view. <Sysname> system-view [Sysname] mpls ldp [Sysname-ldp] targeted-peer 3.3.3.3 [Sysname-ldp-peer-3.3.3.3] Related commands display mpls ldp discovery...
  • Page 63 Commands executed in LDP view take effect only for the public network. Commands executed in LDP-VPN instance view take effect only for the specified VPN instance. The GR commands are global commands and take effect on all VPN instances and the public network. Examples # Enable LDP for the VPN instance vpn1 and enter LDP-VPN instance view.
  • Page 64: Mpls L3Vpn Commands

    MPLS L3VPN commands address-family ipv4 (VPN instance view) Use address-family ipv4 in VPN instance view to enter IPv4 VPN view. Use undo address-family ipv4 to remove all configurations from IPv4 VPN view. Syntax address-family ipv4 undo address-family ipv4 Views VPN instance view Predefined user roles network-admin mdc-admin...
  • Page 65: Description (Vpn Instance View)

    Views BGP view, BGP-VPN instance view Predefined user roles network-admin 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 66: Display Bgp Routing-Table Ipv4 Unicast Inlabel

    Default command level 2: System level Parameters text: Specifies a description for the VPN instance, a case-sensitive string of 1 to 79 characters. Examples # Configure a description of This is vpn1 for VPN instance vpn1. <Sysname> system-view [Sysname] ip vpn-instance vpn1 [Sysname-vpn-instance-vpn1] description This is vpn1 display bgp routing-table ipv4 unicast inlabel Use display bgp routing-table ipv4 unicast inlabel to display incoming labels for BGP IPv4 unicast...
  • Page 67: Display Bgp Routing-Table Ipv4 Unicast Outlabel

    * > 2.2.2.9/32 1.1.1.2 1151 1279 Table 21 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 In/Out Label Incoming/outgoing label. display bgp routing-table ipv4 unicast outlabel Use display bgp routing-table ipv4 unicast outlabel to display outgoing labels for BGP IPv4 unicast routes.
  • Page 68: Display Bgp Routing-Table Vpnv4

    * > 2.2.2.9/32 1.1.1.2 1151 Table 22 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. display bgp routing-table vpnv4 Use display bgp routing-table vpnv4 to display BGP VPNv4 routing information.
  • Page 69 If only network-address is specified, this command displays detailed information about the BGP VPNv4 route that exactly matches the specified address and the natural mask. Examples # Display brief information about all BGP VPNv4 routes. <Sysname> display bgp routing-table vpnv4 BGP local router ID is 1.1.1.9 Status codes: * - valid, >...
  • Page 70 * > 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? Table 23 Command output Field Description BGP Local router ID Router ID of the local BGP router. Route status codes: • * - valid—Valid route. •...
  • Page 71 Relay nexthop : 172.1.1.2 Original nexthop: 3.3.3.9 OutLabel : 1279 Ext-Community : <RT: 111:1> AS-path : (null) Origin : incomplete Attribute value : MED 0, localpref 100, pref-val 0 State : valid, internal, best, Route distinguisher: 200:1 Total number of routes: 1 Paths: 1 available, 1 best BGP routing table information of 10.3.1.0/24:...
  • Page 72: Display Bgp Routing-Table Vpnv4 Advertise-Info

    Table 24 Command output Field Description Recursive next hop. If no recursive next hop is found, Relay Nexthop this field displays not resolved. Original next hop. If the route is learned from a BGP Original nexthop update, it is the next hop in the update message. Ext-Community Extended community attribute.
  • Page 73: Display Bgp Routing-Table Vpnv4 As-Path-Acl

    network-address: Specifies the destination network address. mask: Specifies the network mask, in dotted decimal notation. mask-length: Specifies the length of the network mask, in the range of 0 to 32. Usage guidelines If the mask and mask-length arguments are not specified, the system ANDs the specified network address with the mask of each route.
  • Page 74 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 65536. •...
  • Page 75: Display Bgp Routing-Table Vpnv4 Community-List

    display bgp routing-table vpnv4 community-list Use display bgp routing-table vpnv4 community-list to display BGP VPNv4 routing information matching a specified BGP community list. Syntax display bgp routing-table vpnv4 [ route-distinguisher route-distinguisher ] community-list { { basic-community-list-number | comm-list-name } [ whole-match ] | adv-community-list-number } Views Any view Predefined user roles...
  • Page 76: Display Bgp Routing-Table Vpnv4 Inlabel

    * > 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?
  • Page 77: Display Bgp Routing-Table Vpnv4 Outlabel

    * > 10.1.1.0/24 10.1.1.2 NULL 1279 * >e 192.168.1.0 10.1.1.1 NULL 1278 Table 25 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. See Table display bgp routing-table vpnv4 outlabel Use display bgp routing-table vpnv4 outlabel to display outgoing labels for BGP VPNv4 routes.
  • Page 78: Display Bgp Routing-Table Vpnv4 Peer

    Network NextHop OutLabel * >i 10.3.1.0/24 3.3.3.9 1279 * >i 192.168.1.0 3.3.3.9 1278 Table 26 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 79 Usage guidelines If none of network-address, mask, or mask-length is specified, this command displays all BGP VPNv4 routing information advertised to or received from the specified BGP peer. If the network-address argument is specified without mask or mask-length, the system ANDs the network address with the mask of a route.
  • Page 80: Display Bgp Routing-Table Vpnv4 Statistics

    Advertised routes total: 2 # Display statistics for BGP VPNv4 routes 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 statistic Received routes total: 2 Table 27 Command output Field Description Advertised routes total Total number of routes advertised to the specified peer.
  • Page 81 In IRF mode: display ospf [ process-id ] sham-link [ area area-id ] [ standby chassis chassis-number slot slot-number ] Views Any view Predefined user roles network-admin network-operator mdc-admin mdc-operator Parameters process-id: Displays sham link information for the OSPF process specified by its ID in the range of 1 to 65535.
  • Page 82: Display Ip Vpn-Instance

    Neighbor ID: 95.1.1.1 State: Full Area: 0.0.0.0 Cost: 1 State: P-2-P Type: Sham Timers: Hello 10s, Dead 40s, Retransmit 5s, Transmit Delay 1s Request list: 0 Retransmit list: 0 MD5 authentication enabled. The last key is 3. The rollover is in progress, 1 neighbor(s) left. display ip vpn-instance Use display ip vpn-instance to display information about VPN instances.
  • Page 83: Domain-Id

    Description : vpn1 Interfaces : GigabitEthernet3/0/2 Address-family IPv4: Export VPN Targets : Import VPN Targets : Export Route Policy : outpolicy Import Route Policy : inpolicy Tunnel Policy : tunnel1 Maximum Routes Limit : 5000 Address-family IPv6: Export VPN Targets : Import VPN Targets : Export Route Policy : outpolicy Import Route Policy : inpolicy...
  • Page 84: Export Route-Policy

    Usage guidelines When you redistribute OSPF routes into BGP, BGP does the following: Adds the configured OSPF domain ID to the redistributed BGP VPN routes as a BGP extended • community attribute. • Advertises the routes to the BGP peer. When you redistribute the BGP VPN routes into OSPF on the BGP peer, OSPF uses the domain ID to determine whether the routes belong to the same OSPF routing domain.
  • Page 85: Ext-Community-Type

    IPv4/IPv6 VPN prefers the export routing policy specified in IPv4/IPv6 VPN view over the one specified in VPN instance view. Examples # Apply export routing policy poly-1 for VPN instance vpn1. <Sysname> system-view [Sysname] ip vpn-instance vpn1 [Sysname-vpn-instance-vpn1] export route-policy poly-1 # Apply export routing policy poly-2 for IPv4 VPN vpn2.
  • Page 86: Import Route-Policy

    Examples # Configure the type codes of domain ID, router ID, and route type as 0x8005, 0x8001, and 0x8000, respectively, for OSPF process 100. <Sysname> system-view [Sysname] ospf 100 [Sysname-ospf-100] ext-community-type domain-id 8005 [Sysname-ospf-100] ext-community-type router-id 8001 [Sysname-ospf-100] ext-community-type route-type 8000 import route-policy Use import route-policy to apply an import routing policy for a VPN instance.
  • Page 87: Ip Binding Vpn-Instance

    [Sysname-vpn-instance-vpn2] address-family ipv4 [Sysname-vpn-ipv4-vpn2] import route-policy poly-2 # Apply import routing policy poly-3 for IPv6 VPN vpn3. <Sysname> system-view [Sysname] ip vpn-instance vpn3 [Sysname-vpn-instance-vpn3] address-family ipv6 [Sysname-vpn-ipv6-vpn3] import route-policy poly-3 Related commands export route-policy • • route-policy (Layer 3—IP Routing Configuration Guide) ip binding vpn-instance Use ip binding vpn-instance to associate an interface with a VPN instance.
  • Page 88: Ip Vpn-Instance (System View)

    [Sysname] interface vlan-interface 1 [Sysname-Vlan-interface1] ip binding vpn-instance vpn1 Related commands ip vpn-instance (system view) ip vpn-instance (system view) Use ip vpn-instance to create a VPN instance and enter VPN instance view. Use undo ip vpn-instance to delete a VPN instance. Syntax ip vpn-instance vpn-instance-name undo ip vpn-instance vpn-instance-name...
  • Page 89: Peer Next-Hop-Invariable

    Views BGP-VPNv4 address family view Predefined user roles network-admin mdc-admin 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.
  • Page 90: Peer Upe

    Examples # In BGP VPNv4 address family view, configure the device to not change the next hop of routes advertised to EBGP peer 1.1.1.1. <Sysname> system-view [Sysname] bgp 100 [Sysname-bgp] address-family vpnv4 [Sysname-bgp-af-vpnv4] peer 1.1.1.1 next-hop-invariable 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.
  • Page 91: Peer Upe Route-Policy

    peer upe route-policy Use peer upe route-policy to advertise routes permitted by a routing policy to a UPE. Use undo peer upe route-policy to restore the default. Syntax peer { group-name | ip-address } upe route-policy route-policy-name export undo peer { group-name | ip-address } upe route-policy export Default No routes are advertised to any peer.
  • Page 92: Refresh Bgp Vpnv4

    Use undo policy vpn-target to disable route target filtering, permitting all incoming VPNv4 routes. Syntax policy vpn-target undo policy vpn-target Default The route target filtering function is enabled for received VPNv4 routes. Views BGP VPNv4 address family view Predefined user roles network-admin mdc-admin Usage guidelines...
  • Page 93: Reserve-Vlan (Vpn Instance View)

    internal: Soft resets all IBGP sessions for VPNv4 address family. export: Soft resets outbound EBGP sessions. import: Soft resets inbound EBGP sessions. vpn-instance vpn-instance-name: Soft resets BGP sessions for the VPN instance specified by its name, a case-sensitive string of 1 to 31 characters. If no VPN instance is specified, this command soft resets BGP sessions for the public network.
  • Page 94: Reset Bgp Vpnv4

    Usage guidelines The reserved VLAN of a VPN instance provides resources for the VPN instance to complete packet forwarding. A common VLAN (for example, a default VLAN, a VLAN created by using the vlan command, 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 using the vlan command or be dynamically learned.
  • Page 95: Route-Distinguisher (Vpn Instance View)

    external: Resets EBGP sessions for VPNv4 address family. group group-name: Resets BGP sessions with the BGP peer group identified by this name, a case-sensitive string of 1 to 47 characters. internal: Resets IBGP sessions for VPNv4 address family. vpn-instance vpn-instance-name: Resets BGP sessions for the VPN instance identified by its name, a case-sensitive string of 1 to 31 characters.
  • Page 96: Route-Tag

    PE ignores the LSA in route calculation to avoid routing loops. HP recommends that you configure the same external route tag for PEs in the same area. An external route tag is not transferred in any BGP extended community attribute. It is only locally significant and takes effect only on the PEs that receive BGP routes and generate OSPF Type 5 or 7 LSAs.
  • Page 97: Routing-Table Limit

    Examples # In OSPF process 100, set the external route tag for redistributed VPN routes to 100. <Sysname> system-view [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 active routes in a VPN instance. Use undo routing-table limit to restore the default.
  • Page 98: Sham-Link

    <Sysname> system-view [Sysname] ip vpn-instance vpn1 [Sysname-vpn-instance-vpn1] route-distinguisher 100:1 [Sysname-vpn-instance-vpn1] routing-table limit 1000 simply-alert # Specify that the IPv4 VPN vpn2 supports up to 1000 active routes, and when active routes exceed the upper limit, can receive new active routes but generates a system log message. <Sysname>...
  • Page 99 dead dead-interval: Specifies the dead interval in the range of 1 to 32768 seconds. The default is 40 seconds. The dead interval configured on the two ends of the sham link must be identical and be at least four times the hello interval. hello hello-interval: Specifies the interval for sending hello packets, in the range of 1 to 8192 seconds.
  • Page 100: Rr-Filter

    [Sysname-ospf-1-area-0.0.0.0] sham-link 1.1.1.1 2.2.2.2 Related commands display ospf sham-link rr-filter Use rr-filter to create an RR reflection policy so that only IBGP routes whose extended community attribute matches the specified extended community list are reflected. Use undo rr-filter to restore the default. Syntax rr-filter extended-community-number undo rr-filter...
  • Page 101: Tnl-Policy (Vpn Instance View/Ipv4 Vpn View/Ipv6 Vpn View)

    Default SNMP notifications for MPLS L3VPN are enabled. Views System view Predefined user roles network-admin mdc-admin Usage guidelines This feature enables MPLS L3VPN to generate SNMP notifications. The generated SNMP notifications are sent to the SNMP module. For more information about SNMP notifications, see Network Management and Monitoring Configuration Guide.
  • Page 102: Vpn Popgo

    A tunnel policy specified in IPv4 VPN view or IPv6 VPN view is applicable to only the IPv4 VPN or IPv6 VPN. IPv4/IPv6 VPN prefers the tunnel policy specified in IPv4/IPv6 VPN view over the tunnel policy specified in VPN instance view. Examples # Associate VPN instance vpn1 with tunnel policy po1.
  • Page 103: Vpn-Id

    Predefined user roles network-admin mdc-admin Usage guidelines After you execute the vpn popgo command, the egress PE disconnects and reestablishes BGP sessions to re-learn VPN routes. After the vpn popgo command is executed, the egress PE does not support load sharing among VPN BGP peers.
  • Page 104: Vpn-Instance-Capability Simple

    Examples # Configure VPN ID 20:1 for the VPN instance vpn1. <Sysname> system-view [Sysname] ip vpn-instance vpn1 [Sysname-vpn-instance-vpn1] vpn-id 20:1 Related commands display ip vpn-instance 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.
  • Page 105 Default No route targets are configured for a VPN instance. Views VPN instance view, IPv4 VPN view, IPv6 VPN view 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: •...
  • Page 106 [Sysname] ip vpn-instance vpn2 [Sysname-vpn-instance-vpn2] address-family ipv4 [Sysname-vpn-ipv4-vpn2] vpn-target 3:3 export-extcommunity [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] address-family ipv6 [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 107: 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." address-family ipv6 (VPN instance view) Use address-family ipv6 to enter IPv6 VPN view. Use undo address-family ipv6 to remove all configurations from IPv6 VPN view.
  • Page 108: Display Bgp Routing-Table Vpnv6

    Default The BGP VPNv6 address family is not created. Views BGP view Predefined user roles network-admin mdc-admin Usage guidelines A VPNv6 address comprises an RD and an IPv6 prefix. In IPv6 MPLS L3VPNs, PEs exchange BGP VPNv6 routes. For a PE to exchange BGP VPNv6 routes with a BGP peer, you must enable that peer by executing the peer enable command in BGP VPNv6 address family view.
  • Page 109 32-bit AS number:16-bit user-defined number, where the minimum value of the AS number is 65536. • For example, 65536:1. network-address prefix-length: Displays the BGP VPNv6 route that exactly matches the specified network address and prefix length. The prefix length is in the range of 0 to 128. Without this parameter, the command displays all BGP VPNv6 routes.
  • Page 110: Display Bgp Routing-Table Vpnv6 Advertise-Info

    PrefVal : 0 OutLabel : 1279 Path/Ogn: ? Table 29 Command output Field Description BGP Local router ID Router ID of the local BGP router. Route status codes: • * - valid—Valid route. • > - best—Common best route. • d –...
  • Page 111: Display Bgp Routing-Table Vpnv6 As-Path-Acl

    Predefined user roles network-admin network-operator 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. •...
  • Page 112 network-operator 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 65536. •...
  • Page 113: Display Bgp Routing-Table Vpnv6 Community-List

    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: ? For command output, see Table Related commands ip as-path (Layer 3—IP Routing Command Reference)
  • Page 114 adv-community-list-number: Specifies an advanced community list by its number in the range of 100 to 199. Examples # Display BGP VPNv6 routing information matching BGP community list 100. <Sysname> display bgp routing-table vpnv6 community-list 100 BGP local router ID is 1.1.1.9 Status codes: * - valid, >...
  • Page 115: Display Bgp Routing-Table Vpnv6 Inlabel

    For command output, see Table display bgp routing-table vpnv6 inlabel Use display bgp routing-table vpnv6 inlabel to display incoming labels for BGP VPNv6 routes. Syntax display bgp routing-table vpnv6 inlabel Views Any view Predefined user roles network-admin network-operator mdc-admin mdc-operator Examples # Display incoming labels for all BGP VPNv6 routes.
  • Page 116: Display Bgp Routing-Table Vpnv6 Peer

    Syntax display bgp routing-table vpnv6 outlabel Views Any view Predefined user roles network-admin network-operator mdc-admin mdc-operator Examples # Display outgoing labels for all BGP VPNv6 routes. <Sysname> display bgp routing-table vpnv6 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: 1...
  • Page 117 Syntax display bgp routing-table vpnv6 peer ip-address { advertised-routes | received-routes } [ network-address prefix-length | statistics ] Views Any view Predefined user roles network-admin network-operator mdc-admin mdc-operator Parameters ip-address: Specifies a peer by its IP address. advertised-routes: Displays routing information advertised to the specified peer. received-routes: Displays routing information received from the specified peer.
  • Page 118: Display Bgp Routing-Table Vpnv6 Statistics

    s - suppressed, S - stale, i - internal, e - external Origin: i - IGP, e - EGP, ? - incomplete 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 119: Policy Vpn-Target

    Route distinguisher: 100:1(vpn1) Total number of routes: 4 Route distinguisher: 200:1 Total number of routes: 1 policy vpn-target Use policy vpn-target to enable route target filtering of received VPNv6 routes. Use undo policy vpn-target to permit all VPNv6 routes. Syntax policy vpn-target undo policy vpn-target Default...
  • Page 120: Reset Bgp Vpnv6

    mdc-admin Parameters ip-address: Soft resets the BGP session with the BGP peer identified by this IP address. all: Soft resets all BGP sessions for VPNv6 address family. external: Soft resets all EBGP sessions for VPNv6 address family. group group-name: Soft resets BGP sessions with the BGP peer group identified by this name, a case-sensitive string of 1 to 47 characters.
  • Page 121: Rr-Filter

    Parameters as-number: Resets BGP sessions in the AS identified by this number in the range of 1 to 4294967295. ip-address: Resets the BGP session with the BGP peer identified by this IP address. all: Resets all BGP sessions for VPNv6 address family. external: Resets all EBGP sessions for VPNv6 address family.
  • Page 122 [Sysname] bgp 100 [Sysname-bgp] address-family vpnv6 [Sysname-bgp-vpnv6] rr-filter 10uuuu...
  • Page 123: Mpls L2Vpn Commands

    MPLS L2VPN commands ac interface Use ac interface to bind an AC to a cross-connect. Use undo ac interface to remove the binding. Syntax ac interface interface-type interface-number [ service-instance instance-id ] [ access-mode { ethernet | vlan } ] undo ac interface interface-type interface-number [ service-instance instance-id ] Default No AC is bound to a cross-connect.
  • Page 124: Connection

    Examples # Configure service instance 200 on the Layer 2 interface GigabitEthernet 3/0/1 to match packets with an outer VLAN tag of 200, and bind the service instance to the cross-connect actopw in the cross-connect group vpn1. <Sysname> system-view [Sysname] interface GigabitEthernet 3/0/1 [Sysname-GigabitEthernet3/0/1] service-instance 200 [Sysname-GigabitEthernet3/0/1-srv200] encapsulation s-vid 200 [Sysname-GigabitEthernet3/0/1-srv200] quit...
  • Page 125: Description

    Execute ac interface and peer to connect an AC to a PW, so the PE can forward packets between • the AC and the PW. Execute ac interface twice to connect two ACs, so the PE can forward packets between the two ACs. •...
  • Page 126 Views Any view Predefined user roles network-admin network-operator mdc-admin mdc-operator 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.
  • Page 127: Display L2Vpn Forwarding

    VCCV CC Type: -/- VCCV CV Type: -/- : 1500/1500 PW Status : PW forwarding/PW forwarding Table 34 Command output Field Description Xconnect-group Cross-connect group of the PW. Connection Cross-connect of the PW. PW state communicate: • Notification method—Uses notifications to communicate PW states. PW Status Communication •...
  • Page 128 Parameters ac: Displays AC forwarding information. pw: Displays PW forwarding information. xconnect-group group-name: Displays forwarding information for the cross-connect group specified by its name, a case-sensitive string of 1 to 31 characters. If no group is specified, the command displays forwarding information for all cross-connect groups.
  • Page 129 Interface: GE3/0/3 Service Instance: 4 Link ID Access Mode : VLAN Encapsulation: untagged Table 36 Command output Field Description Xconnect-group Cross-connect group name. Connection Cross-connect name. The field is available only when the AC is a service instance on a Layer 2 Ethernet Service Instance interface.
  • Page 130: Display L2Vpn Interface

    VCCV CC : Router-Alert VCCV BFD : Fault Detection with BFD Tunnel Group ID : 0x60000000 Tunnel NHLFE IDs: 1025 Link ID: 1 PW Type : VLAN PW State : Up In Label : 1278 Out Label: 1151 : 1500 PW Attributes : Main VCCV CC...
  • Page 131: Display L2Vpn Pw

    Predefined user roles network-admin network-operator mdc-admin mdc-operator Parameters xconnect-group group-name: Displays L2VPN information for Layer 3 interfaces bound to cross-connects in the cross-connect group specified by its name, a case-sensitive string of 1 to 31 characters. interface-type interface-number: Displays L2VPN information for the specified interface. Usage guidelines If no parameters are specified, this command displays L2VPN information for all Layer 3 interfaces bound to cross-connects.
  • Page 132 network-operator mdc-admin mdc-operator Parameters xconnect-group group-name: Displays PW information for the cross-connect group specified by its name, a case-sensitive string of 1 to 31 characters. If no group is specified, the command displays L2VPN PW information for all cross-connect groups. protocol: Displays L2VPN PW information established by a specific protocol.
  • Page 133 Peer: 192.3.3.3 PW ID: 500 Signaling Protocol : LDP Link ID PW State : Up In Label : 65663 Out Label: 65662 : 1500 PW Attributes : Main VCCV CC VCCV BFD Tunnel Group ID : 0x800000160000000 Tunnel NHLFE IDs : 1026 Table 41 Command output Field...
  • Page 134: Display L2Vpn Pw-Class

    display l2vpn pw-class Use display l2vpn pw-class to display PW class information. Syntax display l2vpn pw-class [ class-name ] Views Any view Predefined user roles network-admin network-operator mdc-admin mdc-operator Parameters class-name: Displays information about the PW class specified by its name, a case-sensitive string of 1 to 19 characters.
  • Page 135 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 Layer 2 Ethernet interface. If no interface is specified, this command displays service instance information for all Layer 2 Ethernet interfaces. service-instance instance-id: Displays information about the service instance specified by its ID in the range of 1 to 4096.
  • Page 136: Display L2Vpn Xconnect-Group

    State : Up Service Instance: 2 Encapsulation : s-vid 1001 to 1002 1015 to 1016 only-tagged Xconnect-group: vpws2 Connection : pwtopw Link ID State : Up Table 44 Command output Field Description Interface Layer 2 Ethernet interface. Match criteria of the service instance. If no match criteria are configured, the field is Encapsulation blank.
  • Page 137: Encapsulation

    Xconnect-group Name Connection ID State 1500 Down vpn1 1500 Down vpn2 1500 Down Table 45 Command output Field Description Connection ID Cross-connect ID. Cross-connect group state: Up, Down, or Admin down. Admin down State indicates the cross-connect group has been shut down by the shutdown command.
  • Page 138 Use undo encapsulation to remove match criteria for a service instance. Syntax encapsulation s-vid vlan-id [ only-tagged ] encapsulation { default | tagged | untagged } undo encapsulation Default No match criteria are configured for a service instance. Views Service instance view Predefined user roles network-admin mdc-admin...
  • Page 139: L2Vpn Enable

    l2vpn enable Use l2vpn enable to enable L2VPN. Use undo l2vpn enable to disable L2VPN. Syntax l2vpn enable undo l2vpn enable Default L2VPN is disabled. Views System view Predefined user roles network-admin mdc-admin Usage guidelines You must enable L2VPN before configuring other L2VPN settings. Examples # Enable L2VPN.
  • Page 140: Peer

    Usage guidelines The PEs at the two ends of an LDP PW must have the same MTU. Otherwise, the PW cannot come up. The MTU specifies the maximum packet length, including the control word, PW label, and network layer packet. Examples # Configure an MTU of 1400 bytes for the cross-connect ac2pw in the cross-connect group vpn1.
  • Page 141: Pw-Class

    Usage guidelines To create a static PW, you must specify the incoming and outgoing labels. To enter the view of an existing static PW, you do not need to specify the incoming and outgoing labels. If you do not specify the incoming and outgoing labels when you create a new PW, LDP is used to create the PW.
  • Page 142: Pw-Type

    Default No PW class is created. Views System view Predefined user roles network-admin mdc-admin Parameters class-name: Specifies the name of the PW class, a case-sensitive string of 1 to 19 characters. Usage guidelines In PW class view, you can configure PW attributes such as the PW type and control word. PWs with the same attributes can use the same PW class to simplify configuration.
  • Page 143: Service-Instance

    Usage guidelines This command takes effect only when the AC type is Ethernet. When the PW type is Ethernet, the PE encapsulates packets forwarded between the AC and PW as follows: Traffic sent to the PW cannot carry the P-Tag. •...
  • Page 144: Shutdown

    Syntax service-instance instance-id undo service-instance instance-id Default No service instance is created on a Layer 2 Ethernet interface. Views Layer 2 Ethernet interface view Predefined user roles network-admin mdc-admin Parameters instance-id: Specifies the ID of the service instance, in the range of 1 to 4096. Examples # Create service instance 1 on the Layer 2 Ethernet interface GigabitEthernet 3/0/1 and enter service instance 1 view.
  • Page 145: Xconnect-Group

    Use the shutdown command when you want to temporarily disable L2VPN (for example, to modify a cross-connect group). After the modification, use the undo shutdown command to enable the cross-connect group. This will provide L2VPN services using the new settings. Examples # Disable the cross-connect group vpn2.
  • Page 146: Mpls Oam Commands

    MPLS OAM commands mpls periodic-tracert (for LSP) Use mpls periodic-tracert to enable periodic traceroute of LSPs for an FEC. Use undo mpls periodic-tracert to disable periodic traceroute of LSPs for an FEC. Syntax mpls periodic-tracert dest-addr mask-length [ -a source-ip | -exp exp-value | -h ttl-value | -m wait-time | -rtos tos-value | -t time-out | -u retry-attempt | fec-check ] * undo mpls periodic-tracert dest-addr mask-length Default...
  • Page 147: Ping Mpls Ipv4

    Usage guidelines The periodic MPLS traceroute function automatically traces an LSP tunnel at a specific interval. It locates errors on the LSP tunnel, verifies the consistency of the data plane and control plane, and records the detected errors into system logs. You can check the logs to monitor LSP connectivity. If both BFD and periodic MPLS traceroute are configured for an LSP and the periodic traceroute function detects a data plane and control plane inconsistency, the device deletes the BFD session for the LSP and reestablishes the BFD session based on the control plane.
  • Page 148 -rtos tos-value: Specifies the ToS value in the IP header of an MPLS echo reply packet. The value range is 0 to 7, and the default value is 6. -s packet-size: Specifies the length (excluding the IP header and UDP header) of an MPLS echo request packet.
  • Page 149: Tracert Mpls Ipv4

    Destination address 127.0.0.1 100 bytes from 100.1.2.1: Sequence=1 time=49 ms Return Code=3(1) Destination address 127.0.0.3 100 bytes from 100.1.2.1: Sequence=2 time=44 ms Return Code=3(1) Destination address 127.0.0.1 100 bytes from 100.1.2.1: Sequence=3 time=60 ms Return Code=3(1) Destination address 127.0.0.3 100 bytes from 100.1.2.1: Sequence=4 time=60 ms Return Code=3(1) Destination address 127.0.0.1 100 bytes from 100.1.2.1: Sequence=5 time=76 ms Return Code=3(1) Destination address 127.0.0.3...
  • Page 150 Syntax tracert mpls [ -a source-ip | -exp exp-value | -h ttl-value | -r reply-mode | -rtos tos-value | -t time-out | -v | fec-check ] * ipv4 dest-addr mask-length [ destination start-address [ end-address [ address-increment ] ] ] Views Any view Predefined user roles...
  • Page 151 Examples # Trace the path that the LSP (for FEC 5.5.5.9/32) traverses from the ingress node to the egress node. Specify the IP header destination address range as 127.1.1.1 to 127.1.1.2 and set the address increment value to 1. With the configurations, the device performs a traceroute for 127.1.1.1 and 127.1.1.2. <Sysname>...
  • Page 152 Field Description Type LSR type: Ingress, Transit, or Egress. Address of the downstream LSR and the label assigned by Downstream the downstream LSR. Return code. The number in parentheses represents a return ReturnCode subcode.
  • Page 153: Support And Other Resources

    Related information Documents To find related documents, browse to the Manuals page of the HP Business Support Center website: http://www.hp.com/support/manuals For related documentation, navigate to the Networking section, and select a networking category. •...
  • Page 154: Conventions

    Conventions This section describes the conventions used in this documentation set. Command conventions Convention Description Boldface Bold text represents commands and keywords that you enter literally as shown. Italic Italic text represents arguments that you replace with actual values. Square brackets enclose syntax choices (keywords or arguments) that are optional. Braces enclose a set of required syntax choices separated by vertical bars, from which { x | y | ...
  • Page 155 Network topology icons Represents a generic network device, such as a router, switch, or firewall. Represents a routing-capable device, such as a router or Layer 3 switch. Represents a generic switch, such as a Layer 2 or Layer 3 switch, or a router that supports Layer 2 forwarding and other Layer 2 features.
  • Page 156: Index

    Index A B C D E G I L M N P R S T V X display l2vpn ldp,120 display l2vpn pw,126 interface,1 18 display l2vpn pw-class,129 accept-label,25 display l2vpn service-instance,129 address-family ipv4 (VPN instance view),59 display l2vpn xconnect-group,131 address-family ipv6 (VPN instance view),102 display mpls forwarding...
  • Page 157 l2vpn enable,134 reserve-vlan (VPN instance view),88 label-distribution,43 reset bgp vpnv4,89 loop-detect,44 reset bgp vpnv6,1 15 lsp-trigger,45 reset mpls ldp,54 lsr-id,46 route-distinguisher (VPN instance view),90 route-tag,91 routing-table limit,92 maxhops,47 rr-filter,1 16 md5-authentication,48 rr-filter,95 mpls enable,15 mpls label advertise,15 mpls ldp,48 service-instance,138 mpls ldp enable,49 session...

This manual is also suitable for:

Flexfabric 12500e

Table of Contents