HP HSR6800 Routers MPLS Command Reference Part number: 5998-4509 Software version: HSR6800-CMW520-R3303P05 Document version: 6PW105-20140507
Legal and notice information © Copyright 2014 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.
Contents Basic MPLS commands ················································································································································ 1 accept-label ······························································································································································· 1 advertise-label ·················································································································································
mpls lsr-id ······························································································································································· 59 mpls mtu ································································································································································· 59 mpls statistics enable ············································································································································
display tunnel-info ··············································································································································· 124 enable traffic-adjustment ····································································································································· 125 enable traffic-adjustment advertise ···················································································································· 126 explicit-path ·········
mpls te record-route ············································································································································· 163 mpls te reoptimization (tunnel interface view) ·································································································· 163 mpls te reoptimization (user view) ····················································································································· 164 mpls te resv-style ···················
pw-class ································································································································································ 221 pw-tunnel-policy ··················································································································································· 222 reset bgp l2vpn···················································································································································· 222 r
MPLS L3VPN configuration commands ················································································································· 273 default local-preference (BGP-VPNv4 subaddress family view) ····································································· 273 default med (BGP-VPNv4 subaddress family view) ························································································· 273 description (VPN instance view) ····················································
peer vpn-instance enable···································································································································· 332 peer vpn-instance group ····································································································································· 332 peer vpn-instance route-policy import ··············································································································· 333 policy vpn-target (BGP-VPNv4 subadd
refresh bgp ipv6 vpn-instance ···························································································································· 379 refresh bgp vpnv6 ··············································································································································· 379 reset bgp ipv6 vpn-instance ······························································································································· 380 reset bgp vpnv6 ···········
Basic MPLS commands Commands configured in MPLS LDP view apply to the public network and those configured in MPLS LDP VPN instance view apply to the MPLS VPN instance. accept-label Use accept-label to configure a label acceptance policy. Use undo accept-label to restore the default. Syntax accept-label peer peer-id ip-prefix ip-prefix-name undo accept-label peer peer-id Default An LSR accepts all label bindings received from its LDP peers.
Related commands ip ip-prefix (Layer 3—IP Routing Command Reference) advertise-label Use advertise-label to configure a label advertisement policy. Use undo advertise-label to restore the default. Syntax advertise-label ip-prefix ip-prefix-name [ peer peer-ip-prefix-name ] undo advertise-label ip-prefix ip-prefix-name Default An LSR does not filter label bindings to be advertised.
[Sysname] ip ip-prefix peer-C permit 3.3.3.9 32 [Sysname] ip ip-prefix peer-D permit 4.4.4.9 32 [Sysname] mpls ldp [Sysname-mpls-ldp] advertise-label ip-prefix prefix-to-C peer peer-C [Sysname-mpls-ldp] advertise-label ip-prefix prefix-to-D peer peer-D Related commands ip ip-prefix (Layer 3—IP Routing Command Reference) bfd enable Use bfd enable to enable BFD to detect the connectivity of the LSPs for an FEC. Use undo bfd enable to disable BFD detection of the LSP connectivity to a destination address.
system-view [Sysname] mpls lspv [Sysname-mpls-lspv] bfd enable 1.1.1.9 32 display mpls ilm Use display mpls ilm to display information about ILM entries.
# Display all ILM entries. display mpls ilm Total ILM Entry: 2 Inlabel In-Interface Token VRF-Index Oper LSP-Type Swap-Label ----------------------------------------------------------------------------60 GE2/1/1 1 0 NULL STATIC LSP - 80 GE2/1/2 2 0 NULL STATIC LSP - Table 1 Command output Field Description Total ILM Entry Total number of ILM entries. Inlabel Incoming label. In-Interface Incoming interface. Token NHLFE entry index.
Create Time : 07:57:26:927 Last Change Time : 07:57:26:927 Tunnel ID : 0xc0002(Done) GrCount: 0 Service : Statistics(Succeeded) Table 2 Command output Field Description In Label Incoming label. LSP Type LSP type: LDP LSP, CR-LDP, RSVP LSP, BGP LSP, L3VPN LSP, STATIC LSP, STATIC CR-LSP, L2VPN LSP, or BGP IPv6 LSP. In Interface Incoming interface. Operation Operation type: POP, POPGO, SWAPGO, or NULL. Swap Label Label for swapping. Out Interface Outgoing interface.
verbose: Displays detailed information. If you do not specify this keyword, the command displays the brief information. |: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide. begin: Displays the first line that matches the specified regular expression and all lines that follow. exclude: Displays all lines that do not match the specified regular expression.
Views Any view Default command level 1: Monitor level Parameters label-value1: Specifies a label, or, when used with the label-value2 argument, the start label of a range of labels. For the value range for the label-value1 argument, see the matrix table in the Usage guidelines. to label-value2: Specifies the end label of a range of labels. For the value range for the label-value2 argument, see the matrix table in Usage guidelines.
Default command level 1: Monitor level Parameters all: Displays all information about LDP. verbose: Displays detailed information. |: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide. begin: Displays the first line that matches the specified regular expression and all lines that follow. exclude: Displays all lines that do not match the specified regular expression.
Field Description State of LDP NSR: • On—LDP NSR is enabled but the data backup is not finished yet. Nonstop Routing • Off—LDP NSR is disabled. • Ready—LDP NSR is enabled and data backup is finished. Instance ID Sequence number of the LDP instance. VPN-Instance Instance name of the LDP-enabled VPN. For the default VPN, this field is blank. Hop Count Limit Maximum hop count for loop detection. Path Vector Limit Maximum path vector length.
|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide. begin: Displays the first line that matches the specified regular expression and all lines that follow. exclude: Displays all lines that do not match the specified regular expression. include: Displays all lines that match the specified regular expression. regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.
include: Displays all lines that match the specified regular expression. regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters. Examples # Display the label advertisement information for FEC 3.3.3.9/32. display mpls ldp fec 3.3.3.
Label Request ID : NULL Label Type : Generic Outgoing Label : 1025 State : Established Backup State : Not in use Hop Count : 2 Path Vector Count : 1 Path Vector : 4.4.4.4 Received : 65535 MTU OutIfCount : 1 OutGoing Info : Interface Nexthop GE3/1/1 24.1.1.2 Table 5 Command output Field Description Label Advertisement Policy Information about the label advertisement policy. FEC IP-prefix IP prefix list for checking FEC destination addresses.
Syntax display mpls ldp interface [ all [ verbose ] | [ vpn-instance vpn-instance-name ] [ interface-type interface-number | verbose ] ] [ | { begin | exclude | include } regular-expression ] Views Any view Default command level 1: Monitor level Parameters all: Displays all information. verbose: Displays detailed information. vpn-instance vpn-instance-name: Displays the LDP related information for the specified VPN.
Configured Hello Timer : 15 Sec Negotiated Hello Timer : 15 Sec Configured Keepalive Timer : 45 Sec Label Advertisement Mode : Downstream Unsolicited Hello Message Sent/Rcvd : 591/1033 (Message Count) ------------------------------------------------------------Interface Name : GigabitEthernet2/1/2 LDP ID : 172.17.1.1:0 Transport Address : 172.17.1.
Syntax display mpls ldp lsp [ all | [ vpn-instance vpn-instance-name ] [ destination-address mask-length ] ] [ | { begin | exclude | include } regular-expression ] Views Any view Default command level 1: Monitor level Parameters all: Specifies all LSPs established by LDP. vpn-instance vpn-instance-name: Displays the LSP information for the specified VPN. The vpn-instance-name argument is the instance name of an MPLS L3VPN, a case-sensitive string of 1 to 31 characters.
Related commands display mpls ldp display mpls ldp peer Use display mpls ldp peer to display information about specified peers or all peers. Syntax display mpls ldp peer [ all [ verbose ] | [ vpn-instance vpn-instance-name ] [ peer-id | verbose ] ] [ | { begin | exclude | include } regular-expression ] Views Any view Default command level 1: Monitor level Parameters all: Display information about all peers. verbose: Displays detailed information.
Table 8 Command output Field Description Peer-ID LDP identifier of the peer. For a description of the LDP identifier, see the LDP ID field in Table 6. Discovery-Source Interface that discovers the peer. # Display detailed information about all peers. display mpls ldp peer verbose LDP Peer Information in Public network --------------------------------------------------------------Peer LDP ID : 172.17.1.2:0 Peer Max PDU Length : 4096 Peer Transport Address : 172.17.1.
Related commands • mpls ldp (interface view) • mpls ldp (system view) display mpls ldp remote-peer Use display mpls ldp remote-peer to display information about remote LDP peers. Syntax display mpls ldp remote-peer [ remote-name remote-peer-name ] [ | { begin | exclude | include } regular-expression ] Views Any view Default command level 1: Monitor level Parameters remote-name remote-peer-name: Displays information about a remote peer.
Table 10 Command output Field Description LDP ID Local LDP identifier. For a description of the LDP identifier, see the LDP ID field in Table 6. Transport Address Local LDP transport address used to establish a TCP connection with this remote peer. Hello Message Sent/Rcvd Counts of hello messages sent to/received from this remote peer.
Examples # Display information about all public network LDP sessions. display mpls ldp session LDP Session(s) in Public Network Total number of sessions: 1 -----------------------------------------------------------------------------Peer-ID Status SsnRole FT MD5 KA-Sent/Rcv -----------------------------------------------------------------------------100.101.102.
10.1.1.1 1.1.1.1 -------------------------------------------------------------------------Peer LDP ID : 2.2.2.2:0 Local LDP ID : 3.3.3.3:0 TCP Connection : 3.3.3.3 -> 2.2.2.
Field Description LDP Basic Discovery Source Interface where the session is established. The value is the name of the interface for basic discovery and name of the remote peer for extended discovery.. LDP Extended Discovery Source Related commands • mpls ldp (interface view) • mpls ldp (system view) display mpls ldp session all statistics Use display mpls ldp session all statistics to display statistics about all LDP sessions.
[ vpn-instance vpn-instance-name ] [ protocol { bgp | bgp-ipv6 | crldp | ldp | rsvp-te | static | static-cr } ] ] [ egress | ingress | transit ] [ { exclude | include } { ipv4-dest-addr mask-length | ipv6-dest-addr prefix-length } ] [ verbose ] [ | { begin | exclude | include } regular-expression ] Views Any view Default command level 1: Monitor level Parameters incoming-interface interface-type interface-number: Displays information about the LSPs using the specified interface as the incoming interface.
|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide. • begin: Displays the first line that matches the specified regular expression and all lines that follow. • exclude: Displays all lines that do not match the specified regular expression. • include: Displays all lines that match the specified regular expression.
Out-Label : NULL In-Interface : ---------- Out-Interface : ---------- LspIndex : 5121 Tunnel ID : 0x0 LsrType : Egress Outgoing Tunnel ID : 0x0 Label Operation : POP ------------------------------------------------------------LSP Information: LDP LSP ------------------------------------------------------------No. VrfName : 1 : Fec : 1.1.1.9/32 Nexthop : 127.0.0.
display mpls lsp bfd ipv4 Use display mpls lsp bfd ipv4 to display BFD information for LSPs. Syntax display mpls lsp bfd [ ipv4 destination-address mask-length ] [ | { begin | exclude | include } regular-expression ] Views Any view Default command level 1: Monitor level Parameters destination-address mask-length: Displays BFD information for LSPs associated with an FEC. The FEC is specified by a destination address and its mask length. The value range for the address mask length is 0 to 32.
Table 15 Command output Field Description Type Type of the tunnel detected by BFD: LSP or TE Tunnel. Local Discr Local discriminator value of the BFD session. Remote Discr Remote discriminator value of the BFD session. BFD session state: • Init—initialization state. • Up. • Down. Session State Source IP IP address of the active end (ingress LSR) of the BFD session. Role of the current LSR in the session: Session Role • Active—Initiator of the BFD session. • Passive—Responder of the BFD session.
ASBR LSP 0 0 0 0 BGP IPV6 LSP 0 0 0 0 ------------------------------------------------------------------------LSP 8 2 2 4 CRLSP 0 0 0 0 Table 16 Command output Field Description Ingress Number of LSPs taking the current LSR as ingress. Transit Number of LSPs taking the current LSR as transit LSR. Egress Number of LSPs taking the current LSR as egress. display mpls nhlfe Use display mpls nhlfe to display information about NHLFE entries.
Usage guidelines With the token argument not specified, the command displays information about all NHLFE entries. Examples # Display information about a specific NHLFE entry. display mpls nhlfe 2 Out-Interface Token Oper Nexthop Deep Stack ---------------------------------------------------------------------S2/1/0 2 PUSH 88.1.1.2 1 1024 Nexthop Deep Stack # Display information about all NHLFE entries.
Create Time : 00:01:43:653 Last Change Time : 00:01:43:653 Service : Statistics(Succeeded) Table 18 Command output Field Description Total NHLFE Entry Total number of NHLFE entries. Token Index of the NHLFE entry. Tunnel ID Index of the NHLFE tunnel. Out Interface Outgoing interface. AT Index Adjacency table index. Operation Label operation type: PUSH, SWAP, or GO.
Parameters token: Specifies an NHLFE entry index. The following matrix shows the value ranges for the token argument: Keyword HSR6802/HSR6804/HSR6808 token 0 to 65535 slot slot-number: Displays the usage information for the NHLFE entries on a card. The slot-number argument specifies the number of the slot that holds the card. (In standalone mode.) chassis chassis-number slot slot-number: Displays the usage information for the NHLFE entries on a card of an IRF member device.
Table 20 Types of associated nodes and their key parameters Node type Description Key parameter FTN FEC to NHLFE mapping. • VPN ID—VPN instance ID • Address prefix/mask ILM Incoming label mapping. • In-Label—Incoming label • In-If—Incoming interface LPW Sending entries of VPWS PW. • SRV ID—Service instance ID • Private-If—Private network interface VPW Sending entries of VPLS PW. • VSI ID—Virtual switching instance ID • Link ID FRR Primary NHLFE of FRR.
Usage guidelines With no VPN instance specified, the command displays the LSP information for the public routes. With no destination address and mask specified, the command displays the LSP information for all routes. Examples # Display LSP-related information about all routes.
Parameters lsp-name lsp-name: Displays information about the specified LSP. The LSP name is a string of 1 to 15 characters. exclude: Displays information about the LSPs other than the one for the given FEC. include: Displays information about the LSP for the given FEC. dest-addr mask-length: Specifies a FEC by a destination address and mask length. The value range for the mask length is 0 to 32. verbose: Displays detailed information. |: Filters command output by specifying a regular expression.
display mpls statistics interface Use display mpls statistics interface to display MPLS statistics for one or all interfaces. Syntax display mpls statistics interface { interface-type interface-number | all } [ | { begin | exclude | include } regular-expression ] Views Any view Default command level 1: Monitor level Parameters interface-type interface-number: Displays MPLS statistics for the specified interface. all: Displays MPLS statistics for all interfaces.
Start Time : 2004/04/28 10:23:55 End Time : 2004/04/28 10:23:55 Statistics for Interface IN : Incoming Interface GigabitEthernet2/1/2 Octets : 0 Packets : 0 Errors : 0 Disables : 0 Failed Label Lookup : 0 Start Time : 2004/04/28 10:24:04 End Time : 2004/04/28 10:24:04 Statistics for Interface OUT : Outgoing Interface GigabitEthernet2/1/2 Octets : 0 Packets : 0 Errors : 0 Disables : 0 Start Time : 2004/04/28 10:24:04 End Time : 2004/04/28 10:24:04 Statistics for Interface
Field Description Start Time Start time of the statistics. End Time End time of the statistics. Related commands • mpls statistics enable • statistics interval display mpls statistics lsp Use display mpls statistics lsp to display MPLS statistics for all LSPs or the LSP with a specific index or name.
Errors : 0 Down : 0 Start Time : 2006/05/20 15:52:30 End Time : 2006/05/20 15:52:30 Statistics for Lsp OUT : LSP Name /LSP Index : DynamicLsp/9217 OutSegment Octets : 0 Packets : 0 Errors : 0 Down : 0 Start Time : 0000/00/00 00:00:00 End Time : 0000/00/00 00:00:00 Statistics for Lsp IN : LSP Name /LSP Index : DynamicLsp/9218 InSegment Octets : 0 Packets : 0 Errors : 0 Down : 0 Start Time : 0000/00/00 00:00:00 End Time : 0000/00/00 00:00:00 Statistics for Lsp OUT : L
NOTE: • On an ingress, no statistics are collected in the incoming direction and the start time and end time in the InSegment part of the command output are both 0. • On an egress, no statistics are collected in the outgoing direction and the start time and end time in the OutSegment part of the command output are both 0.
Examples # Display statistics for the LSP with the incoming label of 1024. system-view [Sysname] mpls statistics enable lsp in-label 1024 [Sysname] display mpls statistics lsp in-label 1024 Statistics for Lsp IN: LSP TYPE/Label:NORMAL/1024 Octets : 440 Packets : 5 Errors : 0 Discards : 0 ****************Ecmp NO. 0:*************** Statistics for Lsp OUT: LSP Label: -Octets : 0 Packets : 0 Errors : 0 Discards : 0 ****************Ecmp NO.
display mpls statistics tunnel Use display mpls statistics tunnel to display statistics for the specified or all public network LSP tunnels. Syntax display mpls statistics tunnel [ token token ] [ | { begin | exclude | include } regular-expression ] Views Any view Default command level 1: Monitor level Parameters token token: Specifies a public network tunnel by its LSP token. The value range for the token argument is 0 to 4294967295. |: Filters command output by specifying a regular expression.
Field Description Discards Number of packets discarded. Related commands mpls statistics enable du-readvertise Use du-readvertise to enable label re-advertisement for DU mode. Use undo du-readvertise to disable the function. Syntax du-readvertise undo du-readvertise Default Label re-advertisement is enabled in DU mode. Views MPLS LDP view, MPLS LDP VPN instance view Default command level 2: System level Examples # Enable DU mode label re-advertisement for the public network LDP instance.
Default command level 2: System level Parameters value: Specifies the label re-advertisement interval in the range of 1 to 65535 seconds. Examples # Set the DU mode LDP label re-advertisement interval to 100 seconds for the public network. system-view [Sysname] mpls ldp [Sysname-mpls-ldp] du-readvertise timer 100 # Set the DU mode LDP label re-advertisement interval to 100 seconds for VPN instance vpn1.
graceful-restart mpls ldp Use graceful-restart mpls ldp to restart MPLS LDP gracefully. Syntax graceful-restart mpls ldp Views User view Default command level 1: Monitor level Usage guidelines This command is only used to test MPLS LDP GR function. It does not perform active/standby switchover. Do not use it in other cases. The MPLS LDP GR capability is required for this command to take effect. Examples # Restart MPLS LDP gracefully.
For LDP sessions with MD5 authentication configured, give the LDP neighbor liveness time a greater value so that the TCP connection can be reestablished. Examples # Set the LDP neighbor liveness time to 100 seconds. system-view [Sysname] mpls ldp [Sysname-mpls-ldp] graceful-restart timer neighbor-liveness 100 graceful-restart timer reconnect Use graceful-restart timer reconnect to set the FT reconnect time. Use undo graceful-restart timer reconnect to restore the default.
undo graceful-restart timer recovery Default The LDP recovery time is 300 seconds. Views MPLS LDP view Default command level 2: System level Parameters timer: Specifies the LDP recovery time in the range of 3 to 300 seconds. Usage guidelines The LDP recovery time refers to the maximum time that the stale state label will be kept by the LSR after a TCP reconnection. Modifying the LDP recovery time will cause all LDP sessions and all LSPs based on the sessions to be removed and then reestablished.
Examples # Set the maximum hop count for loop detection to 25 for the public network LDP instance. system-view [Sysname] mpls ldp [Sysname-mpls-ldp] hops-count 25 # Set the maximum hop count for loop detection to 25 for LDP instance vpn1.
[Sysname] mpls [Sysname-mpls] label advertise explicit-null label-distribution Use label-distribution to specify the label distribution control mode. Use undo label-distribution to restore the default. Syntax label-distribution { independent | ordered } undo label-distribution Default The label distribution control mode is ordered. Views MPLS LDP view, MPLS LDP VPN instance view Default command level 2: System level Parameters independent: Specifies the independent label distribution control mode.
undo loop-detect Default Loop detection is disabled. Views MPLS LDP view, MPLS LDP VPN instance view Default command level 2: System level Usage guidelines Enable loop detection before enabling LDP on any interface. Examples # Enable loop detection for the public network LDP instance. system-view [Sysname] mpls ldp [Sysname-mpls-ldp] loop-detect # Enable loop detection for LDP instance vpn1.
ip-prefix prefix-name: Specifies an IP prefix list to filter routing entries, so that static routes and IGP routes that denied by the IP prefix list cannot trigger LSP establishment. prefix-name indicates the name of the IP prefix list, a string of 1 to 19 characters. Usage guidelines An IP prefix list affects only static routes and IGP routes. For an LSP to be established, an exactly matching routing entry must exist on the LSR.
[Sysname-mpls-ldp-vpn-instance-vpn1] lsr-id 4.2.2.3 md5-password Use md5-password to enable LDP MD5 authentication and set the key. Use undo md5-password to restore the default. Syntax md5-password { cipher | plain } peer-lsr-id password undo md5-password peer-lsr-id Default LDP MD5 authentication is disabled. Views MPLS LDP view, MPLS LDP VPN instance view Default command level 2: System level Parameters cipher: Sets a ciphertext key. plain: Sets a plaintext key.
mpls Use mpls in system view to enable MPLS globally and enter MPLS view. Use undo mpls in system view to disable MPLS globally. Use mpls in interface view to enable MPLS for the interface. Use undo mpls in interface view to disable MPLS for the interface. Syntax mpls undo mpls Default MPLS capability is disabled globally and on all interfaces. Views System view, interface view Default command level 2: System level Usage guidelines Configure the MPLS LSR ID before enabling MPLS capability.
Default MPLS LDP is disabled. Views System view Default command level 2: System level Usage guidelines To configure the mpls ldp command, first configure the MPLS LSR ID and enable MPLS globally for the LSR. Examples # Enable LDP globally and enter MPLS LDP view. system-view [Sysname] mpls lsr-id 1.1.1.1 [Sysname] mpls [Sysname-mpls] quit [Sysname] mpls ldp [Sysname-mpls-ldp] mpls ldp (interface view) Use mpls ldp to enable LDP on an interface.
If the interface is bound to a VPN instance, use the mpls ldp vpn-instance command to enable LDP for the VPN instance. For more information about the mpls ldp vpn-instance command, see "MPLS L3VPN commands." Examples # Enable LDP for interface GigabitEthernet 2/1/1.
Views Interface view, MPLS LDP remote peer view Default command level 2: System level Parameters value: Specifies the value of the Hello timer, in the range of 1 to 65535, in seconds. Usage guidelines In interface view, you set the link Hello timer. In MPLS LDP remote peer view, you set the targeted Hello timer. Changing the values of the Hello timers does not affect any existing session. Examples # Set the link Hello timer to 100 seconds on interface GigabitEthernet 2/1/1.
Parameters value: Specifies the value of the Keepalive timer, in the range of 1 to 65535, in seconds. Usage guidelines In interface view, you set the link keepalive timer. In MPLS LDP remote peer view, you set the targeted keepalive timer.
Default command level 2: System level Parameters ip-address: Specifies the IP address to be used as the LDP transport address. interface: Uses the IP address of the current interface as the LDP transport address. Usage guidelines In interface view, you configure the link Hello transport address. In MPLS LDP remote peer view, you configure the targeted Hello transport address.
[Sysname-mpls-lspv] mpls lsr-id Use mpls lsr-id to configure the ID of an LSR. Use undo mpls lsr-id to remove the ID of an LSR. Syntax mpls lsr-id lsr-id undo mpls lsr-id Default No LSR ID is configured. Views System view Default command level 2: System level Parameters lsr-id: Specifies the ID for identifying the LSR, in dotted decimal notation. Usage guidelines Configure the LSR ID of an LSR before configuring any other MPLS commands.
Views Interface view Default command level 2: System level Parameters value: Specifies the MPLS MTU of the interface, in the range of 46 to 65535. Usage guidelines The command is effective only when MPLS is enabled on the interface. If the MPLS MTU is larger than the interface MTU, data forwarding might fail. The command does not apply to TE tunnel interfaces. Examples # Configure the MPLS MTU of interface GigabitEthernet 2/1/1 as 1000.
Keyword HSR6802/HSR6804/HSR6808 in-label 0 to 97279 tunnel token token: Specifies a public network tunnel by its LSP token. The value range for the token is 0 to 4294967295. Examples # Enable statistics for the LSP with the incoming label of 1024.
path-vectors Use path-vectors to specify the path vector length. Use undo path-vectors to restore the default. Syntax path-vectors pv-number undo path-vectors Default The path vector length is 32, that is, the number of LSR IDs in a path vector cannot exceed 32. Views MPLS LDP view, MPLS LDP VPN instance view Default command level 2: System level Parameters pv-number: Specifies the path vector length in the range of 1 to 32.
Default command level 0: Visit level Parameters -a source-ip: Specifies the source address for the echo request messages to be sent. -c count: Specifies the number of echo request messages to be sent. The value range for the count argument is 1 to 4294967295, and the default is to 5. -exp exp-value: Specifies the EXP value for the echo request messages. The value range for the exp-value argument is 0 to 7, and the default is 0. -h ttl-value: Specifies the TTL value for the echo request messages.
Use undo periodic-tracert to disable periodic LSP tracert for an FEC. Syntax periodic-tracert destination-address mask-length [ -a source-ip | -exp exp-value | -h ttl-value | -m wait-time | -t time-out | -u retry-attempt ] * undo periodic-tracert destination-address mask-length Default The periodic LSP tracert for an FEC is not enabled.
prefix-label advertise Use prefix-label advertise to configure LDP to advertise prefix-based labels through remote sessions. Use undo prefix-label advertise to restore the default. Syntax prefix-label advertise undo prefix-label advertise Default LDP does not advertise prefix-based label through a remote session.
Default command level 2: System level Parameters ip-address: Specifies the remote peer IP address. Usage guidelines The remote peer IP address must be the MPLS LSR ID of the remote peer. Two peers use their MPLS LSR IDs as the transport addresses to establish a TCP connection. Examples # Configure the remote peer IP address as 3.3.3.3. system-view [Sysname] mpls ldp remote-peer BJI [Sysname-mpls-ldp-remote-bji] remote-ip 3.3.3.
Views User view Default command level 1: Monitor level Parameters all: Resets sessions of all LDP instances (including the public one and the private ones). vpn-instance vpn-instance-name: Resets the LDP sessions of the specified VPN. The vpn-instance-name argument specifies an MPLS L3VPN by its instance name, a case-sensitive string of 1 to 31 characters. fec mask: Resets the LDP sessions for the specified FEC. The fec mask argument specifies a FEC by a destination IP address and mask.
Examples # Clear MPLS statistics for interface GigabitEthernet 2/1/1. reset mpls statistics interface gigabitethernet 2/1/1 Related commands display mpls statistics interface reset mpls statistics lsp Use reset mpls statistics lsp to clear MPLS statistics for the specified LSPs. Syntax reset mpls statistics lsp { index | all | name lsp-name } Views User view Default command level 1: Monitor level Parameters index: Clears statistics for the LSP with the specified index number.
Keyword HSR6802/HSR6804/HSR6808 in-label 0 to 97279 Examples # Clear statistics for the LSP with the incoming label of 1024. reset mpls statistics lsp in-label 1024 Related commands display mpls statistics lsp in-label reset mpls statistics tunnel Use reset mpls statistics tunnel to clear statistics for one or all public network tunnels.
Parameters lsp-name: Specifies an LSP name, a string of 1 to 15 characters. incoming-interface interface-type interface-number: Specifies an incoming interface by its type and number. in-label in-label: Specifies an incoming label, which can be 0, 3, or a value in the range of 16 to 1023. Examples # Configure a static LSP taking the current LSR as the egress, and specify the LSP's name as bj-sh, incoming interface as Serial 2/1/0, and incoming label as 233.
configure a static IP route for the LSP, be sure to specify the same next hop or outgoing interface for the static route and the static LSP. The next hop address cannot be any local public network IP address. Examples # Configure a static LSP taking the current LSR as the ingress, and specify the LSP's name as bj-sh, destination address as 202.25.38.1/24, next hop address as 202.55.25.33, and outgoing label as 237. system-view [Sysname] static-lsp ingress bj-sh destination 202.25.38.
Examples # Configure a static LSP taking the local LSR as a transit LSR, and specify the LSP's name as bj-sh, incoming interface as Serial 2/1/0, incoming label as 123, next hop address as 202.34.114.7, and outgoing label as 253. system-view [Sysname] static-lsp transit bj-sh incoming-interface serial 2/1/0 in-label 123 nexthop 202.34.114.7 out-label 253 Related commands • static-lsp egress • static-lsp ingress statistics Use statistics to enable MPLS statistics collection for LSPs.
Related commands • display mpls statistics lsp in-label • display mpls statistics tunnel statistics interval Use statistics interval to set the interval for reading collected statistics. Use undo statistics interval to restore the default. Syntax statistics interval interval-time undo statistics interval Default The LSP statistics reading interval is 0, which indicates that the system does not read collected LSP statistics.
Parameters -a source-ip: Specifies the source IP address for the echo request messages. -exp exp-value: Specifies the EXP value for the echo request messages. The value range for the exp-value argument is 0 to 7, and the default is 0. -h ttl-value: Specifies the maximum TTL value for the echo request messages. The value range for the ttl-value argument is 1 to 255, and the default is 30. -r reply-mode: Specifies the reply mode of the receiver in response to the echo request messages.
Examples # Disable the system from sending back an ICMP TTL exceeded message when it receives an MPLS TTL expired message. system-view [Sysname] mpls [Sysname-mpls] undo ttl expiration enable Related commands ttl expiration pop ttl expiration pop Use ttl expiration pop to configure the system to use IP routes to send back the ICMP TTL exceeded messages for TTL-expired MPLS packets that have only one level of label.
Syntax ttl propagate { public | vpn } undo ttl propagate { public | vpn } Default MPLS TTL propagation is enabled only for public network packets. Views MPLS view Default command level 2: System level Parameters public: Specifies public network packets. vpn: Specifies VPN packets. Examples # Enable MPLS TTL propagation for VPN packets.
MPLS TE configuration commands add hop Use add hop to insert a node to the explicit path, and configure the node's attributes (include or exclude, strict or loose). Syntax add hop ip-address1 [ include [ loose | strict ] | exclude ] { after | before } ip-address2 Views Explicit path view Default command level 2: System level Parameters ip-address1: Specifies the IP address or Router ID of the node to be inserted, in dotted decimal notation.
Syntax delete hop ip-address Views Explicit path view Default command level 2: System level Parameters ip-address: Specifies the IP address of a node along the explicit path. Examples # Remove the node identified by 10.0.0.1 from the explicit path path1. system-view [Sysname] explicit-path path1 [Sysname-explicit-path-path1] delete hop 10.0.0.1 display explicit-path Use display explicit-path to display information about an explicit path.
3 1.1.1.20 Strict Include 4 2.1.1.20 Strict Include 5 2.1.1.30 Strict Include 6 1.1.1.30 Strict Include 7 9.4.4.4 Strict Include Path Name : ErHop-Path2 Path Status : Enabled 1 1.1.1.10 Strict Include 2 2.1.1.10 Strict Include 3 1.1.1.40 Strict Include 4 2.1.1.40 Strict Include 5 1.1.1.50 Strict Include 6 2.1.1.40 Strict Include 7 2.1.1.30 Strict Include 8 1.1.1.30 Strict Include 9 9.4.4.
|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide. begin: Displays the first line that matches the specified regular expression and all lines that follow. exclude: Displays all lines that do not match the specified regular expression. include: Displays all lines that match the specified regular expression. regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.
BW Unresrv[2]: 6250 Bytes/sec BW Unresrv[3]: 6250 Bytes/sec BW Unresrv[4]: 6250 Bytes/sec BW Unresrv[5]: 6250 Bytes/sec BW Unresrv[6]: 6250 Bytes/sec BW Unresrv[7]: 6250 Bytes/sec Unreserved BW for Class Type 1: BW Unresrv[0]: 0 Bytes/sec BW Unresrv[1]: 0 Bytes/sec BW Unresrv[2]: 0 Bytes/sec BW Unresrv[3]: 0 Bytes/sec BW Unresrv[4]: 0 Bytes/sec BW Unresrv[5]: 0 Bytes/sec BW Unresrv[6]: 0 Bytes/sec BW Unresrv[7]: 0 Bytes/sec TE Cost : 10 Bandwidth Constraint Model: Russian Doll Bandwi
Field Description Admin Group Link administrative group attribute. Physical BW Physical bandwidth. Reservable BW Reservable bandwidth. BW Unresrv[0]-[7] Available subpool bandwidths at eight levels. TE Cost TE cost. BC[0] Global pool. BC[1] Subpool. LOM[0] Local overbooking multiplier. The bracketed number indicates the level of bandwidth. LOM[1] display isis traffic-eng link Use display isis traffic-eng link to display the IS-IS TE link information.
Examples # Display the IS-IS TE link information. display isis traffic-eng link TE information for ISIS(1) -------------------------Level-2 Link Information -----------------------0000.0000.0001.00-->0000.0000.0001.01 Type: MULACC LinkID: 10.1.1.1 0000.0000.0002.00-->0000.0000.0003.00 Type: P2P LinkID: 3.3.3.9 0000.0000.0002.00-->0000.0000.0001.01 Type: MULACC LinkID: 10.1.1.1 0000.0000.0003.00-->0000.0000.0002.00 Type: P2P LinkID: 2.2.2.9 0000.0000.0003.00-->0000.0000.0004.
|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide. begin: Displays the first line that matches the specified regular expression and all lines that follow. exclude: Displays all lines that do not match the specified regular expression. include: Displays all lines that match the specified regular expression. regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.
Field Description List of Attached Routers List of attached routers. RouterId Router ID. Nbr Neighbors. Level-2 Network Information Level-2 network information. display isis traffic-eng statistics Use display isis traffic-eng statistics to display the IS-IS TE statistics.
IS-IS Router ID : 1.1.1.9 Table 31 Command output Field Description IS-IS System Type System type. IS-IS Cost Style Status Cost type of the router. IS-IS Level-1 Traffic Engineering Status TE state of Level-1 router. IS-IS Level-2 Traffic Engineering Status TE state of Level-2 router. display isis traffic-eng sub-tlvs Use display isis traffic-eng sub-tlvs to display information about IS-IS sub-TLVs for TE.
Table 32 Command output Field Description Unreserved sub-pool bandwidth sub-tlv value Sub-TLV of unreserved subpool bandwidth. Bandwidth constraint sub-tlv value Bandwidth constraint sub-TLV. LO multiplier sub-tlv value LOM sub-TLV. Related commands te-set-subtlv display mpls lsp bfd te Use display mpls lsp bfd te to display BFD information for MPLS TE tunnels.
Table 33 Command output Field Description Type Type of the tunnel detected by BFD: LSP or TE Tunnel. Local Discr Local discriminator of the BFD session. Remote Discr Remote discriminator of the BFD session. Session State Status of the BFD session: Init (initializing), Up, or Down. Source IP IP address of the active end (ingress LSR) of the BFD session. Session Role Role of the LSR in the BFD session: Active or Passive.
Hello interval: 3 sec Max Hello misses: 3 Path and Resv message refresh interval: 30 sec Path and Resv message refresh retries count: 3 Blockade Multiplier: 4 Graceful Restart: ENABLE Restart Time: 200 sec Recovery Time: 150 sec Table 34 Command output Field Description LSR ID Label switched Router ID, in the format of X.X.X.X. Resv Confirmation Request Reserved confirmation request. RSVP Hello Extension State of the hello mechanism: enabled or disabled.
Field Description Srefresh feature State of the summary refresh function: enabled or disabled. Srefresh interval Summary refresh interval (in seconds) Authentication State of authentication: enabled or disabled. Reliability Whether the reliability feature is configured. Retransmit interval Initial retransmission interval (in milliseconds) Increment value delta which governs the speed at which the interface increases the retransmission interval.
Next Hop Addr: 80.4.1.1 Upstream Label: 1024 Downstream Label: 3 Table 36 Command output Field Description Interface GigabitEthernet2/1/1 RSVP-TE enabled interface. Token Bucket rate Token bucket rate, a traffic parameter. Peak Data Rate Peak rate, a traffic parameter. Tunnel Dest Tunnel destination, in the format of X.X.X.X. Ingress LSR ID Ingress LSR ID, in the format of X.X.X.X. Next Hop Addr Next hop address, in the format of X.X.X.X.
Graceful Restart State: Ready Restart Time: 200 sec Recovery Time: 150 sec Interface GigabitEthernet2/1/2 Neighbor Addr: 80.2.1.1 SrcInstance: 832 NbrSrcInstance: 920 PSB Count: 1 RSB Count: 0 Hello Type Sent: REQ Neighbor Hello Extension: ENABLE SRefresh Enable: NO Reliability Enable: YES Graceful Restart State: Not Ready Restart Time: --- Recovery Time: --- Table 37 Command output Field Description Interface GigabitEthernet2/1/1 RSVP-TE enabled interface.
Views Any view Default command level 1: Monitor level Parameters ingress-lsr-id: Ingress LSR ID. lspid: Local LSR ID in the range of 1 to 65535. tunnel-id: Tunnel ID in the range of 0 to 65535. egress-lsr-id: Egress LSR ID. |: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide. begin: Displays the first line that matches the specified regular expression and all lines that follow.
Graceful Restart State: Stale Bandwidth Constraint Mode: IETF DS-TE RDM Table 38 Command output Field Description Tunnel Dest Tunnel destination, in the format of X.X.X.X. Session Tunnel ID Session tunnel ID. Tunnel ExtID Tunnel extension ID, in the format of X.X.X.X. Ingress LSR ID Ingress LSR ID, in the format of X.X.X.X. Local LSP ID Local LSP ID. Next Hop Next hop address, in the format of X.X.X.X. Previous Hop Previous hop address, in the format of X.X.X.X. In Label Incoming label.
Field Graceful Restart State Description State of GR: stale or normal. If this field is not supported, three hyphens (---) are displayed. Bandwidth constraints model carried in the path message: Bandwidth Constraint Mode • IETF DS-TE RDM. • IETF DS-TE MAM. • Prestandard DS-TE RDM. display mpls rsvp-te request Use display mpls rsvp-te request to display information about RSVP-TE requests on the specified or all interfaces.
Field Description Tunnel Dest Tunnel destination, in the format of X.X.X.X. Ingress LSR ID Ingress LSR ID, in the format of X.X.X.X. Next Hop Address Next hop address, in the format of X.X.X.X. SessionFlag Reservation style. Token Bucket rate Token bucket rate, a traffic parameter. Token Bucket Size Token bucket size, a traffic parameter. Out Interface Output interface.
LSP ID: 1 Tunnel ID: 1 Upstream Label: ----Token bucket rate: 0.00 Token bucket size: 0.00 Interface: Outgoing-Interface at the Egress Tunnel Dest: 19.19.19.19 Ingress LSR ID: 29.29.29.29 LSP ID: 1 Tunnel ID: 1 Upstream Label: 3 Token bucket rate: 0.00 Token bucket size: 0.00 Table 40 Command output Field Description Interface GigabitEthernet2/1/1 RSVP-TE enabled Ethernet interface. Tunnel Dest Tunnel destination, in the format of X.X.X.X. Ingress LSR ID Ingress LSR ID, in the format of X.
Examples # Display information about RSVP-TE RSBs. display mpls rsvp-te rsb-content 19.19.19.19 1 0 29.29.29.29 101.101.101.2 The RSB Content: Tunnel Dest: 29.29.29.29 Session Tunnel ID: 0 Tunnel ExtID: 19.19.19.19 Next Hop: 101.101.101.2 Reservation Style: SE Style Reservation Incoming Interface: GigabitEthernet2/1/1 Reservation Interface: GigabitEthernet2/1/1 Message ID : 2 Filter Spec InformationThe filter number: 1 Ingress LSR ID: 19.19.19.
Field Description RRO Information Information about route recording. RRO-C Type Type of route recording. RRO-IP Address IP address of recorded route in the format of X.X.X.X. RRO-IPPrefixLen IP prefix length of recorded route. Flow Spec information Flow specifications. Token Bucket rate Token bucket rate (in kbps), a traffic parameter. Token Bucket size Token bucket size, a traffic parameter. Peak Data Rate Peak data rate (in kbps), a traffic parameter.
regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters. Examples # Display the RSVP-TE sender message information on interface GigabitEthernet 2/1/1. display mpls rsvp-te sender interface giabitethernet 2/1/1 Interface GigabitEthernet2/1/1 Tunnel Dest: 29.29.29.29 Ingress LSR ID: 19.19.19.19 LSP ID: 1 Session Tunnel ID: 1 Session Name: Tunnel0 Previous Hop Address: 101.101.101.1 Token bucket rate: 0.0 Token bucket size: 0.
Default command level 1: Monitor level Parameters global: Display global RSVP-TE information. interface: Displays statistics about RSVP-TE for a specific interface or, if no interface is specified, all interfaces. interface-type interface-number: Specifies an interface for which statistics about RSVP-TE is displayed. |: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.
SendResvConfCounter: 0 RecResvConfCounter: 0 SendHelloCounter: 2 RecHelloCounter: 61 SendAckCounter: 61 RecAckCounter: 2 SendPathErrCounter: 0 RecPathErrCounter: 0 SendResvErrCounter: 0 RecResvErrCounter: 0 SendPathTearCounter: 0 RecPathTearCounter: 0 SendResvTearCounter: 0 RecResvTearCounter: 0 SendSrefreshCounter: 0 RecSrefreshCounter: 0 SendAckMsgCounter: 0 RecAckMsgCounter: 0 SendErrMsgCounter: 0 RecErrMsgCounter: 0 RecReqFaultCounter: 0 BindFrrFaultCounter: 0 Table 43 Command outp
Field Description RecResvTearCounter Number of received ResvTear messages. SendSrefreshCounter Number of transmitted Srefresh messages. RecSrefreshCounter Number of received Srefresh messages. SendAckMsgCounter Number of transmitted AckMsg messages. RecAckMsgCounter Number of received AckMsg messages. SendErrMsgCounter Number of transmitted errors. RecErrMsgCounter Number of received errors. RecReqFaultCounter Number of request failures.
• include: Displays all lines that match the specified regular expression. • regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters. Examples # Display brief information about all static CR-LSPs. display mpls static-cr-lsp total statics-cr-lsp : 1 Name FEC I/O Label I/O If State abc -/- 60/NULL GE2/1/1/- Down Table 44 Command output Field Description Name Static CR-LSP name. FEC FEC destination address and mask.
Field Description Class Type Class type of the traffic on the static CR-LSP. Bandwidth Bandwidth required by the static CR-LSP. display mpls te cspf tedb Use display mpls te cspf tedb to display information about CSPF-based TEDB by specified criteria.
4.1.1.1 3.1.1.2 4 4.1.1.2 3.0.0.5 OSPF 100 0 4.1.1.1 5.1.1.1 4.1.1.2 5 5.1.1.2 3.0.0.6 OSPF 100 0 5.1.1.1 6.1.1.1 5.1.1.2 6 6.1.1.2 3.0.0.9 OSPF 100 0 6.1.1.1 7.1.1.1 6.1.1.2 7 7.1.1.1 12.0.0.7 OSPF 100 0 3.1.1.1 7.1.1.1 7.1.1.2 Table 46 Command output Field Description ID Number. DR MPLS LSR-Id MPLS LSR ID of the designated router (DR), in dotted decimal notation. DR-Address Interface address of the DR. IGP Interior gateway protocol: OSPF or IS-IS.
Field Description IGP Interior gateway protocol: OSPF or IS-IS. Process-Id IGP process ID. Area Area to which the router belongs. Link-count Total number of connected links belonging to a particular IGP protocol process. # Display the TEDB information for IGP area 1. display mpls te cspf tedb area 1 Router Node Information for Area 1: Id MPLS LSR-Id IGP Process-Id Area Link-Count 1 2.2.2.2 OSPF 100 1 1 2 3.3.3.3 OSPF 100 1 1 3 2.2.2.2 ISIS 100 Level-1 1 4 3.3.3.
2.0.0.44, 2.0.0.45, 2.0.0.46, 2.0.0.47, 2.0.0.32, Neighbor MPLS LSR-Id : 1.1.1.
Table 49 Command output Field Description MPLS LSR-Id MPLS LSR ID, in dotted decimal notation. Process Id IGP process ID. MPLS-TE Link Count Number of MPLS TE links. Link[1] Information about the first link. DR Address IP address of the DR. IGP Metric IGP metric of link. TE Metric TE metric of link. Color Link administrative attribute. Maximum Bandwidth Maximum bandwidth of the link. Maximum Reservable Bandwidth Maximum reservable bandwidth of link.
Field Description MPLS-TE Link Count Number of MPLS TE links. Link[1] Information about the first link. Interface IP Address Interface IP address. DR Address IP address of the DR. IGP Metric IGP metric of link. TE Metric TE metric of link. Color Link administrative attribute. Maximum Bandwidth Maximum bandwidth of the link. Maximum Reservable Bandwidth Maximum reservable bandwidth of the link. Bandwidth Constraint Mode Bandwidth constraints model.
3 0 3 4 0 4 5 0 5 6 0 6 7 0 7 8 1 0 9 1 1 10 1 2 11 1 3 12 1 4 13 1 5 14 1 6 15 1 7 Table 51 Command output Field Description MPLS DS-TE mode DS-TE mode: Prestandard or IETF. MPLS DS-TE BC mode DS-TE BC model: RDM or MAM. TE CLASS ClassType Priority TE class-CT-priority mapping.
display mpls te link-administration admission-control LspID In/Out IF S/H Prio CT BW(kbps) 1.1.1.9:1024 ---/GE2/1/1 7/7 0 0 1.1.1.9:2048 ---/GE2/1/2 7/7 0 0 Table 52 Command output Field Description LspID ID of an LSP carried on a link. In/Out IF Incoming/Outgoing interface. S/H Prio Setup and holding priorities of CR-LSP. CT Service class type.
UpStream LSP Count : 0 Downstream Bandwidth : 0 kbits/sec Upstream Bandwidth : 0 kbits/sec IPUpdown Link Status : UP PhysicalUpdown Link Status : UP BC Prestandard RDM(kbps) IETF Mode RDM(kbps) IETF Mode MAM(kbps) 0 2000000 200000 2000 1 1000000 150000 2000 2 0 100000 2000 3 0 50000 2000 TE CLASS CLASS TYPE PRIORITY 0 0 0 BW RESERVED(kbps) 0 BW AVAILABLE(kbps) 2000000 1 0 1 0 2000000 2 0 2 0 2000000 3 0 3 0 2000000 4 0 4 0 2000000 5 0 5 0 200
display mpls te tunnel Use display mpls te tunnel to display information about MPLS TE tunnels.
Examples # Display information about MPLS TE tunnels. (The output vary by signaling protocol.) display mpls te tunnel LSP-Id Destination In/Out-If Name 1.1.1.9:1024 3.3.3.9 -/GE2/1/1 Tunnel0 1.1.1.9:2048 3.3.3.9 -/GE2/1/2 Tunnel0 Table 54 Command output Field Description LSP-ID LSP ID of tunnel. Destination Destination router ID. In/Out-IF Incoming/outgoing interface. Name Tunnel name configured on the ingress node. # Display detailed information about MPLS TE tunnels.
Resv Style : FF IncludeAnyAff : 0x0 ExcludeAllAff : 0x0 IncludeAllAff : 0x0 Created Time : 2011/01/28 09:59:49 Table 55 Command output Field Description No Number. LSP ID of the tunnel. A value containing an * indicates that the CR-LSP is the reverse CR-LSP of a bidirectional tunnel. LSP-Id The device does not support bidirectional MPLS TE tunnel. Tunnel-Name Tunnel name configured on the ingress node. Destination Destination router ID. In-Interface Incoming interface.
Syntax display mpls te tunnel path [ lsp-id lsr-id lsp-id | tunnel-name tunnel-name ] [ | { begin | exclude | include } regular-expression ] Views Any view Default command level 1: Monitor level Parameters lsr-id: Ingress LSR ID, in dotted decimal notation. lsp-id: LSP ID in the range of 1 to 65535. tunnel-name tunnel-name: Tunnel name, a string of 1 to 63 characters. |: Filters command output by specifying a regular expression.
Views Any view Default command level 1: Monitor level Parameters |: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide. begin: Displays the first line that matches the specified regular expression and all lines that follow. exclude: Displays all lines that do not match the specified regular expression. include: Displays all lines that match the specified regular expression.
Parameters tunnel number: Displays information about a specific tunnel interface. |: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide. begin: Displays the first line that matches the specified regular expression and all lines that follow. exclude: Displays all lines that do not match the specified regular expression. include: Displays all lines that match the specified regular expression.
Table 58 Command output Field Description Tunnel Desc Tunnel description. Tunnel State Desc Tunnel state description. Admin State Administrative state. Oper State Operation state. Signaling Prot Signaling protocol. Resv Style Reservation style. Class Type Service class type. Tunnel BW Tunnel bandwidth. Reserved BW Reserved bandwidth. Setup Priority Setup priority of LSP. Hold Priority Hold priority of LSP. Affinity Prop/Mask Affinity attribute and mask.
Field Description Tunnel Group Whether the tunnel is the primary tunnel or backup tunnel in the group. Primary Tunnel Tunnel ID of the corresponding primary tunnel. Displayed as - for a primary tunnel. Backup Tunnel Tunnel ID of the corresponding backup tunnel. Displayed as - for a backup tunnel. Group Status Status of the group. Displayed as - if no protection group is configured. display ospf mpls-te Use display ospf mpls-te to display TE LSAs in the link state database (LSDB).
Opaque Type : 1 Opaque ID : Advertising Router ID LSA : xxx.xxx.xxx.xxx Age : Length : LSA : Options LS Seq Number : CheckSum : Link Type :Point to Point / Point to Multi Point /MultiAccess Link ID : Local Interface Address : xxx.xxx.xxx.xxx Remote Interface Address : xxx.xxx.xxx.
Field Description Advertising Router ID Router ID of the node where the LSA was generated. LSA age LSA age, carried in the header of Opaque LSA. Length LSA length, carried in the header of Opaque LSA. LSA Options LSA options, carried in the header of Opaque LSA. LS Seq Number LSA sequence number, carried in the header of Opaque LSA. Checksum LSA checksum, carried in the header of Opaque LSA. Link Type Link type: point to point, point to multipoint, or multiAccess.
Traffic adjustment Interface: 100.0.0.1 (Tunnel0) Type: Forwarding Adjacency Neighbor ID: 100.0.0.2 State: Up Cost: 100 Configuration: Neighbor Ip Address: 100.0.0.2 Cost : -10 Cost Type : Relative Hold time : 10s Table 60 Command output Field Description Interface Tunnel interface address and name. Type Approach to automatic route advertisement: IGP shortcut or forwarding adjacency. Neighbor ID Remote neighbor ID. State State: up or down.
Tunnel ID Type Destination -----------------------------------------------------0x1100002 lsp 2.2.2.2 # Display statistics about tunnels. display tunnel-info statistics Tunnel Allocation Method : GLOBAL Avail Tunnel ID Value : 262144 Total Tunnel ID Allocated : 1 LSP : 1 GRE : 0 CRLSP : 0 LOCAL IFNET : 0 MPLS LOCAL IFNET : 0 Table 61 Command output Field Description Tunnel Allocation Method The way that tunnels are allocated. Avail Tunnel ID Value Available tunnel ID.
Usage guidelines IGP shortcut allows OSPF to include static LSP tunnels in SPF calculation and advertise them to OSPF neighbors. Examples # Enable IGP shortcut when the IGP protocol is OSPF. system-view [Sysname] ospf 100 [Sysname-ospf-100] enable traffic-adjustment enable traffic-adjustment advertise Use enable traffic-adjustment advertise to enable forwarding adjacency. Use undo enable traffic-adjustment advertise to disable forwarding adjacency.
Default command level 2: System level Parameters path-name: Specifies the name of an explicit path for a tunnel, a string of 1 to 31 characters. disable: Disables explicit routing. enable: Enables explicit routing. Examples # Create an explicit path named path1 and enter its view. system-view [Sysname] explicit-path path1 [Sysname-explicit-path-path1] list hop Use list hop to display information about a specific node or all nodes on the explicit path.
Default command level 2: System level Parameters ip-address1 ip-address2: Substitutes the IP address specified by the ip-address2 argument for the IP address specified by the ip-address1 argument in the explicit path. The specified IP addresses can be link IP addresses or router IDs of nodes. include: Includes the node ip-address2 on the explicit path. loose: Specifies the node ip-address2 as a loose node, which means that ip-address2 and its previous hop can be connected indirectly.
Disabling RSVP-TE in MPLS view also disables RSVP-TE on interfaces. Examples # Enable RSVP-TE on current node. system-view [Sysname] mpls [Sysname-mpls] mpls te [Sysname-mpls] mpls rsvp-te # Enable RSVP-TE on interface GigabitEthernet 2/1/1.
Examples # Enable RSVP authentication on interface GigabitEthernet 2/1/1, and configure the authentication key as userkey1 in plain text. system-view [Sysname] interface giabitethernet 2/1/1 [Sysname-GigabitEthernet2/1/1] mpls rsvp-te authentication plain userkey1 mpls rsvp-te bfd enable Use mpls rsvp-te bfd enable on an RSVP-TE enabled interface to enable BFD for link detection. Use undo mpls rsvp-te bfd enable to disable BFD on an RSVP-TE enabled interface.
Views MPLS view Default command level 2: System level Parameters number: Blockade multiplier in the range of 3 to 255. Usage guidelines Sometimes, although a reservation request does not pass admission control on some node, you might want to store the resource reservation state for it while allowing other requests to use the resources reserved for the request. In this case, the node transits to the blockade state and a blockade state block (BSB) is created on each downstream node.
[Sysname] mpls [Sysname-mpls] mpls rsvp-te dscp 56 mpls rsvp-te graceful-restart Use mpls rsvp-te graceful-restart to enable the GR capability for MPLS RSVP-TE. Use undo mpls rsvp-te graceful-restart to disable MPLS RSVP-TE GR. Syntax mpls rsvp-te graceful-restart undo mpls rsvp-te graceful-restart Default GR capability is disabled for MPLS RSVP-TE. Views MPLS view Default command level 2: System level Usage guidelines Enable RSVP-TE hello extension before enabling RSVP-TE GR.
Default command level 2: System level Usage guidelines RSVP-TE uses the hello extension mechanism to check the reachability of an RSVP neighbor. Before you enable RSVP hello extension in interface view, enable RSVP-TE in interface view and RSVP hello extension in MPLS view. Examples # Enable RSVP hello extension in MPLS view. system-view [Sysname] mpls [Sysname-mpls] mpls rsvp-te hello # Enable RSVP hello extension on interface GigabitEthernet 2/1/1.
Examples # Set the maximum number of consecutive hello losses allowed on a node to 5. system-view [Sysname] mpls [Sysname-mpls] mpls rsvp-te hello-lost 5 Related commands mpls rsvp-te timer hello mpls rsvp-te keep-multiplier Use mpls rsvp-te keep-multiplier to configure the keep multiplier, which determines the timeout time of the path state block (PSB) and reservation state block (RSB). Use undo mpls rsvp-te keep-multiplier to restore default.
Syntax mpls rsvp-te reliability undo mpls rsvp-te reliability Default The RSVP reliability mechanism is disabled. Views Interface view Default command level 2: System level Usage guidelines With RSVP reliability enabled, the device adds objects Message_ID and Message_ID_ACK into the outgoing RSVP messages. The objects will be used for RSVP message acknowledgment to improve reliability. Examples # Enable the RSVP reliability mechanism on interface GigabitEthernet 2/1/1.
[Sysname-mpls] mpls rsvp-te resvconfirm mpls rsvp-te srefresh Use mpls rsvp-te srefresh to enable summary refresh. Use undo mpls rsvp-te srefresh to restore the default. Syntax mpls rsvp-te srefresh undo mpls rsvp-te srefresh Default Summary refresh is disabled. Views Interface view Default command level 2: System level Usage guidelines Summary refresh (Srefresh) messages refresh path state and reservation state. Enabling summary refresh disables conventional time-driven state refresh.
Usage guidelines Before using this command, be sure to enable the GR capability for MPLS RSVP-TE. Examples # Set the RSVP-TE GR recovery interval to 100 seconds. system-view [Sysname] mpls [Sysname-mpls] mpls rsvp-te timer graceful-restart recovery 100 mpls rsvp-te timer graceful-restart restart Use mpls rsvp-te timer graceful-restart restart to set the RSVP-TE GR restart interval. Use undo mpls rsvp-te timer graceful-restart restart to restore the default.
Default The hello interval is 3 seconds. Views MPLS view Default command level 2: System level Parameters timevalue: Hello interval in the range of 1 to 60 seconds. Usage guidelines Before configuring this command, enable the hello mechanism in MPLS view. Examples # Set the hello interval to 5 seconds.
Related commands mpls rsvp-te keep-multiplier mpls rsvp-te timer retransmission Use mpls rsvp-te timer retransmission to enable RSVP message retransmission. Use undo mpls rsvp-te timer retransmission to restore the default. Syntax mpls rsvp-te timer retransmission { increment-value [ increment-value ] | retransmit-value [ retrans-timer-value ] } * undo mpls rsvp-te timer retransmission Default RSVP message retransmission is disabled.
Syntax mpls te undo mpls te Default MPLS TE is disabled. Views MPLS view, interface view Default command level 2: System level Usage guidelines When executed in MPLS view, the mpls te command enables MPLS TE globally and its undo form disables MPLS TE and removes all CR-LSPs. When executed in interface view, the mpls te command enables MPLS TE on an interface and its undo form disables MPLS TE and removes all CR-LSPs on the interface. Enable MPLS TE globally before you enable MPLS TE on an interface.
Default command level 2: System level Parameters properties: Link properties affinity attribute of the tunnel, a 32-bit integer in the range of 0x0 to 0xFFFFFFFF. Each affinity bit represents a property with a value of 1 or 0. mask-value: 32-bit mask comprising 0s and 1s, in the range of 0x0 to 0xFFFFFFFF. This mask is used when ANDing the link affinity attribute with the link administrative group attribute.
seconds: Automatic bandwidth adjustment/information collection interval in the range of 300 to 604800 seconds. This value cannot be less than the sampling interval configured by the mpls te timer auto-bandwidth command. max-bandwidth: Upper limit for bandwidth tuning, in the range of 1 to 32000000 kbps. min-bandwidth: Lower limit for bandwidth tuning, in the range of 1 to 32000000 kbps.
The mpls te backup command cannot be used together with the mpls te reoptimization, mpls te auto-bandwidth adjustment, and mpls te resv-style ff commands. Examples # Enable hot backup for Tunnel0. system-view [Sysname] interface tunnel 0 [Sysname-Tunnel0] mpls te backup hot-standby mpls te backup bandwidth Use mpls te backup bandwidth to configure the total bandwidth and type of LSP that the bypass tunnel can protect. Use undo mpls te backup bandwidth to remove the configuration.
Examples # Configure tunnel 0 to provide protection for LSPs of CT 0 without constraining the bandwidth to be protected. Configure tunnel 1 to provide protection for LSPs of CT 1 and protect up to 1000 kbps bandwidth.
mpls te bandwidth change thresholds Use mpls te bandwidth change thresholds to set the IGP flooding thresholds that apply when bandwidth resources are increasing and decreasing. Use undo mpls te bandwidth change thresholds to restore the default. Syntax mpls te bandwidth change thresholds { down | up } percent undo mpls te bandwidth change thresholds { down | up } Default The IGP flooding thresholds in both up and down directions are 10.
Default command level 2: System level Parameters discriminator: Specifies the discriminator values of the BFD session. local local-id: Specifies the local discriminator value of the BFD session, in the range of 1 to 4096. remote remote-id: Specifies the remote discriminator value of the BFD session, in the range of 1 to 4294967295. Usage guidelines Enable LSP verification by using the mpls lspv command first before executing the mpls te bfd enable command.
mpls te cspf Use mpls te cspf to enable CSPF. Use undo mpls te cspf to disable CSPF. Syntax mpls te cspf undo mpls te cspf Default CSPF is disabled. Views MPLS view Default command level 2: System level Usage guidelines Before enabling CSPF, enable MPLS TE in MPLS view. CSPF provides an approach to path selection in MPLS domains. You must enable CSPF to establish an MPLS TE tunnel through dynamic signaling. You must enable CSPF before configuring other CSPF related functions.
Parameters timer-interval: Value of the failed link timer, in the range of 0 to 300 seconds. The default is 10 seconds. Usage guidelines The failed link timer starts once a link goes down. If the IGP removes or modifies the link before the timer expires, CSPF updates information about the link in TEDB and stops the timer. If the IGP does not remove or modify the link before the timer expires, the state of the link in TEDB will change to up. Examples # Set the failed link timer to 50 seconds.
Related commands mpls te ds-te mode mpls te ds-te ietf te-class Use mpls te ds-te ietf te-class to configure a TE class mapping, or, the association of a TE class, CT, and preemption priority. Use undo mpls te ds-te ietf te-class to restore the default for a TE class mapping.
When using the undo mpls te ds-te ietf te-class command, make sure that the CT and preemption priority of the TE class mapping to be restored to are not those of an existing TE class mapping. After a TE class is modified, the device will notify the IGP to re-advertise the bandwidth information for all TE interfaces, and will remove and then re-establish the CR-LSPs of the TE class on all TE interfaces. Examples # Associate TE class 7, CT 2, and preemption priority 3 in the IETF mode.
Syntax mpls te failure-action teardown undo mpls te failure-action teardown Default This capability is disabled. Views Tunnel interface view Default command level 2: System level Usage guidelines With this capability configured, after BFD or periodic LSP tracert detects a failure of an RSVP-TE tunnel, if RSVP does not reestablish the RSVP-TE tunnel within a specific period of time, MPLS TE will remove the tunnel and reestablish it.
Examples # Enable FRR for tunnel interface Tunnel0, so the tunnel can use an available bypass tunnel in case the protected link or node that it traverses fails. system-view [Sysname] interface tunnel 0 [Sysname-Tunnel0] mpls te fast-reroute mpls te fast-reroute bypass-tunnel Use mpls te fast-reroute bypass-tunnel to specify a bypass tunnel for the protected interface. Use undo mpls te fast-reroute bypass-tunnel to remove the specified bypass tunnel.
Syntax mpls te igp advertise [ hold-time value ] undo mpls te igp advertise Default IGP does not advertise MPLS TE tunnels to IGP neighbors. Views Tunnel interface view Default command level 2: System level Parameters hold-time value: Sets the delay that IGP waits to notify IGP neighbors of the down event of the TE tunnel, in the range of 0 to 4294967295 milliseconds. The default is 0 milliseconds.
Usage guidelines You can configure a metric, either absolute or relative, for a tunnel to be used as an IGP shortcut or a forwarding adjacency. If it is absolute, the metric is directly used for path calculation. If it is relative, the cost of the corresponding IGP path must be added to the metric for path calculation. Examples # Assign MPLS TE tunnel 0 a relative metric of –1 for path calculation in IGP shortcut or forwarding adjacency mechanism.
Syntax mpls te link administrative group value undo mpls te link administrative group Default The link administrative group attribute is 0x00000000. Views Interface view Default command level 2: System level Parameters value: Link administrative group attribute, in the range of 0x00000000 to 0xFFFFFFFF. It is a set of 32 link properties. Each bit represents a property with a value of 0 or 1.
Examples # Configure the node to perform loop detection when setting up tunnel 0. system-view [Sysname] interface tunnel 0 [Sysname-Tunnel0] mpls te loop-detection mpls te max-link-bandwidth Use mpls te max-link-bandwidth to configure the maximum bandwidth for the link to forward MPLS TE traffic. Use undo mpls te max-link-bandwidth to restore the default.
Default Both BC 0 and BC 1 is 0 kbps. Views Interface view Default command level 2: System level Parameters bandwidth-value: Maximum reservable bandwidth of the link, or, the value of BC 0. It is in the range of 1 to 32000000 kbps. bc1 bc1-bandwidth: Value of BC 1, in the range of 1 to 32000000 kbps.
bc1 bc1-bandwidth: Value of BC 1, in the range of 1 to 32000000, in kbps. By default, BC 1 is 0. bc2 bc2-bandwidth: Value of BC 2, in the range of 1 to 32000000, in kbps. By default, BC 2 is 0. bc3 bc3-bandwidth: Value of BC 3, in the range of 1 to 32000000, in kbps. By default, BC 3 is 0. Usage guidelines The maximum reservable bandwidth of the link must be lower than or equal to the maximum bandwidth of the link. Each BC must be lower than or equal to the maximum reservable bandwidth of the link.
Usage guidelines The value of BC 0 (bandwidth-value) must be greater than or equal to that of BC 1 (bc1-bandwidth). The value of BC 1 (bc1-bandwidth) must be greater than or equal to that of BC 2 (bc2-bandwidth). The value of BC 2 (bc2-bandwidth) must be greater than or equal to that of BC 3 (bc3-bandwidth). The bandwidth constraints configured by this command are used only for MPLS TE traffic. Examples # Set BC 0 in IETF RDM model to 500 kbps, BC 1 to 400 kbps, BC 2 to 300 kbps, and BC 3 to 100 kbps.
Syntax mpls te path { dynamic | explicit-path path-name } preference value undo mpls te path { dynamic | explicit-path path-name } Default A tunnel uses the dynamically calculated path. Views Tunnel interface view Default command level 2: System level Parameters dynamic: Uses the path that is dynamically calculated. explicit-path path-name: Uses an existing explicit path. The pathname argument is a case-insensitive string of 1 to 31 characters. preference value: Specifies the preference of the path.
In tunnel interface view, no link metric type is specified for path calculation. Views MPLS view, tunnel interface view Default command level 2: System level Parameters igp: Uses the IGP metric for tunnel path calculation. te: Uses the TE metric for tunnel path calculation. Usage guidelines A tunnel prefers the link metric type specified in the tunnel interface view. If no link metric type is specified in tunnel interface view, the configuration in MPLS view is used.
Default command level 2: System level Parameters -a source-ip: Specifies the source IP address of MPLS Echo Request messages. By default, the MPLS LSR ID is used as the source address of MPLS Echo Request messages. -exp exp-value: Specifies the EXP value of the label. The value range for the exp-value argument is 0 to 7, and the default is 0. -h ttl-value: Specifies the maximum TTL value for MPLS Echo Request messages. The value range for the ttl-number argument is 1 to 255, and the default is 30.
Default command level 2: System level Parameters setup-priority: Setup priority of the tunnel, in the range of 0 to 7. A lower numerical number indicates a higher priority. hold-priority: Holding priority of the tunnel, in the range of 0 to 7. A lower numerical number indicates a higher priority. If not configured, it is the same as the setup priority.
Use undo mpls te reoptimization to disable reoptimization on the tunnel. Syntax mpls te reoptimization [ frequency seconds ] undo mpls te reoptimization Default Reoptimization is disabled. Views Tunnel interface view Default command level 2: System level Parameters frequency seconds: Specifies reoptimization frequency in the range of 1 to 604800 seconds. The default is 3600 seconds, or 1 hour.
Syntax mpls te resv-style { ff | se } undo mpls te resv-style Default The resource reservation style is SE. Views Tunnel interface view Default command level 2: System level Parameters ff: Sets the resource reservation style to fixed filter (FF). se: Sets the resource reservation style to shared explicit (SE). Usage guidelines You can configure FF and SE only when the signaling protocol is set to RSVP-TE. Examples # Adopt the FF reservation style when setting up the CR-LSP tunnel for TE tunnel 0.
Examples # Set the maximum number of tunnel setup retries to 20. system-view [Sysname] interface tunnel 0 [Sysname-Tunnel0] mpls te retry 20 Related commands mpls te timer retry mpls te route-pinning Use mpls te route-pinning to enable route pinning. Use undo mpls te route-pinning to restore the default. Syntax mpls te route-pinning undo mpls te route-pinning Default Route pinning is disabled.
Default command level 2: System level Parameters rsvp-te: Sets the signaling protocol for MPLS TE tunnel establishment to RSVP-TE. crldp: Sets the signaling protocol for MPLS TE tunnel establishment to CR-LDP. static: Sets up the tunnel using a static CR-LSP. Usage guidelines To use RSVP-TE as the signaling protocol for setting up the MPLS TE tunnel, you must enable both MPLS TE and RSVP-TE on each interface for the tunnel to use.
The IETF DS-TE supports only random path selection. Examples # Configure tunnels to use the paths with the least bandwidth usage ratio. system-view [Sysname] mpls [Sysname-mpls] mpls te tie-breaking least-fill # Configure tunnel 0 to use the path with the least bandwidth usage ratio.
mpls te timer fast-reroute Use mpls te timer fast-reroute to set the FRR polling timer. Use undo mpls te timer fast-reroute to restore the default setting. Syntax mpls te timer fast-reroute [ seconds ] undo mpls te timer fast-reroute Default The FRR polling timer is 300 seconds. Views MPLS view Default command level 2: System level Parameters seconds: FRR polling timer setting for the point of local repair (PLR) to poll available bypass tunnels for the best one.
Parameters Interval: Interval for advertising bandwidth, in the range of 0 to 3600, in seconds. Usage guidelines The interval specified by this command is that at which the system will periodically advertise interface bandwidth if the bandwidth changes are within the specified threshold. To set the interval to 0 means to disable the bandwidth advertisement function. The minimal valid interval is 30 seconds. If you set the interval to a value less than 30, the system takes 30 seconds as the interval.
mpls te tunnel-id Use mpls te tunnel-id to configure the tunnel ID. Syntax mpls te tunnel-id tunnel-id Views Tunnel interface view Default command level 2: System level Parameters tunnel-id: Specifies a tunnel ID. For the value range, see the matrix table in the Usage guidelines. The value range for the tunnel-id argument is 0 to 1024. Usage guidelines Configure the tunnel ID before issuing the mpls te commit command for the first time. Otherwise, the tunnel cannot be created.
Parameters acl acl-number: Configures the MPLS TE tunnel to forward only VPN traffic that matches the specified ACL. The ACL number is in the range of 3000 to 3999. vpn-instance vpn-instance-name: Configures the MPLS TE tunnel to forward only traffic of the specified VPN. The vpn-instance-name argument specifies an MPLS L3VPN by its instance name, a case-sensitive string of 1 to 31 characters.
Usage guidelines For an OSPF area to support the MPLS TE capability, its OSPF process must be available with the opaque LSA capability. Examples # Enable the MPLS TE capability in OSPF area 1. system-view [Sysname] ospf 100 [Sysname-ospf-100] area 1 [Sysname-ospf-100-area-0.0.0.1] mpls-te enable Related commands opaque-capability next hop Use next hop to define a node on the explicit path.
Related commands delete hop opaque-capability Use opaque-capability to enable the opaque LSA capability for the OSPF process to generate and receive from its neighbors Opaque LSAs. Use undo opaque-capability to restore the default. Syntax opaque-capability enable undo opaque-capability Default The opaque LSA capability of OSPF is disabled. Views OSPF view Default command level 2: System level Parameters enable: Enables the opaque LSA capability. Examples # Enable the opaque LSA capability of OSPF.
-exp exp-value: Specifies the EXP value for the Echo Request messages. The value range for the exp-value argument is 0 to 7, and the default is 0. -h ttl-value: Specifies the TTL value for the Echo Request messages. The value range for the ttl-value argument is 1 to 255, and the default is 255. -m wait-time: Specifies the interval for sending Echo Request messages. The value range for the wait-time argument is 1 to 10000 milliseconds, and the default is 200 milliseconds.
interface: Clears statistics about RSVP-TE for all interfaces. interface interface-type interface-number: Specifies an interface by its type and number. If an interface is specified, the command clears the statistics about RSVP-TE for the interface. Examples # Clear statistics about global RSVP-TE. reset mpls rsvp-te statistics global reset mpls te auto-bandwidth adjustment timers Use reset mpls te auto-bandwidth adjustment timers to reset the automatic bandwidth adjustment function.
incoming-interface interface-type interface-number: Specifies the incoming interface. in-label in-label-value: Specifies the incoming label, which can be a value of 0, 3, or 16 through 1023. bandwidth: Specifies the class type (CT) for static CR-LSP traffic. ct0: Specifies CT 0 for static CR-LSP traffic. ct1: Specifies CT 1 for static CR-LSP traffic. ct2: Specifies CT 2 for static CR-LSP traffic. ct3: Specifies CT 3 for static CR-LSP traffic.
nexthop next-hop-addr: Specifies the next hop address. outgoing-interface interface-type interface-number: Specifies an outgoing interface for the static CR-LSP. out-label out-label-value: Specifies the outgoing label, which can be a value of 0, 3, or 16 through 1023. bandwidth: Specifies the class type (CT) for static CR-LSP traffic. ct0: Specifies CT 0 for static CR-LSP traffic. ct1: Specifies CT 1 for static CR-LSP traffic. ct2: Specifies CT 2 for static CR-LSP traffic.
in-label in-label-value: Specifies the incoming label in the range of 16 to 1023. nexthop next-hop-addr: Specifies the next hop address. outgoing-interface interface-type interface-number: Specifies an outgoing interface for the static CR-LSP. out-label out-label-value: Specifies the outgoing label, which can be a value of 0, 3, or 16 through 1023. bandwidth: Specifies the class type (CT) for static CR-LSP traffic. ct0: Specifies CT 0 for static CR-LSP traffic. ct1: Specifies CT 1 for static CR-LSP traffic.
Examples # Enable the device to collect statistics on the RSVP-TE tunnel whose ingress node's LSR ID is 2.2.2.2 and tunnel ID is 100. system-view [Sysname] mpls [Sysname-mpls] statistics te 2.2.2.2 100 Related commands • display mpls statistics lsp • display mpls statistics lsp in-label • display mpls statistics tunnel te-set-subtlv Use te-set-subtlv to configure the sub-TLVs carrying the DS-TE parameters.
Related commands display isis traffic-eng sub-tlvs tracert lsp te Use tracert lsp te to locate errors of MPLS TE tunnels. Syntax tracert lsp [ -a source-ip | -exp exp-value | -h ttl-value | -r reply-mode |-t time-out ] * te interface-type interface-number Views Any view Default command level 0: Visit level Parameters -a source-ip: Specifies the source IP address of the Echo Request messages. -exp exp-value: Specifies the EXP value for the Echo Request messages.
traffic-eng Use traffic-eng to enable IS-IS TE. Use undo traffic-eng to restore the default. Syntax traffic-eng [ level-1 | level-1-2 | level-2 ] undo traffic-eng [ level-1 | level-1-2 | level-2 ] Default IS-IS TE is disabled. Views IS-IS view Default command level 2: System level Parameters level-1: Enables Level-1 IS-IS TE. level-1-2: Enables Level-1-2 IS-IS TE. level-2: Enables Level-2 IS-IS TE. NOTE: If no level is specified, IS-IS TE applies to Level-1-2.
MPLS L2VPN configuration commands ccc interface in-label out-label Use ccc interface in-label out-label to create a remote Circuit Cross Connect (CCC) connection between CEs connected to different PEs. Use undo ccc to delete a CCC connection.
example, a link connecting to a Layer 3 Ethernet interface, VLAN interface, or Layer 3 aggregate interface, you must use the nexthop keyword to specify the IP address of the next hop. Examples # Create a remote CCC connection from CEA to CEB, setting the incoming interface to that connecting CEA, the outgoing interface to that connecting the P router, the incoming label to 100, and the outgoing label to 200.
Syntax ce ce-name [ id ce-id [ range ce-range ] [ default-offset default-offset ] ] undo ce ce-name Views MPLS L2VPN view, MPLS L2VPN CE view Default command level 2: System level Parameters ce-name: Specifies the name that uniquely identifies a CE in the current VPN of the current PE, a case-insensitive string of 1 to 20 characters that cannot include hyphens (-). id ce-id: Specifies an ID for the CE in the VPN. The value range for the ce-id argument varies by device model.
interface interface-type interface-number: Specifies the interface connecting the local CE. The encapsulation type must be same as that of the VPN. VLAN interfaces are not supported. tunnel-policy tunnel-policy-name: Specifies a tunneling policy for the virtual circuit (VC), a string of 1 to 19 characters. Usage guidelines When creating a Kompella connection on a PE, you must specify the ID of the peer CE and the PE's interface connected to the local CE.
32-bit AS number:16-bit user-defined number, such as 65536:1. In this format, the minimum value of the AS number is 65536. • ce-id ce-id: Specifies the ID of the peer CE, in the range of 0 to 499. label-offset label-offset: Specifies the label offset in the range of 0 to 65535. |: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.
3.3.3.9 4 100 0 0 0 0 00:01:07 Active Table 65 Command output Field Description BGP local router ID ID of the local BGP router. Peers in established state Number of peers with BGP sessions in the state of established. Peer IP address of the peer. V BGP version that the peer is using. AS AS number. MsgRcvd Number of messages received. MsgSent Number of messages sent. OutQ Number of messages waiting to be sent to the peer. PrefRcv Number of prefixes received.
Table 66 Command output Field Description Peer IP address of the peer. Local IP address of the local router. Type BGP type. BGP current state Current status of the BGP session: Idle, Connect, Active, OpenSent, OpenConfirm, and Established. BGP current event Current event of the BGP session. BGP last state Last status of the BGP session. Port Ports used by the BGP session, one is local or the other remote. Configured Timers locally configured.
Table 67 Command output Field Description Route origin codes: • i – IGP—The network layer reachability information is from within the AS. Origin codes • e – EGP—The network layer reachability information is learned through EGP. • ? – incomplete—The network layer reachability information is learned through other ways. bgp.l2vpn Number of remote CEs in the BGP L2VPN. CE ID CE number in the VPN. nexthop IP address of the next hop. pref Preference. as-path AS-PATH of the route.
132097 up 132098 down 132099 down 132100 down 132101 down 132102 down 132103 down 132104 down 132105 down Table 69 Command output Field Description Route origin codes: • i – IGP—The network layer reachability information is from within the AS. Origin codes • e – EGP—The network layer reachability information is learned through EGP. • ? – incomplete—The network layer reachability information is learned through other ways. nexthop IP address of the next hop. pref Preference.
|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide. begin: Displays the first line that matches the specified regular expression and all lines that follow. exclude: Displays all lines that do not match the specified regular expression. include: Displays all lines that match the specified regular expression. regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.
Field Description Remote ccc vc Number of remote CCC connections, and number of remote CCC connections in up state. Name Name of the CCC connection. Type Type of the CCC connection. State Status of the CCC connection. Intf Interface of the CCC connection, and the interface state. In-label Incoming label. Out-label Outgoing label. Nexthop IP address of the next hop.
Usage guidelines This command does not display the interface information for the VCs created for service instances. Examples # Display interface information for all types of VCs.
Field Description State Status of the interface. VC Type Implementation mode of the VC: CCC, Martini (LDP-VC), Kompella (BGP-VC), or SVC (static-VC). display mpls l2vc Use display mpls l2vc to display information about Martini VCs configured on the device.
Table 72 Command output Field Description Total ldp vc Total number of Martini VCs. Transport VC ID Remote VC ID. Client Intf Interface connected with the CE. # Display information about the Martini VC configured using service instance 100 on interface Ten-GigabitEthernet 2/0/1. display mpls l2vc interface Ten-GigabitEthernet 2/0/1 service-instance 100 ***VC ID : 10000000 VC State : up Destination : 1.1.1.
Tunnel Policy : - Tunnel Type : lsp Tunnel ID : 0x220020 Table 73 Command output Field Description VC ID Remote VC ID. VC State Status of the VC. Destination Destination IP address. CEM Class CEM class referenced by the interface. Jitter Buffer Size In milliseconds. Payload Size Size of the payload of a packet, in bytes. Idle Code Padding string to be used in case of packet loss. Client Intf Interface connected to the CE. Local Group ID Local VC group ID.
display mpls l2vpn Use display mpls l2vpn to display information about L2VPNs configured on a PE. Syntax display mpls l2vpn [ export-route-target-list | import-route-target-list | vpn-name vpn-name [ local-ce | remote-ce ] ] [ | { begin | exclude | include } regular-expression ] Views Any view Default command level 1: Monitor level Parameters export-route-target-list: Displays the export route target list. import-route-target-list: Displays the import route target list.
Table 76 Command output Field Description VPN Number Number of created VPNs. vpn-name Name of the MPLS L2VPN. encap-type VC type. mtu Maximum transmission unit. ce(L) Number of local CEs. ce(R) Number of remote CEs. # Display information about L2VPN vpn1.
Field Description LB Label block, including the label base, label-block offset, and label range. # Display information about remote CEs of L2VPN vpn1. display mpls l2vpn vpn-name vpn1 remote-ce no. ce-id peer-id route-distinguisher LB 1 4 100:1 132096/0/10 3.3.3.9 Table 79 Command output Field Description no Sequence number. ce-id CE ID. peer-id IP address of the peer. LB Label block.
begin: Displays the first line that matches the specified regular expression and all lines that follow. exclude: Displays all lines that do not match the specified regular expression. include: Displays all lines that match the specified regular expression. regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters. Usage guidelines If you do not specify any parameter, the command displays information about all Kompella VCs.
For more information about the output fields of the command, see Table 80. # Display information about Kompella VCs on interface Serial 2/1/0. display mpls l2vpn connection interface Serial 2/1/0 ***Conn-type : remote Local vc state : up Remote vc state : up Local ce-id : 1 Local ce name : ce1 Remote ce-id : 4 Intf(state,encap) : Serial2/1/0 (up,ppp) Peer id : 3.3.3.
Table 82 Command output Field Description connections Connection statistics, including the number of connections in up state, the number of connections in down state, the number of local connections, the number of remote connections, and the number of unknown connections. No. Sequence number. vpn-name Name of the MPLS L2VPN. local-num Number of local connections. remote-num Number of remote connections. unknown-num Number of unknown connections. up-num Number of connections that are up.
begin: Displays the first line that matches the specified regular expression and all lines that follow. exclude: Displays all lines that do not match the specified regular expression. include: Displays all lines that match the specified regular expression. regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.
Field Description Number of bytes received on the AC. InBytes This field is displayed only when inbound traffic statistics is enabled for the service instance. Number of bytes sent by the AC. OutBytes This field is displayed only when outbound traffic statistics is enabled for the service instance. display mpls l2vpn fib pw vpws Use display mpls l2vpn fib pw vpws to display pseudowire (PW) entry information for the MPLS L2VPN.
Usage guidelines • If you specify an interface but do not specify a service instance, the command displays the PW entries of the VCs created on the Layer 3 interface. • If you specify both an interface and a service instance, the command displays the PW entries of the VCs created for the service instance on the Layer 2 interface. • If you do not specify any parameter, the command displays the PW entries of all VCs. Examples # Display PW information for the MPLS L2VPN.
Packets received : 0 Receives discarded : 0 Packets sent : 0 Sends discarded : 0 Tunnel ID : 0xd2000(Done) GRCount:2 Backup PW In VC Label : 1216 Out VC Label : 3760 Packets received : 0 Receives discarded : 0 Packets sent : 0 Sends discarded : 0 Tunnel ID : 0xd2000(Done) SIG In VC Label : 1217 SIG Out VC Label : 3761 Packets received : 0 Receives discarded : 0 Packets sent : 0 Sends discarded : 0 Tunnel ID : 0xd2000(Done) GRCount:2 GRCount:2 Table 85 Command output F
Field Description Tunnel ID Public tunnel ID and entry state of data packets. The entry state can be Done or Waiting. GRCount: Number of times that GR occurs. SIG In VC Label Incoming VC label of the signaling packets. SIG Out VC Label Outgoing VC label of the signaling packets. Packets received Number of signaling packets received by the PW. Receives discarded Number of incoming signaling packets dropped by the PW. Packets sent Number of signaling packets sent by the PW.
regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters. Usage guidelines If you do not specify an interface or a service instance, this command displays the brief SVC information. Otherwise, it displays the detailed SVC information. Examples # Display brief information about all static VCs created on the device.
Tunnel Type : lsp Tunnel ID : 0x226013 Table 87 Command output Field Description CE-interface Interface connected to the CE. CEM Class CEM class referenced by the interface. Jitter Buffer Size Jitter buffer size, in milliseconds. Payload Size Size of the payload of a packet, in bytes. Idle Code Padding string to be used in case of packet loss. VC State Data VC and signaling VC state: up, down, or blocked. Destination Destination IP address of the VC.
If you specify a PW class, the output of the display command includes an additional field to show the number of times the PW class has been referenced. Examples # Display information about all PW classes. display pw-class Total 3 PW-class(es) PW-class name Transport mode Tunnel policy 1234 Ethernet abc 1025 VLAN abc 1026 VLAN - # Display information about the PW class named 1234.
exclude: Displays all lines that do not match the specified regular expression. include: Displays all lines that match the specified regular expression. regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters. Usage guidelines This command is supported only on routers with SAP-4EXPs. Examples # Display information about service instance 100 created on Ten-GigabitEthernet 1/0/1.
vlan-id: Specifies a VLAN ID in the range of 1 to 4094. port-based: Matches packets by port. all: Specifies all VLANs. tagged: Matches tagged packets. untagged: Matches untagged packets. Usage guidelines This command is supported only on routers with SAP-4EXPs. The packet matching rule you configured overwrites the previous configuration, if any.
[Sysname] l2vpn [Sysname-l2vpn] l2vpn-family Use l2vpn-family to enter BGP L2VPN address family view. Use undo l2vpn-family to delete all configurations for the BGP L2VPN address family. For information about BGP L2VPN address family view, see Layer 3—IP Routing Configuration Guide. Syntax l2vpn-family undo l2vpn-family Views BGP view Default command level 2: System level Examples # Enter BGP L2VPN address family view.
no-control-word: Disables the control word function. vlan: Specifies the VC type as VLAN. tunnel-policy tunnel-policy-name: Specifies the tunneling policy for the VC. The tunneling policy name is a case-insensitive string of 1 to 19 characters. backup-peer ip-address vcid: Specifies the IP address of the backup VC’s peer PE and the VC ID of the backup VC. The value range for the VC ID is 1 to 4294967295. backup-tunnel-policy tunnel-policy-name: Specifies the tunneling policy for the backup VC.
Default command level 2: System level Usage guidelines This command cannot be configured on VLAN interfaces. This command applies only to Martini VCs create by using the mpls l2vc command. You can use this command to manage traffic on the network. After you execute this command, if the VC has an available primary or backup VC, the device switches traffic from the VC to the primary or backup VC. Otherwise, the device does not switch traffic.
Use undo mpls l2vpn vpn-name to delete a VPN. Syntax mpls l2vpn vpn-name [ encapsulation { atm-aal5 | ethernet | fr | hdlc | ppp | vlan } [ control-word | no-control-word ] ] undo mpls l2vpn vpn-name Views System view, MPLS L2VPN view Default command level 2: System level Parameters vpn-name: Specifies a name for the L2VPN, a case-insensitive string of 1 to 31 characters that cannot contain hyphens (-). The name uniquely identifies an L2VPN on a PE. encapsulation: Specifies the VC type.
mpls static-l2vc (for primary-backup SVCs) Use mpls static-l2vc to create a primary static VC and a backup static VC on a Layer 3 interface, and enter static-L2VC view. Use undo mpls static-l2vc to delete the static VCs on the interface.
If the AC link type is Ethernet, the VC type can be Ethernet or VLAN. The device allows you to specify the VC type only for Layer 3 Ethernet interfaces/subinterfaces and Layer 3 virtual Ethernet interfaces/subinterfaces. When not specified, the VC type is Ethernet on Layer 3 Ethernet interfaces and Layer 3 virtual Ethernet interfaces, and is VLAN on Layer 3 Ethernet subinterfaces and Layer 3 virtual Ethernet subinterfaces.
If you do not specify a tunneling policy, or if you specify a nonexistent tunneling policy, the default policy is used for the VC. The default tunneling policy selects only one tunnel in this order: LSP tunnel, GRE tunnel, CR-LSP tunnel. For information about how to configure a tunneling policy, see MPLS Configuration Guide. Only L2VPNs that use encapsulation types of PPP, HDLC, FR DLCI, FR port mode and ATM AAL5 transparent transport support the control word function.
Use undo mtu to restore the default. Syntax mtu mtu undo mtu Default The MPLS L2VPN MTU is 1500. Views MPLS L2VPN view Default command level 2: System level Parameters mtu-value: Specifies the MTU for the L2VPN, in the range of 128 to 1500. Usage guidelines HP does not recommends not using the mtu command, because it affects only parameter negotiations between PEs and does not instruct traffic forwarding. Examples # Set the MPLS L2VPN MTU to 1000.
Usage guidelines To create multiple VCs with the same attributes (such as VC type and VC tunneling policy), you do not need to configure the attributes one by one for each VC. Instead, you can create a PW class, configure VC attributes in the PW class, and then reference the PW class in each VC. Examples # Create PW class pw100 and enter its view. system-view [Sysname] pw-class pw100 [Sysname-pw-pw100] pw-tunnel-policy Use pw-tunnel-policy to specify the tunneling policy for a PW class.
Views User view Default command level 2: System level Parameters as-number: Resets L2VPN BGP sessions with the peers in the specified AS. The AS number must be in the range of 1 to 4294967295. ip-address: Resets the L2VPN BGP session to the peer with the specified IP address. all: Resets all L2VPN BGP sessions. external: Resets L2VPN EBGP sessions. internal: Resets L2VPN IBGP sessions. Examples # Reset all L2VPN BGP sessions.
You cannot change an RD directly. You can only delete the VPN and then re-create the VPN by using the new RD. Examples # Configure the RD of a VPN. system-view [Sysname] mpls l2vpn vpn1 encapsulation ppp [Sysname-mpls-l2vpn-vpn1] route-distinguisher 300:1 service-instance Use service-instance to create a service instance on the current interface and enter service instance view. Use undo service-instance to delete a service instance on the current interface.
Default No VC labels are configured for a backup VC. Views Static-L2VC view, static-xpeer view Default command level 2: System level Parameters local local-vc: Specifies the local VC label in the range of 16 to 1023. remote remote-vc: Specifies the remote VC label in the range of 16 to 1023. Usage guidelines When you configure a static VC, you must manually specify VC labels for the VC. Make sure VC labels you specify on the local device match those on the remote device.
Views Static-L2VC view, static-xpeer view Default command level 2: System level Parameters local local-vc: Specifies the local VC label in the range of 16 to 1023. remote remote-vc: Specifies the remote VC label in the range of 16 to 1023. Usage guidelines When you configure a static VC, you must manually specify VC labels for the VC. Make sure VC labels you specify on the local device match those on the remote device. Examples # Create a primary static VC and a backup static VC for service instance 1.
Parameters ethernet: Specifies the VC type as Ethernet. vlan: Specifies the VC type as VLAN mode. Examples # Configure the VC type as Ethernet. system-view [Sysname] pw-class pw100 [Sysname-pw-pw100] trans-mode ethernet vpn-target (MPLS L2VPN view) Use vpn-target to configure route targets for an MPLS L2VPN. Use undo vpn-target to remove the specified or all route targets of an MPLS L2VPN.
system-view [Sysname] mpls l2vpn vpn1 encapsulation ppp [Sysname-mpls-l2vpn-vpn1] route-distinguisher 300:1 [Sysname-mpls-l2vpn-vpn1] vpn-target 1:1 2:2 export-extcommunity [Sysname-mpls-l2vpn-vpn1] vpn-target 1.2.3.4:11 import-extcommunity xconnect peer Use xconnect peer to create Martini VCs for a service instance. Use undo xconnect peer to delete the VCs for a service instance.
revertive: Enables support for switchback. With this keyword specified, when the primary VC recovers, traffic is switched from the backup VC back to the primary VC automatically. If you do not specify this keyword, traffic will not be switched back automatically. wtr-time wtr-time: Specifies the switchback delay time. When the primary VC recovers, the device waits for the switchback delay time before switching the traffic from the backup VC back to the primary VC.
After you execute this command, if the VC has an available primary or backup VC, the device switches traffic from the VC to the primary or backup VC. Otherwise, the device does not switch traffic. Example # Assume that a primary VC and a backup VC are established for service instance 10. Switch traffic from the currently active VC to the standby VC.
tunneling policy will be used. The default tunneling policy selects only one tunnel in this order: LSP tunnel, GRE tunnel, CR-LSP tunnel. For information about configuring a tunneling policy, see MPLS Configuration Guide. revertive: Enables support for switchback. With this keyword specified, when the primary VC recovers, traffic is switched from the backup VC back to the primary VC automatically. If you do not specify this keyword, traffic will not be switched back automatically.
Default command level 2: System level Usage guidelines This command is supported only on routers with SAP-4EXPs. This command applies only to VCs created by using the xconnect static-peer command in service instance view. You can use this command to manage traffic on the network. After you execute this command, if the VC has an available primary or backup VC, the device switches traffic from the VC to the primary or backup VC. Otherwise, the device does not switch traffic.
VPLS configuration commands bandwidth Use bandwidth to set the upper speed limit of a VPLS instance. Use undo bandwidth to restore the default. Syntax bandwidth vpn-speed undo bandwidth Default The upper speed limit of a VPLS instance is 102400 kbps. Views VSI view Default command level 2: System level Parameters vpn-speed: Specifies the upper speed limit of the VPLS instance in kbps, in the range of 64 to 4194303.
Default The broadcast suppression ratio for a VPLS instance is 5. Views VSI view Default command level 2: System level Parameters ratio: Specifies the broadcast suppression ratio for the VPLS instance, in the range of 1 to 100, in percentage. Usage guidelines Together with the bandwidth command, this command defines a threshold for suppressing the broadcast traffic of the VPLS instance.
display bgp vpls Use display bgp vpls to display the VPLS information in a BGP routing table. Syntax display bgp vpls { all | group [ group-name ] | peer [ [ ip-address ] verbose ] | route-distinguisher route-distinguisher [ site-id site-id [ label-offset label-offset ] ] } [ | { begin | exclude | include } regular-expression ] Views Any view Default command level 1: Monitor level Parameters all: Specifies all VPLS information in the BGP routing table.
Field Description Local AS number Number of the local AS. Route origin codes. Valid values include: • i - IGP—The route is learned from within the AS. • e - EGP—The route is learned through EGP. • ? - incomplete—The route is learned in any other way. Origin codes BGP.VPLS Number of BGP VPLS. SITE ID ID of a site in the VPLS instance. LB Offset Label offset value. LB Size Size of the label block. LB Base Initial label of the label block. LocPref Local preference.
Routing policy configured: No routing policy is configured Table 91 Command output Field Description Peer IP address of the peer. Local IP address of the local router. Type BGP type. BGP version 4 BGP version information. remote router ID IP address of the remote router. BGP current state Current status of the BGP session. BGP current event Current event of the BGP session. BGP last state State that the BGP session was in before transitioning to the current status.
Field Description Peer Preferred Value Peer preference value. BFD Whether BFD is enabled for the peer. Routing policy configured Routing policy configured for the peer. # Display the VPLS information for RD 100:1 in the BGP routing table. display bgp vpls route-distinguisher 100:1 BGP Local Router ID : 2.2.2.9, Local AS Number : 100 Origin codes:i - IGP, e - EGP, ? - incomplete BGP.VPLS: 1 destination SITE ID LB Offset LB Size LB Base Nexthop LocPref 8 0 10 524624 3.3.3.
Table 93 Command output Field Description BGP Local router ID Router ID of the local BGP router. local AS number Number of the local AS. Route origin codes. Valid values include: Origin codes • i - IGP—The route is learned from within the AS. • e - EGP—The route is learned through EGP. • ? - incomplete—The route is learned in any other way. *Nexthop Address of the next hop. Locpref Local preference. Metric Cost value.
Views Any view Default command level 1: Monitor level Parameters vsi-name: Specifies the name of the VPLS instance, a case-insensitive string of 1 to 31 characters. Hyphens (-) are not allowed. blackhole: Specifies the black hole MAC forwarding entries. dynamic: Specifies the dynamic MAC forwarding entries. static: Specifies the static MAC forwarding entries. count: Specifies the number of MAC forwarding entries. |: Filters command output by specifying a regular expression.
Field Description AGING TIME Whether the MAC address of the VPLS instance might get aged, AGING or NOAGING. XX mac address(es) found Total number of MAC addresses in the MAC address table of the VPLS instance. Related commands • vsi • mac-address (Layer 2—LAN Switching Command Reference) display mpls l2vpn fib ac vpls Use display mpls l2vpn fib ac vpls to display the AC entry information for VPLS instances.
regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters. Usage guidelines If you specify an interface, the command displays the AC entries of the VPLS connection created on the Layer 3 interface. If you do not specify any parameter, the command displays the AC entries of all VPLS connections. Examples # Display AC entry information for all VPLS instances.
Field Description VSI Index Index of the VPLS instance. In Interface Incoming interface—the interface bound to an L2VPN. Link ID Link ID of an AC in the VPLS instance. Access Mode Access mode at the AC side. CE Type Interface encapsulation type at the AC side: PortVlan or Independent. AC Encapsulation Encapsulation VLAN information at the AC side. GR Count Number of times that GR occurs.
regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters. Examples # Display PW entry information for all VPLS instance.
Field Description VSI Name VPLS instance name. VSI Index VPLS instance index. Link ID Link ID of a PW in the VPLS instance. In VC Label Incoming VC label. Out VC Label Outgoing VC label. Local MTU Maximum transmission unit configured on the local PE. Role PW role: Main, Backup, or Normal. State PW state: Active or Standby. Dual Link ID Link ID of the other PW, which is displayed when primary and backup PWs exist in the VPLS instance. Fast Switch Group ID PW group ID.
display pw-class Total 3 PW-class(es) PW-class name Transport mode Tunnel policy 1234 Ethernet abc 1025 VLAN abc 1026 VLAN - Table 99 Command output Field Description Transport mode PW transport mode. Tunnel policy Name of the tunneling policy used by the PW class. If no tunneling policy is specified for the PW class, this field displays a hyphen (-). display vpls connection Use display vpls connection to display information about VPLS connections.
Examples # Display information about VPLS connections of VPLS instance aaa. display vpls connection vsi aaa Total 2 connection(s), connection(s): 2 up, 0 block, 0 down VSI Name: aaa Signaling: ldp, static VsiID VsiType PeerAddr InLabel OutLabel LinkID VCState 500 ethernet 1.1.1.9 1024 1024 1 up 500 ethernet 2.2.2.9 100 200 2 up Table 100 Command output Field Description VSI Name Name of the VPLS instance.
Field Description Signaling PW signaling protocol used by the VPLS instance: ldp, bgp, or static. Remote Vsi ID ID of the remote VPLS instance, displayed as double hyphens (--) for a static VPLS instance. VC State Status of the virtual circuit: up, block, or down. Encapsulation Encapsulation type of the VPLS instance: vlan, ethernet, or bgp-vpls. Group ID Displayed as double hyphens (--) for a static VPLS instance. Remote MTU Maximum transmission unit configured on the peer PE.
display vsi aaa Vsi Mem PW Encap Mtu Vsi Name Disc Type Type Value State aaa static ldp, ethernet 1500 up Table 102 Command output Field Description Vsi Name Name of the VSI. Peer discovery mechanism of the VSI: • static—The peer must be configured manually. • auto—The peer automatic discovery mechanism is Mem Disc used. PW Type PW signaling protocol, ldp, bgp, or static. Encap Type PW encapsulation type, vlan, ethernet, or bgp-vpls. Mtu Value Maximum transmission unit.
State *Peer Ip Address : up : 2.2.2.2 PW State : up Local VC Label : 1024 Remote VC Label : 1024 PW Type : label Tunnel ID : 0x320003 *Peer Ip Address : 1.1.1.1 PW State : up Local VC Label : 100 Remote VC Label : 200 PW Type : label Tunnel ID : 0xc000 # Display detailed configuration information for the VPLS instance vsi2.
Local VC Label : 36865 Remote VC Label : 76802 PW Type : label Tunnel ID : 0x350000 Table 103 Command output Field Description VSI Name Name of the VPLS instance. VSI Index Index of the VPLS instance. PW Signaling Type of the PW signaling protocol used by the VPLS instance: ldp, bgp or static. Peer discovery mechanism of the VPLS instance: Member Discovery Style • static—The peer must be specified manually. • auto—The peer automatic discovery mechanism is used.
Field Description Import vpn target Incoming routing information from the destination VPN extended community. Export vpn target Outgoing routing information to the destination VPN extended community. Interface Name Name of the Layer 2 Ethernet interface where the service instance associated with the VPLS instance resides. State Status of the Layer 2 Ethernet interface where the service instance associated with the VPLS instance resides. PW type: • label—NPW, the PW with a PE.
Table 104 Command output Field Description Vsi ID ID of the VPLS instance. Peer Router ID ID of the peer. VC Label Label of the VC. Group ID ID of the group. Vsi Type Encapsulation type of the VPLS instance. MTU Value Maximum transmission unit. Vsi Index Index of the VPLS instance. Related commands vsi dual-npe revertive Use dual-npe revertive to enable the PW switchback function and set the switchback delay time.
system-view [Sysname] vsi vpnb static [Sysname-vsi-vpnb] pwsignal static [Sysname-vsi-vpnb-static] dual-npe revertive wtr-time 5 encapsulation Use encapsulation to specify the PW encapsulation type for a VPLS instance. Syntax encapsulation { bgp-vpls | ethernet | vlan } Default The PW encapsulation type of a VPLS instance is VLAN.
Parameters vsi-name: Specifies the name of the VPLS instance, a case-insensitive string of 1 to 31 characters. Hyphens (-) are not allowed. access-mode: Specifies the access mode of the VPLS instance, which can be ethernet or vlan. If the interface bound with the VPLS instance is a Layer 3 Ethernet subinterface, the default access mode is vlan; otherwise, the default access mode is ethernet. ethernet: Specifies the access mode of Ethernet. vlan: Specifies the access mode of VLAN.
Examples # Enables MAC address learning for VPLS instance aaa. system-view [Sysname] vsi aaa [Sysname-vsi-aaa] mac-learning enable mac-table limit Use mac-table limit to specify the maximum number of MAC addresses that the device can learn for the VPLS instance. Use undo mac-table limit to restore the default. Syntax mac-table limit mac-limit-number undo mac-table limit Default The maximum number of MAC addresses that the device can learn for a VPLS instance is 16384.
Default The device forwards packets with unknown source MAC addresses after it has learned the maximum number of MAC addresses for the VPLS instance. Views VSI view Default command level 2: System level Examples # Set the maximum number of MAC addresses that the device can learn for VPLS instance aaa to 1024, and configure the device to drop packets with unknown source MAC addresses after it has learned the maximum number of MAC addresses.
multicast-restrain Use multicast-restrain to set the multicast suppression ratio for a VPLS instance. Use undo multicast-restrain to restore the default. Syntax multicast-restrain ratio undo multicast-restrain Default The multicast suppression ratio for a VPLS instance is 100%. Views VSI view Default command level 2: System level Parameters ratio: Specifies the multicast suppression ratio for the VPLS instance, in the range of 1 to 100, in percentage.
Parameters ip-address: Specifies the IP address of the remote VPLS peer PE. pw-class class-name: References a PW class by its name, a case-insensitive string of 1 to 19 characters. pw-id pw-id: Specifies the ID of the PW to the VPLS peer PE, in the range of 1 to 4294967295. The default is VSI ID. upe: Specifies that the peer PE is a UPE in the H-VPLS model. backup-peer ip-address: Specifies the IP address of the backup NPE. If you specify this parameter, you create a primary NPE and a backup NPE on the UPE.
Parameters pw-class-name: Specifies the name of the PW class, a case-insensitive string of 1 to 19 characters. Examples # Create PW class pw100 and enter its view. system-view [Sysname] pw-class pw100 [Sysname-pw-pw100] pwsignal Use pwsignal to specify the PW signaling protocol for a VPLS instance, and enter VSI-protocol view.
Default The tunneling policy specified by the tnl-policy command in VSI view is used. Views PW class view Default command level 2: System level Parameters policy-name: Specifies the name of the tunneling policy, a case-insensitive string of 1 to 19 characters. Usage guidelines If you specify a non-existent tunneling policy in the pw-tunnel-policy command, the tunneling policy specified by the tnl-policy command in VSI view will be used.
reset mac-address vsi Use reset mac-address vsi to clear the MAC address table of a specific VPLS instance or all VPLS instances. Syntax reset mac-address vsi [ vsi-name ] Views User view Default command level 1: Monitor level Parameters vsi-name: Specifies the name of a VPLS instance, a case-insensitive string of 1 to 31 characters. Hyphens (-) are not allowed. Examples # Clear the MAC address table of VPLS instance aaa.
Examples # Set the RD to 111:1. system-view [Sysname] vsi aaa [Sysname-vsi-aaa] pwsignal bgp [Sysname-vsi-aaa-bgp] route-distinguisher 111:1 shutdown (VSI view) Use shutdown to shut down the VPLS service of a VPLS instance. Use undo shutdown to restart the VPLS service of a VPLS instance. Syntax shutdown undo shutdown Default The VPLS service of a VPLS instance is started.
Parameters site-id: Specifies the ID of a site of the VPLS instance, in the range of 0 to 64. range site-range: Specifies the site range on a PE. The site-range argument is the total number of sites of a VPLS instance, in the range of 0 to 65. The default is 10. default-offset { 0 | 1 }: Specifies the default initial CE offset. It can be 0 or 1 and defaults to 0. Usage guidelines Sites of a VPLS instance use natural numbers as the site IDs. In a VPN, each site ID must be unique.
[Sysname] vsi vpn1 static [Sysname-vsi-vpn1] pwsignal static [Sysname-vsi-vpn1-static] peer 1.1.1.9 backup-peer 2.2.2.9 backup-pw-id 300 [Sysname-vsi-vpn1-static-1.1.1.9] static label local 100 remote 200 [Sysname-vsi-vpn1-static-1.1.1.9] static backup-label local 200 remote 300 static label (L2VPN peer view) Use static label to configure VC labels for a primary VC. Use undo static label to delete the VC labels configured for the primary VC.
Default No tunneling policy is specified for a VPLS instance and the default tunneling policy is used. The default tunneling policy selects only one tunnel (no load balancing) in this order: LSP tunnel, GRE tunnel, CR-LSP tunnel. Views VSI view Default command level 2: System level Parameters tunnel-policy-name: Name of the tunneling policy for the VPLS instance, a string of 1 to 19 characters without any blank space.
Usage guidelines In Ethernet mode, P-Tag is not transferred on the PW. For a packet from a CE, if it contains the service delimiter, the PE removes the service delimiter and adds a PW label and a tunnel label into the packet before forwarding the packet. Otherwise, the PE adds a PW label and a tunnel label into the packet and then forwards the packet. For a packet to be sent downstream, whether the PE adds the service delimiter into the packet depends on your configuration.
system-view [Sysname] vsi aaa [Sysname-vsi-aaa] unknown-unicast-restrain 50 vpls-family Use vpls-family to enter BGP-VPLS address family view. Syntax vpls-family Views BGP view Default command level 2: System level Examples # Enter BGP-VPLS address family view. system-view [Sysname] bgp 100 [Sysname-bgp] vpls-family [Sysname-bgp-af-vpls] vpn-target (VSI BGP view) Use vpn-target to configure one or more VPN targets for a VPLS instance.
• 32-bit AS number:16-bit user-defined number, where the AS number must be equal to or greater than 65536. For example, 65536:1. both: Uses the specified VPN targets as both import targets and export targets. The both keyword is also used when you do not specify any of both, export-extcommunity, and import-extcommunity. export-extcommunity: Uses the specified VPN targets as export targets. import-extcommunity: Uses the specified VPN targets as import targets. all: Removes all VPN targets.
To create a VSI, you must specify a globally unique name for it, and specify the peer discovery mechanism (by specifying the auto or static keyword). If you specify the peer discovery mechanism as static, you can also enable P2P for the VPLS instance as needed. Before creating a VPLS instance, enable L2VPN and MPLS L2VPN through the l2vpn command and the mpls l2vpn command. Examples # Create VPLS instance aaa, and specify the peer discovery mechanism as static.
# Set the VSI ID to 200 for the static VPLS instance bbb. system-view [Sysname] vsi aaa [Sysname-vsi-aaa] pwsignal static [Sysname-vsi-aaa-static] vsi-id 200 xconnect vsi Use xconnect vsi to associate a VPLS instance with the service instance on a specific interface. Use undo xconnect vsi to remove the association. Syntax xconnect vsi vsi-name [ access-mode { ethernet | vlan } ] * undo xconnect vsi Default A service instance is not associated with any VPLS instance.
[Sysname-GigabitEthernet1/0/2-srv200] encapsulation s-vid 200 [Sysname-GigabitEthernet1/0/2-srv200] xconnect vsi vsi200 Related commands • service-instance • encapsulation 272
MPLS L3VPN configuration commands For information about the BGP-L2VPN address family and the VPLS address family, see MPLS Configuration Guide. default local-preference (BGP-VPNv4 subaddress family view) Use default local-preference to set the default value of the local preference. Use undo default local-preference to restore the default. Syntax default local-preference value undo default local-preference Default The default value of the local preference is 100.
Default The default system MED value is 0. Views BGP-VPNv4 subaddress family view Default command level 2: System level Parameters med-value: Specifies the default value of the Multi-Exit-Discriminator (MED), in the range of 0 to 4294967295. Usage guidelines With other criteria the same, the system selects the route with a smaller MED value as the AS external route. Examples # Set the default MED to 10 in BGP-VPNv4 subaddress family view.
display bgp vpnv4 all routing-table Use display bgp vpnv4 all routing-table to display all BGP VPNv4 routing information.
different-origin-as: Displays information about routes with different AS origins. peer ip-address: Specifies a peer by its IP address. advertised-routes: Specifies the routing information sent to the specified peer. received-routes: Specifies the routing information received from the specified peer. statistic: Displays BGP VPNv4 route statistics. |: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.
Route Distinguisher: 100:1 Paths: 1 available, 0 best, 1 VPN best BGP routing table entry information of 1.1.1.2/32: Label information (Received/Applied): 1034/NULL From : 1.1.1.9 (1.1.1.9) Original nexthop: 1.1.1.
Field Description Route origin codes. Valid values: Origin • i - IGP—learned from within the AS. • e - EGP—learned through EGP. • ? - incomplete—learned in any other way. Total number of routes from all PE Total number of VPNv4 routes from all PEs. Network Network address. NextHop Address of the next hop. In/Out Label Incoming and outgoing labels. MED Metric associated with the destination network. LocPrf Local preference value.
Default command level 1: Monitor level Parameters all: Specifies all VPNv4 peers. vpn-instance vpn-instance-name: Displays information about the specified VPN. The vpn-instance-name argument specifies the instance name of an MPLS L3VPN, a case-sensitive string of 1 to 31 characters. group-name: Specifies the name of the peer group, a case-sensitive string of 1 to 47 characters. |: Filters command output by specifying a regular expression.
Field Description Threshold Threshold for warning. When the percentage of the number of the received route prefixes to the maximum number of routes supported reaches this value, the device generates a prompt. Configured hold timer value Setting of the hold timer. Keepalive timer value Keepalive interval. Optional capabilities Optional extended capabilities enabled for the peer group. ORF advertise capability Outbound Route Filtering (ORF) capability supported by the peer group.
Parameters all: Specifies all VPNv4 peers. vpn-instance vpn-instance-name: Displays information about the specified VPN. The vpn-instance-name argument specifies the instance name of an MPLS L3VPN, a case-sensitive string of 1 to 31 characters. |: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide. begin: Displays the first line that matches the specified regular expression and all lines that follow.
as-regular-expression: Regular expression for filtering the AS path information to be displayed. |: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide. begin: Displays the first line that matches the specified regular expression and all lines that follow. exclude: Displays all lines that do not match the specified regular expression. include: Displays all lines that match the specified regular expression.
Default command level 1: Monitor level Parameters all: Specifies all VPNv4 peers. vpn-instance vpn-instance-name: Displays information about the specified VPN. The vpn-instance-name argument specifies the instance name of an MPLS L3VPN, a case-sensitive string of 1 to 31 characters. group-name: Specifies the name of the peer group, a case-sensitive string of 1 to 47 characters. log-info: Displays log information. ip-address: Specifies the IP address of the peer. verbose: Displays detailed information.
display bgp vpnv4 vpn-instance vpn1 peer verbose Peer: 10.1.1.1 Local: 2.2.2.2 Type: EBGP link BGP version 4, remote router ID 10.1.1.
Field Description Configured Settings of the local timers, including the active hold interval and keepalive interval. Received Received active hold interval. Negotiated Negotiated active hold interval. Peer optional capabilities Optional capabilities of the peer. Peer support bgp multi-protocol extended The peer supports multiprotocol extension. Peer support bgp route refresh capability The peer supports route refresh capability. Address family IPv4 Unicast IPv4 unicast family capability.
# Display all BGP VPNv4 peer information. display bgp vpnv4 all peer BGP local router ID : 2.2.2.2 Local AS number : 100 Total number of peers : 1 Peer AS 1.1.1.1 100 MsgRcvd 51 Peers in established state : 1 MsgSent OutQ 64 PrefRcv 0 2 Up/Down State 00:45:16 Established Table 111 Command output Field Description Peer IP address of the peer. AS AS number. MsgRcvd Number of messages received. MsgSent Number of messages sent.
Negotiated: send Connect-interface has been configured Peer Preferred Value: 0 BFD: Enabled Routing policy configured: No routing policy is configured Table 112 Command output Field Description Peer IP address of the peer. Local IP address of the local router. Type BGP type. BGP version Version of BGP that the peer runs. remote router ID Router ID of the remote router. BGP current state Current status of BGP. Up for Duration since the peer is established.
Field Description Indicates whether the local device supports sending and receiving Route-refresh packets with ORF information. The value can be: • both—Supports sending and receiving Route-refresh messages with ORF information. Local • send—Supports sending Route-refresh messages with ORF information. • receive—Supports receiving Route-refresh messages with ORF information. ORF capability negotiated by the local and remote peers.
Field Description Date Date when the notification message is sent or received. Time Time when the notification message is sent or received. Connection state of the peer: State • Up—The BGP session is in the Established state. • Down—The BGP session has been cut down. Notification Notification message. Error: Notification message error code, which specifies the error type. Error/SubError SubError: Notification message's error subcode, which specifies detailed information about the error.
20 deny 2.1.1.0/24 26 32 Table 114 Command output Field Description ORF ip-prefix entries Number of ORF IP prefix entries. index Index of the IP prefix. rule Matching rule of the IP prefix. ge greater-equal, which means the mask length is greater than or equal to the displayed value. le less-equal, which means the mask length is less than or equal to the displayed value.
no-export-subconfed: A route with this attribute is not advertised out of the local AS or to the other sub-ASs in the confederation. whole-match: Performs exact matching. community-list: Displays routing information for the specified BGP community list. basic-community-list-number: Specifies a basic community list number in the range of 1 to 99. comm-list-name: Specifies the name of a community attribute list, a string of 1 to 31 characters that contains at least one non-digit character.
display bgp vpnv4 route-distinguisher 100:1 routing-table 1.1.1.2 32 BGP local router ID : 3.3.3.9 Local AS number : 100 Route Distinguisher: 100:1 Paths: 1 available, 0 best, 1 VPN best BGP routing table entry information of 1.1.1.2/32: Label information (Received/Applied): 1034/NULL From : 1.1.1.9 (1.1.1.9) Original nexthop: 1.1.1.
Field Description Counts of routes, including: • available—Number of available routes. • best—Number of best routes. Paths Route label information: Label information • Received—Received label information. • Applied—Locally generated label information. Ext-Community Extended community attribute. AS-path The route's AS path attribute (AS_PATH), which records all ASs the route has passed to avoid route loops. Attribute value BGP routing attribute information. localpref Local preference value.
Field Description NextHop Address of the next hop. In/Out Label Incoming/outgoing label. MED Metric associated with the destination network. LocPrf Local preference value. Total Number of Routes Total number of routes of the specified VPN instance. Related commands route-distinguisher display bgp vpnv4 routing-table label Use display bgp vpnv4 routing-table label to display information about labeled routes in the BGP routing table.
Route Distinguisher: 100:1 Network *^ i 123.1.1.1 NextHop In/Out Label 1.1.1.1 NULL/1024 Total routes of vpn-instance vpn1: 4 Network NextHop In/Out Label * > 10.1.1.0 0.0.0.0 1025/NULL * > 20.0.0.0 0.0.0.0 1026/NULL * >i 123.1.1.1 1.1.1.1 NULL/1024 * > 124.1.1.1 0.0.0.0 1024/NULL Table 117 Command output Field Description BGP Local router ID Router ID of the local BGP router. Status Route status codes. For valid values, see Table 105. Origin Route origin codes.
mask: Specifies the network mask, in the format of X.X.X.X. mask-length: Specifies the length of the network mask, in the range of 0 to 32. longer-prefixes: Displays each routing entry that meets the following conditions: 1. Its destination IP address ANDed with the specified prefix equals the specified destination IP address ANDed with the specified prefix. 2. Its prefix length is shorter than or equal to the specified prefix length. 3.
include: Displays all lines that match the specified regular expression. regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters. regular-expression as-regular-expression: Displays routing information matching the specified AS regular expression. Examples # Display the BGP VPNv4 routing information for VPN instance vpn1. display bgp vpnv4 vpn-instance vpn1 routing-table Total Number of Routes: 5 BGP Local router ID is 2.2.2.
Default command level 1: Monitor level Parameters vpn-instance-name: Specifies the VPN instance name, a case-sensitive string of 1 to 31 characters. acl acl-number: Displays the FIB information for the VPN instance permitted by the specified ACL. acl-number is the ACL number in the range of 2000 to 2999. If the specified ACL does not exist, the command displays all FIB information for the VPN instance.
Destination count: 2 FIB entry count: 2 Flag: U:Useable G:Gateway H:Host B:Blackhole D:Dynamic S:Static R:Relay Destination/Mask Nexthop Flag OutInterface InnerLabel Token 10.2.0.0/16 10.2.1.1 U GE2/1/1 Null Invalid 10.2.1.1/32 127.0.0.1 UH InLoop0 Null Invalid # Display the FIB information permitted by the IP prefix abc0 for VPN instance vpn1. system-view [Sysname] ip ip-prefix abc0 permit 10.2.0.
Syntax display fib vpn-instance vpn-instance-name ip-address [ mask | mask-length ] [ | { begin | exclude | include } regular-expression ] Views Any view Default command level 1: Monitor level Parameters vpn-instance-name: Specifies the VPN instance name, a case-sensitive string of 1 to 31 characters. ip-address: Specifies the destination IP address, in dotted decimal format. mask: Specifies the mask of the IP address, in dotted decimal format.
Syntax display ip vpn-instance [ instance-name vpn-instance-name ] [ | { begin | exclude | include } regular-expression ] Views Any view Default command level 1: Monitor level Parameters instance-name vpn-instance-name: Displays information about the specified VPN instance. The vpn-instance-name argument represents the VPN instance name, a case-sensitive string of 1 to 31 characters. |: Filters command output by specifying a regular expression.
Import VPN Targets : 1:1 Import Route Policy : policy3 Export Route Policy : policy2 Tunnel Policy : policy1 Maximum Routes Limit : 600 IPv6 Export VPN Targets : 1:1 IPv6 Import VPN Targets : 1:1 IPv6 Import Route Policy : policy4 IPv6 Export Route Policy : policy1 IPv6 Tunnel Policy : policy1 IPv6 Maximum Routes Limit : 600 Interfaces : GigabitEthernet2/1/1 Table 121 Command output Field Description VPN-Instance Name and ID Name and ID of the VPN instance.
Views Any view Default command level 1: Monitor view Parameters vpn-instance-name: Specifies the name of the VPN instance, a case-sensitive string of 1 to 31 characters. |: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide. begin: Displays the first line that matches the specified regular expression and all lines that follow. exclude: Displays all lines that do not match the specified regular expression.
Field Description DU Re-advertise Timer Label re-advertisement timer for DU mode. DU Re-advertise Flag Indicates whether label re-advertisement is enabled for DU mode. DU Explicit Request Indicates whether explicit request transmission is enabled for DU mode. Request Retry Flag Indicates whether request retransmission is enabled. Label Distribution Mode Label distribution control mode of the instance, Ordered or Independent. Label Retention Mode Label retention mode of the instance.
OSPF Process 100 with Router ID 100.1.1.2 Sham Link: Area NeighborId Source-IP Destination-IP State Cost 0.0.0.1 120.1.1.2 3.3.3.3 5.5.5.5 P-2-P 10 Table 123 Command output Field Description Area OSPF area to which the sham link belongs. NeighborId Router ID of the sham link neighbor. Source-IP Source IP address of the sham link. Destination-IP Destination IP address of the sham link. State Status of the sham link interface. Cost Cost of the sham link.
Related commands sham-link display tunnel-policy Use display tunnel-policy to display information about a tunneling policy or all tunneling policies. Syntax display tunnel-policy { all | policy-name tunnel-policy-name } [ | { begin | exclude | include } regular-expression ] Views Any view Default command level 1: Monitor level Parameters all: Specifies all tunneling policies. tunnel-policy-name: Specifies the name of a tunneling policy, a string of 1 to 19 characters.
# Display tunneling policy aaa. display tunnel-policy policy-name aaa Tunnel policy name : aaa Preferred paths : not configured Select-Seq : CR-LSP Load balance number : 1 Table 125 Command output Field Description Tunnel policy name Name of the tunneling policy. Preferred paths Preferred tunnels. Number Path number. Interface Tunnel interface. Tunnel type Tunnel type, GRE or TE.
Examples # Display the VPN label processing mode. display vpn label operation Pop VPN label and forward. The above output indicates that the VPN label processing mode on the current egress PE is outbound interface based forwarding. # Display the VPN label processing mode. display vpn label operation Pop VPN label and look up FIB entry. The above output indicates that the VPN label processing mode on the current egress PE is FIB based forwarding.
With no parameter specified, the undo domain-id command deletes all domain IDs. Examples # Configure the OSPF domain ID. system-view [Sysname] ospf 100 [Sysname-ospf-100] domain-id 234 export route-policy (VPN instance view/IPv4 VPN view) Use export route-policy to apply a routing policy to filter outgoing routes for the VPN instance. Such a routing policy is referred to as an export routing policy. Use undo export route-policy to remove the application.
ext-community-type Use ext-community-type to configure the type code of an OSPF extended community attribute. Use undo ext-community-type to restore the default. Syntax ext-community-type { domain-id type-code1 | router-id type-code2 | route-type type-code3 } undo ext-community-type { domain-id | router-id | route-type } Default The type codes for the OSPF extended community attributes of Domain ID, Router ID, and Route Type are 0x0005, 0x0107, and 0x0306, respectively.
Views VPN instance view Default command level 2: System level Parameters route-policy: References a routing policy by its name, a string of 1 to 63 case-sensitive characters. Usage guidelines MPLS L3VPN FRR is applicable to a dual-homed scenario where a CE is connected to two PEs. The referenced routing policy must have the apply fast-reroute backup-nexthop command configured to specify the backup next hop.
isis process-id: Filters ISIS routes to be advertised that are from a specific ISIS process. The process-id argument is in the range of 1 to 65535. ospf process-id: Filters OSPF routes to be advertised that are from a specific OSPF process. The process-id argument is in the range of 1 to 65535. rip process-id: Filters RIP routes to be advertised that are from a specific RIP process. The process-id argument is in the range of 1 to 65535. static: Filters static routes to be advertised.
[Sysname-bgp] ipv4-family vpnv4 [Sysname-bgp-af-vpnv4] filter-policy 2255 import import route-policy (VPN instance view/IPv4 VPN view) Use import route-policy to apply a routing policy to filter incoming routes for the VPN instance. Such a routing policy is referred to as an import routing policy. Use undo import route-policy to remove the application. Syntax import route-policy route-policy undo import route-policy Default All routes matching the import target attribute are accepted.
ip binding vpn-instance Use ip binding vpn-instance to associate an interface with a VPN instance. Use undo ip binding vpn-instance to remove the association. Syntax ip binding vpn-instance vpn-instance-name undo ip binding vpn-instance vpn-instance-name Default An interface is associated with no VPN instance; it belongs to the public network.
Usage guidelines A VPN instance takes effect only after you configure an RD for it. Examples # Create a VPN instance named vpn1. system-view [Sysname] ip vpn-instance vpn1 [Sysname-vpn-instance-vpn1] Related commands route-distinguisher ipv4-family vpnv4 Use ipv4-family vpnv4 in BGP view to enter BGP-VPNv4 subaddress family view. Use undo ipv4-family vpnv4 to remove all settings configured in BGP-VPNv4 subaddress family view.
Examples # Enter IPv4 VPN view. system-view [Sysname] ip vpn-instance vpn1 [Sysname-vpn-instance-vpn1] ipv4-family [Sysname-vpn-ipv4-vpn1] mpls ldp vpn-instance Use mpls ldp vpn-instance to enable LDP for a VPN instance, create an LDP instance, and enter MPLS LDP VPN instance view. Use undo mpls ldp vpn-instance to disable LDP for a VPN instance and remove the LDP instance.
Syntax nesting-vpn undo nesting-vpn Default The nested VPN function is disabled. Views BGP-VPNv4 subaddress family view Default command level 2: System level Usage guidelines If a nested VPN peer connected to a PE needs to advertise VPNv4 routes, you must enable nested VPN on the PE. Examples # Enable nested VPN.
system-view [Sysname] bgp 100 [Sysname-bgp] ipv4-family vpnv4 [Sysname-bgp-af-vpnv4] peer 3.3.3.3 advertise-community peer allow-as-loop Use peer allow-as-loop to allow the local AS number to appear in the AS-PATH attribute of a received route and to set the allowed maximum number of repetitions. Use undo peer allow-as-loop to remove the configuration.
peer as-path-acl (BGP-VPNv4 subaddress family view) Use peer as-path-acl to specify to filter routes received from, or to be advertised to, a specific peer or peer group based on an AS_PATH list. Use undo peer as-path-acl to remove the configuration. Syntax peer { group-name | ip-address } as-path-acl as-path-acl-number { import | export } undo peer { group-name | ip-address } as-path-acl as-path-acl-number { import | export } Default No AS filtering list is applied to a peer or peer group.
Views BGP-VPNv4 subaddress family view Default command level 2: System level Parameters group-name: Specifies the name of the peer group, a string of 1 to 47 characters. ip-address: Specifies the IP address of the peer. both: Supports sending and receiving Route-refresh messages with ORF information. receive: Supports receiving Route-refresh messages with ORF information. send: Supports sending Route-refresh messages with ORF information.
Use undo peer default-route-advertise vpn-instance to remove the configuration. Syntax peer { group-name | ip-address } default-route-advertise vpn-instance vpn-instance-name undo peer { group-name | ip-address } default-route-advertise vpn-instance vpn-instance-name Default No default route is advertised to a peer or peer group.
Views BGP-VPNv4 subaddress family view, BGP-L2VPN address family view, VPLS address family view Default command level 2: System level Parameters group-name: Specifies the name of the peer group, a case-sensitive string of 1 to 47 characters. ip-address: Specifies the IP address of the peer. Examples # Configure peer 1.1.1.1 and enable the peer for the BGP-VPNv4 subaddress family. system-view [Sysname] bgp 100 [Sysname-bgp] peer 1.1.1.
Parameters group-name: Specifies the name of the peer group, a case-sensitive string of 1 to 47 characters. ip-address: Specifies the IP address of the peer. acl-number: Specifies an IP ACL number in the range of 2000 to 3999. export: Filters the routes to be advertised to the specified peer or peer group. import: Filters the routes received from the specified peer or peer group. Examples # In BGP-VPNv4 subaddress family view, apply a filtering policy to filter the routes received from peer group test.
[Sysname-bgp-af-vpnv4] peer 1.1.1.1 group test [Sysname-bgp-af-vpnv4] quit # In BGP-L2VPN address family view, add peer 1.1.1.1 into peer group test. [Sysname-bgp] l2vpn-family [Sysname-bgp-af-l2vpn] peer test enable [Sysname-bgp-af-l2vpn] peer 1.1.1.1 group test [Sysname-bgp-af-l2vpn] quit # In VPLS address family view, add peer 1.1.1.1 into peer group test. [Sysname-bgp] vpls-family [Sysname-bgp-af-vpls] peer test enable [Sysname-bgp-af-vpls] peer 1.1.1.
peer label-route-capability (BGP view/BGP VPN instance view) Use peer label-route-capability to enable the exchange of labeled routes with an IPv4 peer or peer group. Use undo peer label-route-capability to disable the capability. Syntax peer { group-name | ip-address } label-route-capability undo peer { group-name | ip-address } label-route-capability Default The device does not advertise labeled routes to an IPv4 peer.
Views BGP-VPNv4 subaddress family view Default command level 2: System level Parameters group-name: Specifies the name of the peer group, a case-sensitive string of 1 to 47 characters. ip-address: Specifies the IP address of the peer. Usage guidelines In the inter-AS option C application, you need to configure next-hop-invariable on the RR for multi-hop EBGP neighbors and reflector clients to make sure that the next hop of a VPN route will not be changed.
[Sysname-bgp] ipv4-family vpnv4 [Sysname-bgp-af-vpnv4] peer test next-hop-local # In BGP-L2VPN address family view, configure the device to use the local address as the next hop of a route when advertising it to peer group test. system-view [Sysname] bgp 100 [Sysname-bgp] l2vpn-family [Sysname-bgp-af-l2vpn] peer test next-hop-local # In BGP-VPLS address family view, configure the device to use the local address as the next hop of a route when advertising it to peer group test.
peer public-as-only (BGP-VPNv4 subaddress family view) Use peer public-as-only to make outbound BGP updates carry no private AS numbers. Use undo peer public-as-only to make outbound BGP updates carry private AS numbers. Syntax peer { group-name | ip-address } public-as-only undo peer { group-name | ip-address } public-as-only Default A BGP update carries private AS numbers.
Views BGP-VPNv4 subaddress family view, BGP-L2VPN address family view, BGP-VPLS address family view Default command level 2: System level Parameters group-name: Specifies the name of the peer group, a case-sensitive string of 1 to 47 characters. ip-address: Specifies the IP address of the peer. Usage guidelines For more information about RR, see Layer 3—IP Routing Configuration Guide.
Default No routing policy is applied to a peer or peer group. Views BGP-VPNv4 subaddress family view Default command level 2: System level Parameters group-name: Specifies the name of the peer group, a case-sensitive string of 1 to 47 characters. ip-address: Specifies the IP address of the peer. route-policy-name: Specifies the name of the routing policy, a case-sensitive string of 1 to 63 characters. export: Filters the routes to be advertised to the peer or peer group.
Examples # Configure peer 1.1.1.1 as a UPE. system-view [Sysname] bgp 100 [Sysname-bgp] ipv4-family vpnv4 [Sysname-bgp-af-vpnv4] peer 1.1.1.1 upe peer upe route-policy Use peer upe route-policy to specify to advertise routes permitted by a routing policy to UPEs. Use undo peer upe route-policy to restore the default.
peer vpn-instance enable Use peer vpn-instance enable to activate a nested VPN peer or peer group and enable the capability of exchanging BGP-VPNv4 routes with the peer or peer group. Use undo peer vpn-instance enable to disable the capability of exchanging BGP-VPNv4 routes with a nested VPN peer or peer group.
Syntax peer peer-address vpn-instance vpn-instance-name group group-name undo peer peer-address vpn-instance vpn-instance-name group group-name Default A peer is not in any nested peer group. Views BGP-VPNv4 subaddress family view Default command level 2: System level Parameters peer-address: Specifies the IP address of the peer. vpn-instance-name: Specifies the name of the VPN instance, a case-sensitive string of 1 to 31 characters.
Default No routing policy is applied. Views BGP-VPNv4 subaddress family view Default command level 2: System level Parameters group-name: Specifies the name of the peer group, a case-sensitive string of 1 to 47 characters. peer-address: Specifies the IP address of the peer, in dotted decimal notation. vpn-instance-name: Specifies the name of the VPN instance, a case-sensitive string of 1 to 31 characters.
Default command level 2: System level Usage guidelines The command applies to an inter-AS option B VPN. Examples # In BGP-VPNv4 subaddress family view, disable route target filtering for received VPNv4 routes. system-view [Sysname] bgp 100 [Sysname-bgp] ipv4-family vpnv4 [Sysname-bgp-af-vpnv4] undo policy vpn-target # In BGP-L2VPN address family view, disable route target filtering for received VPNv4 routes.
disable-fallback: With this keyword specified, the tunneling policy does not select other paths when this preferred tunnel is matched (the tunnel's destination address and encapsulation type are both matched) but is unavailable. Usage guidelines In a tunneling policy, you can configure up to 64 preferred tunnels. The tunnel interfaces specified for the preferred tunnels can have the same destination address and the tunnel encapsulation type must be GRE or MPLS TE.
Examples # In BGP-VPNv4 subaddress family view, disable route reflection between clients. system-view [Sysname] bgp 100 [Sysname-bgp] ipv4-family vpnv4 [Sysname-bgp-af-vpnv4] undo reflect between-clients # In BGP-L2VPN address family view, disable route reflection between clients. system-view [Sysname] bgp 100 [Sysname-bgp] l2vpn-family [Sysname-bgp-af-l2vpn] undo reflect between-clients # In BGP-VPLS address family view, disable route reflection between clients.
Examples # In BGP-VPNv4 subaddress family view, set the RR's cluster ID to 50. system-view [Sysname] bgp 100 [Sysname-bgp] ipv4-family vpnv4 [Sysname-bgp-af-vpnv4] reflector cluster-id 50 # In BGP-L2VPN address family view, set the RR's cluster ID to 50. system-view [Sysname] bgp 100 [Sysname-bgp] l2vpn-family [Sysname-bgp-af-l2vpn] reflector cluster-id 50 # In BGP-VPLS address family view, set the RR's cluster ID to 50.
Examples # Soft reset all BGP connections in VPN instance vpn1 in the inbound direction to make new configurations take effect. refresh bgp vpn-instance vpn1 all import refresh bgp vpnv4 Use refresh bgp vpnv4 to soft reset BGP VPNv4 connections.
Parameters vpn-instance-name: Resets BGP connections with the peers in a VPN instance. The VPN instance name is a case-sensitive string of 1 to 31 characters. as-number: Resets BGP connections with the peers in an AS. The AS number is in the range of 1 to 4294967295. ip-address: Resets the connection with the BGP peer identified by this IP address. all: Resets all BGP connections in the specified VPN instance. external: Resets EBGP sessions.
reset bgp vpn-instance vpn-instance-name flap-info [ ip-address [ mask | mask-length ] | as-path-acl as-path-acl-number | regexp as-path-regexp ] Views User view Default command level 1: Monitor level Parameters vpn-instance-name: Specifies the name of the VPN instance, a case-sensitive string of 1 to 31 characters. ip-address: Specifies the IP address of the BGP peer. mask: Specifies the network mask, in the format of X.X.X.X.
route-distinguisher (VPN instance view) Use route-distinguisher to configure an RD for a VPN instance. Syntax route-distinguisher route-distinguisher Views VPN instance view Default command level 2: System level Parameters route-distinguisher: RD for the VPN instance, 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.
3489661028, which equals the decimal value of 0xD0000000 (3489660928) + 100. If the BGP's AS number is greater than 65535 or the MPLS backbone does not use BGP, the default external route tag is 0. Views OSPF view Default command level 2: System level Parameters tag-value: Specifies the external route tag for imported VPN routes, in the range of 0 to 4294967295.
Syntax routing-table limit number { warn-threshold | simply-alert } undo routing-table limit Default A VPN instance supports up to 100000 routes. Views VPN instance view, IPv4 VPN view Default command level 2: System level Parameters number: Specifies the maximum number of routes supported. The value range varies by device. warn-threshold: Specifies a threshold for warning, in the range of 1 to 100, in percentages.
Use undo rr-filter to restore the default. Syntax rr-filter extended-community-number undo rr-filter Default An RR does not filter the reflected routes. Views BGP-VPNv4 subaddress family view, BGP-L2VPN address family view, BGP-VPLS address family view Default command level 2: System level Parameters extended-community-number: Number of the Extended Communities attribute supported by the RR, in the range of 1 to 199.
Syntax sham-link source-ip-address destination-ip-address [ cost cost | dead dead-interval | hello hello-interval | retransmit retrans-interval | trans-delay delay { | simple [ cipher | plain ] password1 | { md5 | hmac-md5 } key-id [ cipher | plain ] password2 } ] * undo sham-link source-ip-address destination-ip-address [ cost | dead | hello | retransmit | trans-delay | simple | { md5 | hmac-md5 } key-id ] * Views OSPF area view Default command level 2: System level Parameters source-ip-address: Specifi
Usage guidelines If two PEs belong to the same AS and a backdoor link is present, a sham link can be established between them. No matter which of the simple and the MD5/HMAC-MD5 authentication is used, for security purposes, all authentication keys, including keys configured in plain text, are saved in cipher text to the configuration file. This command can configure MD5 or simple authentication for a sham link, but not both.
A tunneling policy specified in IPv4 VPN view takes precedence over that specified in VPN instance view. If you specify a tunneling policy in both IPv4 VPN view and VPN instance view, the tunneling policy specified in IPv4 VPN view is applied to the IPv4 VPN (or IPv6 VPN). Examples # Associate VPN instance vpn1 with tunneling policy po1.
load-balance-number number: Specifies the number of tunnels for load balancing, in the range of 1 to 8. Usage guidelines Only tunnels of the types specified in the tunnel select-seq command can be used. A tunnel type closer to the select-seq keyword has a higher priority. The number of tunnels for load balancing refers to the number of tunnels that an application can use. CR-LSP tunnels are preferred in this order: 1. CR-LSPs configured with ACLs 2. CR-LSPs bound with VPN 3.
vpn popgo Use vpn popgo on an egress PE to specify the VPN label processing mode as POPGO forwarding, which will pop the label and then search for the outbound interface according to the label to forward the traffic. Use undo vpn popgo to restore the default. Syntax vpn popgo undo vpn popgo Default The VPN label processing mode of an egress PE is POP forwarding, which will pop the label and then search the FIB table to find the outbound interface to forward the traffic.
Default command level 2: System level Usage guidelines In an MCE network, you must disable the routing loop detection function for a VPN OSPF process on the MCE. Otherwise, the MCE does not receive OSPF routes from the PE. Examples # Disable routing loop detection for the VPN OSPF process.
Usage guidelines Route targets configured in VPN instance view apply to both the IPv4 VPN and the IPv6 VPN. Route targets configured in IPv4 VPN view apply to only the IPv4 VPN. IPv4 VPN prefers the route targets configured in IPv4 VPN view over the route targets configured in VPN instance view. Examples # Configure route targets for VPN instance vpn1.
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 configuration commands." default local-preference (BGP-VPNv6 subaddress family view) Use default local-preference to set the default value of the local preference. Use undo default local-preference to restore the default.
Default The default system MED value is 0. Views BGP-VPNv6 subaddress family view Default command level 2: System level Parameters med-value: Specifies the default value of the Multi-Exit-Discriminator (MED), in the range of 0 to 4294967295. Usage guidelines With other criteria the same, the system selects the route with a smaller MED value as the AS external route. Examples # Set the default MED to 10 in BGP-VPNv6 subaddress family view.
Usage guidelines If you do not specify any parameter, the command displays brief information about all peers. Examples # Display brief information about all BGP VPNv6 peers. display bgp vpnv6 all peer BGP local router ID : 192.168.1.40 Local AS number : 200 Total number of peers : 1 Peer 192.168.1.
Maximum allowed prefix number: 150000 Threshold: 75% Minimum time between advertisement runs is 15 seconds Optional capabilities: ORF advertise capability based on Prefix(type 64): Local: both Negotiated: send Connect-interface has been configured Peer Preferred Value: 0 BFD: Enabled Routing policy configured: No routing policy is configured Table 128 Command output Field Description Peer IP address of the peer. Local IP address of the local router. Type BGP type.
Field Description Threshold Threshold for warning. When the percentage of the number of the received route prefixes to the maximum number of routes supported reaches this value, the device generates a prompt. Minimum time between advertisement runs Minimum interval between route advertisements. Optional capabilities Local optional capabilities. ORF advertise capability based on prefix (type 64): Supports the ORF address prefix capability and the capability value is 64.
Parameters network-address: Specifies the IPv6 address of the destination network segment. prefix-length: Specifies the length of the prefix, in the range of 0 to 128. longer-prefixes: Displays each routing entry that meets the following conditions: 1. Its destination IPv6 address ANDed with the specified prefix equals the specified destination IPv6 address ANDed with the specified prefix. 2. Its prefix length is shorter than or equal to the specified prefix length. 3.
Path/Ogn: ? Table 129 Command output Field Description BGP Local router ID Router ID of the local BGP router. Status codes Route status codes. For more information, see Table 105. Origin Route origin codes. For more information, see Table 105. Total number of routes from all PE Total number of VPNv6 routes from all PEs. Network Destination network address. PrefixLen Prefix length of the destination network address. NextHop IPv6 address of the next hop. LocPrf Local preference value.
network-address: Specifies the IPv6 address of the destination segment. prefix-length: Specifies the prefix length in the range of 0 to 128. |: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide. begin: Displays the first line that matches the specified regular expression and all lines that follow. exclude: Displays all lines that do not match the specified regular expression.
display bgp vpnv6 vpn-instance peer Use display bgp vpnv6 vpn-instance peer to display information about the IPv6 BGP peers in the specified VPN instance. Syntax display bgp vpnv6 vpn-instance vpn-instance-name peer [ ipv6-address verbose | verbose ] [ | { begin | exclude | include } regular-expression ] Views Any view Default command level 1: Monitor Parameters vpn-instance-name: Specifies the name of a VPN instance, a case-sensitive string of 1 to 31 characters.
Field Description MsgRcvd Number of messages received. MsgSent Number of messages sent. OutQ Number of messages to be sent to the peer. PrefRcv Number of prefixes received. Up/Down Duration of the BGP session in the current state. State Current state of the peer. # Display detailed information about the IPv6 BGP peers in the VPN instance vpn1. display bgp vpnv6 vpn-instance vpn1 peer verbose BGP Peer is 2001::1, remote AS 200, Type: EBGP link BGP version 4, remote router ID 2.2.2.
Field Description 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. BGP last state State that the BGP session was in before transitioning to the current state. Port Local and remote ports of the BGP session. Configured Settings of the local timers, including the active hold interval and keepalive interval. Received Received active hold interval.
Default command level 1: Monitor level Parameters vpn-instance-name: Specifies the VPN instance name, a case-sensitive string of 1 to 31 characters. network-address: Specifies the IPv6 address of the destination network segment. prefix-length: Specifies the length of the prefix, in the range of 0 to 128. longer-prefixes: Displays each routing entry that meets the following conditions: 1.
Field Description Origin Route origin codes. For more information, see Table 105. Network Destination network address. PrefixLen Prefix length of the destination network address. NextHop IPv6 address of the next hop. LocPrf Local preference value. PrefVal Preference value of the route. Label Received label. MED Metric associated with the destination network. Path/Ogn AS_PATH attribute/route origin of the route. For more information, see Table 105.
Usage guidelines If you do not specify any optional parameters, the command displays all IPv6 FIB information for the VPN. Examples # Display all IPv6 FIB information for VPN instance vpn1.
Parameters vpn-instance-name: Specifies the VPN instance name, a case-sensitive string of 1 to 31 characters. ipv6-address: Specifies the destination IPv6 address. prefix-length: Specifies the prefix length of the destination IPv6 address, in the range of 0 to 128. |: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.
export route-policy (VPN instance view/IPv6 VPN view) Use export route-policy to apply a routing policy to filter outgoing routes for the VPN instance. Such a routing policy is referred to as an export routing policy. Use undo export route-policy to remove the application. Syntax export route-policy route-policy undo export route-policy Default No routing policy is applied to filter the routes to be advertised.
Syntax filter-policy { acl6-number | ipv6-prefix ipv6-prefix-name } export [ direct | isisv6 process-id | ospfv3 process-id | ripng process-id | static ] undo filter-policy export [ direct | isisv6 process-id | ospfv3 process-id | ripng process-id | static ] Default MP-BGP does not filter routes to be advertised. Views BGP-VPNv6 subaddress family view Default command level 2: System level Parameters acl6-number: Specifies an IPv6 ACL number in the range of 2000 to 3999.
Default Received routes are not filtered. Views BGP-VPNv6 subaddress family view Default command level 2: System level Parameters acl6-number: Specifies an IPv6 ACL number in the range of 2000 to 3999. ipv6-prefix ipv6-prefix-name: Specifies an IPv6 address prefix list by its name, a string of 1 to 19 characters. Usage guidelines Only routes that survive the filtering are added into the BGP routing table. Examples # In BGP-VPNv6 subaddress family view, use ACL 2255 to filter received routes.
An import routing policy specified in IPv6 VPN view applies to only the IPv6 VPN. An import routing policy specified in IPv6 VPN view takes precedence over that specified in VPN instance view. If you specify an import routing policy in both IPv6 VPN view and VPN instance view, the IPv6 VPN uses the policy specified in IPv6 VPN view. Examples # Apply import routing policy poly-1 to VPN instance vpn1.
Views VPN instance view Default command level 2: System level Examples # Enter IPv6 VPN view. system-view [Sysname] ip vpn-instance vpn1 [Sysname-vpn-instance-vpn1] ipv6-family [Sysname-vpn-ipv6-vpn1] peer enable (BGP-VPNv6 subaddress family view) Use peer enable to enable a peer or peer group for an address family and enable the exchange of BGP routing information for the address family. Use undo peer enable to disable the capability.
Syntax peer ip-address filter-policy acl6-number { export | import } undo peer ip-address filter-policy [ acl6-number ] { export | import } Default No filtering policy is applied to a peer or peer group. Views BGP-VPNv6 subaddress family view Default command level 2: System level Parameters group-name: Specifies the name of the peer group, a case-sensitive string of 1 to 47 characters. ip-address: Specifies the IP address of the peer. acl-number: Specifies an IP ACL number in the range of 2000 to 3999.
Default command level 2: System level Parameters ip-address: Specifies the IP address of a peer. prefix-name: Specifies the name of an IPv6 prefix list, a string of 1 to 19 characters. export: Filters routes to be advertised to the peer. import: Filters routes received from the peer. Examples # In BGP-VPNv6 subaddress family view, apply IPv6 prefix list list1 to filter routes received from peer 1.1.1.1. system-view [Sysname] bgp 100 [Sysname-bgp] ipv6-family vpnv6 [Sysname-bgp-af-vpnv6] peer 1.
peer public-as-only (BGP-VPNv6 subaddress family view) Use peer public-as-only to make outbound BGP updates carry no private AS numbers. Use undo peer public-as-only to make outbound BGP updates carry private AS numbers. Syntax peer ip-address public-as-only undo peer ip-address public-as-only Default A BGP update carries private AS numbers.
Default command level 2: System level Parameters group-name: Specifies the name of the peer group, a case-sensitive string of 1 to 47 characters. ip-address: Specifies the IP address of the peer. Usage guidelines For more information about RR, see Layer 3—IP Routing Configuration Guide. The BGP view, BGP-VPNv4 subaddress family view, and BGP-VPNv6 subaddress family view support the peer reflect-client command.
Examples # In BGP-VPNv6 subaddress family view, apply routing policy test-policy to filter routes received from peer 1.1.1.1. system-view [Sysname] bgp 100 [Sysname-bgp] ipv6-family vpnv6 [Sysname-bgp-af-vpnv6] peer 1.1.1.1 route-policy test-policy import policy vpn-target (BGP-VPNv6 subaddress family view) Use policy vpn-target to enable route target filtering for received VPNv6 routes. Use undo policy vpn-target to disable the filtering, permitting all VPNv6 routes.
Default Route reflection between clients is enabled. Views BGP-VPNv6 subaddress family view Default command level 2: System level Usage guidelines If fully meshed interconnections exist between the clients, route reflection is not required. Otherwise, an RR is required for routes to be reflected from one client to every other client. Examples # In BGP-VPNv6 subaddress family view, disable route reflection between clients.
[Sysname] bgp 100 [Sysname-bgp] ipv6-family vpnv6 [Sysname-bgp-af-vpnv6] reflector cluster-id 50 refresh bgp ipv6 vpn-instance Use refresh bgp ipv6 vpn-instance to soft reset IPv6 BGP connections in a VPN instance. Syntax refresh bgp ipv6 vpn-instance vpn-instance-name { ipv6-address | all | external } { export | import } Views User view Default command level 2: System level Parameters vpn-instance-name: Specifies the name of the VPN instance, a case-sensitive string of 1 to 31 characters.
all: Soft resets all BGP VPNv6 connections. external: Soft resets EBGP sessions. internal: Soft resets IBGP sessions. export: Performs a soft reset in the outbound direction. import: Performs a soft reset in the inbound direction. Usage guidelines Soft reset of BGP connections refers to updating BGP routing information without breaking BGP neighbor relationships. Examples # Soft reset all BGP VPNv6 connections in the inbound direction to make new configurations take effect.
Views User view Default command level 2: System level Parameters as-number: Resets BGP VPNv6 connections with the peers in the AS identified by this number in the range of 1 to 4294967295. ip-address: Resets the BGP VPNv6 connection with the BGP peer identified by this IP address. all: Resets all BGP VPNv6 connections. external: Resets EBGP VPNv6 connections. internal: Resets IBGP VPNv6 connections. Examples # Reset all BGP VPNv6 connections to make new configurations take effect.
A limit configured in IPv6 VPN view applies to only the IPv6 VPN. IPv6 VPN prefers the limit configured in IPv6 view over the limit configured in VPN instance view. Examples # Specify that VPN instance vpn1 supports up to 1000 routes, and when routes exceed the limit, can receive new routes but generates a system log message.
[Sysname-bgp] ipv6-family vpnv6 [Sysname-bgp-af-vpnv6] rr-filter 10 tnl-policy (VPN instance view/IPv6 VPN view) Use tnl-policy to associate the current VPN instance with a tunneling policy. Use undo tnl-policy to remove the association. Syntax tnl-policy tunnel-policy-name undo tnl-policy Views VPN instance view, IPv6 VPN view Default command level 2: System level Parameters tunnel-policy-name: Specifies the name of the tunneling policy for the VPN instance, a string of 1 to 19 characters.
Related commands tunnel select-seq vpn-target (VPN instance view/IPv6 VPN view) Use vpn-target to configure route targets for a VPN instance, an IPv4 VPN, or an IPv6 VPN. Use undo vpn-target to remove the specified or all route targets of a VPN instance.
[Sysname-vpn-instance-vpn1] vpn-target 3:3 export-extcommunity [Sysname-vpn-instance-vpn1] vpn-target 4:4 import-extcommunity [Sysname-vpn-instance-vpn1] vpn-target 5:5 both # Configure route targets for the IPv6 VPN vpn3.
Support and other resources Contacting HP For worldwide technical support information, see the HP support website: http://www.hp.
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. { x | y | ... } Braces enclose a set of required syntax choices separated by vertical bars, from which you select one.
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. Represents an access controller, a unified wired-WLAN module, or the switching engine on a unified wired-WLAN switch. Represents an access point.
Index ABCDEFGHILMNOPRSTUVWX display bgp vpnv6 route-distinguisher routing-table,359 A accept-label,1 display bgp vpnv6 vpn-instance peer,361 add hop,77 display bgp vpnv6 vpn-instance routing-table,363 advertise-label,2 display ccc,191 B display explicit-path,78 display fib vpn-instance,297 bandwidth,233 display fib vpn-instance ip-address,299 bfd enable,3 display ip vpn-instance,300 broadcast-restrain,233 display ipv6 fib vpn-instance,365 C display ipv6 fib vpn-instance ipv6-address,366 ccc
Documents,386 display mpls lsp,23 display mpls lsp bfd ipv4,27 domain-id,308 display mpls lsp bfd te,87 dual-npe revertive,253 display mpls lsp statistics,28 du-readvertise,43 display mpls nhlfe,29 du-readvertise timer,43 display mpls nhlfe reflist,31 E display mpls route-state,33 enable traffic-adjustment,125 display mpls rsvp-te,88 enable traffic-adjustment advertise,126 display mpls rsvp-te established,90 encapsulation,254 display mpls rsvp-te peer,91 encapsulation,212 display mpls rsv
mpls rsvp-te srefresh,136 ipv6-family (VPN instance view),371 ipv6-family vpnv6 (BGP view),371 mpls rsvp-te timer graceful-restart recovery,136 L mpls rsvp-te timer graceful-restart restart,137 mpls rsvp-te timer hello,137 l2 binding vsi,254 mpls rsvp-te timer refresh,138 l2vpn,213 mpls rsvp-te timer retransmission,139 l2vpn-family,214 mpls static-l2vc (for ordinary SVC),219 label advertise,48 mpls static-l2vc (for primary-backup SVCs),218 label-distribution,49 mpls static-l2vc switchover,220
peer ipv6-prefix (BGP-VPNv6 subaddress family view),373 mpls te retry,165 mpls te route-pinning,166 peer label-route-capability (BGP view/BGP VPN instance view),325 mpls te signal-protocol,166 mpls te tie-breaking,167 peer next-hop-invariable (BGP-VPNv4 subaddress family view),325 mpls te timer auto-bandwidth,168 mpls te timer fast-reroute,169 peer next-hop-local,326 mpls te timer link-management periodic-flooding,169 peer preferred-value (BGP-VPNv4 subaddress family view),327 mpls te timer retry,1
sham-link,345 reflect between-clients (BGP-VPNv4 subaddress family view/BGP-L2VPN address family view/BGP-VPLS address family view),336 shutdown (VSI view),263 site,263 reflect between-clients (BGP-VPNv6 subaddress family view),377 static backup-label,224 static backup-label (L2VPN peer view),264 reflector cluster-id (BGP-VPNv4 subaddress family view/BGP-L2VPN address family view/BGP-VPLS address family view),337 static label,225 static label (L2VPN peer view),265 static-cr-lsp egress,176 reflector c
xconnect peer,228 vsi-id,270 xconnect peer switchover,229 W xconnect static-peer,230 Websites,386 xconnect static-peer switchover,231 X xconnect vsi,271 394