Académique Documents
Professionnel Documents
Culture Documents
Router/Ethernet Switch
Command Manual (MPLS Volume)
Version 4.8.22
ZTE CORPORATION
ZTE Plaza, Keji Road South,
Hi-Tech Industrial Park,
Nanshan District, Shenzhen,
P. R. China
518057
Tel: (86) 755 26771900
Fax: (86) 755 26770801
URL: http://ensupport.zte.com.cn
E-mail: support@zte.com.cn
LEGAL INFORMATION
The contents of this document are protected by copyright laws and international treaties. Any reproduction or distribution of
this document or any portion of this document, in any form by any means, without the prior written consent of ZTE CORPO-
RATION is prohibited. Additionally, the contents of this document are protected by contractual confidentiality obligations.
All company, brand and product names are trade or service marks, or registered trade or service marks, of ZTE CORPORATION
or of their respective owners.
This document is provided “as is”, and all express, implied, or statutory warranties, representations or conditions are dis-
claimed, including without limitation any implied warranty of merchantability, fitness for a particular purpose, title or non-in-
fringement. ZTE CORPORATION and its licensors shall not be liable for damages resulting from the use of or reliance on the
information contained herein.
ZTE CORPORATION or its licensors may have current or pending intellectual property rights or applications covering the subject
matter of this document. Except as expressly provided in any written license between ZTE CORPORATION and its licensee,
the user of this document shall not acquire any license to the subject matter herein.
ZTE CORPORATION reserves the right to upgrade or make technical change to this product without further notice.
Users may visit ZTE technical support website http://ensupport.zte.com.cn to inquire related information.
Revision History
Purpose This manual provides procedures and guidelines that support the
operation of ZXR10 router and Ethernet switch.
Intended This manual is intended for engineers and technicians who perform
Audience operation activities on ZXR10 router and Ethernet switch.
What Is in This This manual contains the following chapters:
Manual
Chapter Summary
Command Introduction
Table of Contents
Manual Use Guide............................................................... 1
Description of Man-Machine Commands ................................. 1
Auxiliary Function ............................................................... 2
Command Mode ................................................................. 3
Description of Man-Machine
Commands
Each MML command is described by the following items:
� Function
It describes the function implemented by this command.
� Command Mode
It describes the mode in which this command can be executed.
� Format
It describes the complete format of this command, including
the no format if possible.
� Parameter Description
It describes parameters in this command in the form and pre-
scribes the range and default value. If different products have
Auxiliary Function
The auxiliary function for ZXR10 devices is as follows.
1. In any command mode, enter a question mark (?) after the
DOS prompt of the system, a list of available commands in the
command mode will be displayed. With the context-sensitive
help function, the keywords and parameter lists of any com-
mands can be obtained.
i. In any command mode, enter a question mark "?" after the
DOS prompt of the system, and a list of all commands in
the mode and the brief description of the commands will
be displayed.
ii. Input the question mark behind a character or character
string to view the list of commands or keywords beginning
with this character or character string. Note that there is
no space between the character (string) and the question
mark.
iii. Press TAB behind the character string. If the command or
keyword beginning with this character string is unique, it
shall be completed with a space at the end. Note that there
is no space between the character string and the TAB.
Command Function
Command Mode
The command modes in this manual are shown below.
router Configures
pimsm PIM-SM
parameters
Table of Contents
clear mpls ldp .................................................................... 8
clear mpls ldp dampening .................................................... 8
clear mpls ldp flap .............................................................. 9
mpls ip (Global Configuration) .............................................. 9
mpls ip(Interface Configuration) ..........................................10
mpls label range................................................................10
mpls ldp access-fec............................................................11
mpls ldp advertise-labels ....................................................12
mpls ldp advertise-labels old-style .......................................14
mpls ldp backoff ................................................................15
mpls ldp bfd .....................................................................16
mpls ldp dampening ..........................................................16
mpls ldp dampening-acl .....................................................17
mpls ldp discovery hello .....................................................18
mpls ldp discovery targeted-hello ........................................19
mpls ldp discovery transport-address ...................................19
mpls ldp egress .................................................................21
mpls ldp enable connect-with-dod........................................22
mpls ldp explicit-null ..........................................................22
mpls ldp graceful-restart ....................................................23
mpls ldp holdtime ..............................................................24
mpls ldp neighbor password................................................25
mpls ldp request-labels ......................................................25
mpls ldp router-id..............................................................26
mpls ldp style ...................................................................27
mpls ldp target-session ......................................................28
mpls xconnect...................................................................28
show mpls forwarding-table ................................................29
show mpls l2transport binding.............................................30
show mpls l2transport vc....................................................31
show mpls label range........................................................33
show mpls ldp backoff........................................................33
show mpls ldp bindings ......................................................34
show mpls ldp dampening summary.....................................36
show mpls ldp flap-statistics summary .................................37
show mpls ldp discovery.....................................................38
show mpls interface ...........................................................39
show mpls ldp neighbor......................................................39
show mpls ldp graceful-restart ............................................41
show mpls ldp parameters ..................................................42
Instructions After this command is configured, the router is reset and inter-
rupted, and all LDP sessions are reestablished. The recheck of the
access-fec and egress policies, advertisement and request policies,
and the explicit pop-up label advertisement policy is performed on
all FECS. The resetting of the session with the designated neigh-
bor means the interruption and the reestablishment of the LDP
session with this neighbor only. The recheck is only performed on
the policy related with this neighbor (advertisement, request, and
exp-null policies).
Example � This example describes how to reset LDP.
ZXR10#clear mpls ldp
� This example describes how to reset the session with the LSR
whose router ID is 100.1.1.1.
ZXR10#clear mpls ldp neighbor 100.1.1.1
Instructions After this command is configured, the router will clear and reset
LDP dampening information already generated, and the router will
unsuppress the suppressed LSP; the router will reset flapping sup-
press information of some specified LSP, and only the dampening
information of this LSP will be cleared. If this LSP is suppressed,
the router will unsuppress it.
Example � This example describes how to reset LDP dampening informa-
tion.
ZXR10#clear mpls ldp dampening
Instructions After this command is configured, the router will clear the count of
the flapping of LDP entities where flapping has already occurred ,
and the router will reset the count of the flapping of some specified
LSP; only the count of the flapping of this LSP is cleared and reset
and it will be recounted from 0.
Example � This example describes how to rest LDP flapping statistic infor-
mation.
ZXR10#clear mpls ldp flap
mpls ip (Global
Configuration)
Purpose Use this command to enable LDP to establish an LSP along a com-
mon hop-by-hop routing path. Disable LDP with the no form of
this command.
Command Modes Global configuration
Syntax mpls ip
no mpls ip
Defaults LDP is disabled by default.
Instructions � his command enables LDP to establish an LSP along a common
hop-by-hop routing path. In addition, it is necessary to enable
LDP on the interface to realize dynamic label switching on the
interface.
mpls ip(Interface
Configuration)
Purpose Use this command to enable LDP label switching on the interface.
Disable LDP label switching with the no form of this command.
Command Modes Interface configuration
Syntax mpls ip
no mpls ip
Defaults This command is disabled by default.
Instructions � This command enables LDP to exchange labels on the interface
of layer 3. Once the command is configured, LSR starts to pe-
riodically send hello messages on the interface. When packets
to the destination network obtain the outgoing label to some
destination network, the outgoing label will be added into the
packets and the packets will be forwarded from this interface.
Note that this command will take effect only after mpls ip is
configured in global configuration mode.
� The no form of this command make packets routed from this
interface no more carry labels and cease the label switching on
the interface.
Example This example describes how to enable LDP on the interface fei_1/1.
ZXR10(config)#mpls ip
ZXR10(config)#interface fei_1/1
ZXR10(config-if)#mpls ip
Example This example describes how to set the label range as 1000~10000.
ZXR10(config)#mpls label range 1000 10000
Defaults LDP creates FEC for all destination networks except the route net-
works obtained by BGP.
Instructions � By default, LDP creates FEC for all destination networks except
the route networks obtained by BGP. However, the number of
networks may be so large that it needs to filter the network for
which FEC need not be created ; or the network administrator
wants to control the creation of FEC , that is, FEC is created
only for the authorized network. This command can realize
such functions.
� The mpls ldp access-fec for <prefix-access-list> command
can make filter be based on access list. FEC can be created
for all destination addresses allowed by the access list. Only
standard ACL is supported now.
� The mpls ldp access-fec host-route-only command make
FEC be created only for the destination address with 32-bit
mask. The mpls ldp access-fec host-route-only command
is especially valid in the MPLS/BGP VPN application, because
under such application, LDP only exchanges the label of the
next-hop address (that is, the outer label, the label to the PE)
of VPN routes. The mpls ldp access-fec host-route-only
command can effectively decrease the number of FECs.
� This command does not collide with the above two policies.
By default, FEC is not created for route networks obtained by
BGP. This command can make FEC also be created for route
networks obtained by BGP.
� Use the mpls ldp access-fec command to configure policy but
it does not take effect immediately. But The mpls ldp acce
ss-fec force command makes the configuration take effect
immediately.
Tip:
mpls ldp access-fec for <prefix-access-list> and mpls ldp acce
ss-fec host-route-only are mutually exclusive. Thus the network
administrator can choose only one control policy at any time.
Tip:
This command takes effect immediately after its configuration.
The command can be configured only when the network in sta-
ble status. Otherwidse, it could not take effect immediately. Do
not use this command frequently.
Example 1. This example describes how to forbid the router from advertis-
ing any label to any neighbor.
ZXR10(config)#no mpls ldp advertise-labels
Instructions This command triggers the creation of LSP BFD, and specifies the
network address of LSP.
Example This example describes how to triggers the creation of BFD of LSP
2.2.2.2.
ZXR10(config)#mpls ldp bfd 2.2.2.2 32 interval 50
min_rx 50 multiplier 3
Syntax
Description
<half-life> Time (in minutes) after which a penalty is
decreased by half after the half-life period
(which is 15 minutes by default). The range
of the half-life period is 1~45 minutes
Defaults The filtering of flapping is valid only when the function of LDP
dampening takes effect. By default, LDP records the dampening
information for flapping destination networks.
Instructions By default, LDP records the dampening information for flapping
destination networks. However, there are so many networks in
the actual network that it needs to filter the networks for which
there is no need to record the dampening information.
The mpls ldp access-fec force command takes effect immedi-
ately.
Example 1. This example describes how to record the dampening informa-
tion for LSP of networks 10.101.0.0 and 10.221.0.0.
ZXR10(config)#ip access-list standard num 10
ZXR10(config-std-acl)#permit 10.101.0.0 0.0.255.255
ZXR10(config-std-acl)#permit 10.221.0.0 0.0.255.255
ZXR10(config-std-acl)#exit
ZXR10(config)#mpls ldp dampening-acl for 10
ZXR10(config)#mpls ldp dampening-acl force
Example This example describes how to set the status holdtime as 100 sec-
onds and the interval for sending hello messages as 20 seconds.
ZXR10(config)#mpls ldp discovery hello holdtime 100
ZXR10(config)#mpls ldp discovery hello interval 20
Syntax
Description
interface Specifies the interface address as the
transmission address advertised in the hello
message
Tip:
If there are multiple links between routers, these routers must
advertise the same transmission address on the corresponding in-
terfaces.
Example This example describes how to use the IP address of the interface
as the transmission address on the interface oc3_2/1, and set the
transmission address as 145.22.0.56 on the interface oc3_4/1.
ZXR10(config#)interface oc3_2/1
ZXR10(config-if)#mpls ldp discovery transport-address interface
ZXR10(config)#interface oc3_4/1
ZXR10(config-if)#mpls ldp discovery transport-address 145.22.0.56
Defaults By default, LDP allocates popup labels only to the directly con-
nected networks and makes advertisements to the peer LSR.
Instructions By default, LDP allocates popup labels only to the directly con-
nected networks and makes advertisements to the peer LSR. For
destination networks not directly connected, LDP acquires the idle
label from the label pool as the incoming label and chooses the
label value in the mapping message sent by the next hop of the
route as the outgoing label.
If local router is an edge LSR and the router of nexthop may be
a non-MPLS router, local LSR cannot bind the outgoing label, and
the received label packet be will discarded at the data layer be-
cause there is no outgoing label according to the MPLS framework
protocol.
In this case, it is necessary to configure the egress control pol-
icy to specify LDP to allocate popup labels to destination networks
flowing out of MPLS network, and make advertises to the upstream
LSR. Thus upstream LSR will forward the traffic from the MPLS net-
work in the form of IP packets (or explicitly popup label packets).
There are two kinds of control policies: based on destination net-
work segment and based on next hop.
1. The egress control policy based on destination networks (mpls
ldp egress for <prefix-access-list>) directly specifies which
destination where local LSR is terminated.
2. The egress control policy based on next hop (mpls ldp egress
nexthop <nexthop-access-list>) specifies which neighbors
are non-MPLS routers so that the traffic of these neighbors
as next hops is the traffic out of MPLS. Local router allocates
popup labels for this traffic.
As long as a route meets either of the two policies, that is, the
destination prefix is permitted by <prefix-access-list> or the next
hop is permitted by <nexthop-access-list> , the LDP will allocate
a popup label to it.
The policy takes effect only on the refreshed FECs after the config-
uration and does not reallocate labels to the existing FECs. There-
Syntax
Description
for <prefix-access-li Specifies the prefix of the explicit null labels
st> replacing implicit ones, range: 1~99
Instructions When a session is set up between two LSRs, the smaller value of
the configured parameters of the two LSRs will be taken as the
negotiated holdtime.
Example This example describes how to set the holdtime as to 30 seconds.
ZXR10(config)#mpls ldp holdtime 30
Defaults By default, the election rules of LDP router identifier on ZXR10 are
as follows:
1. Firstly, if the mpls ldp router-id command is used to desig-
nate the address of an interface as the router identifier, and
the interface has an IP address and it is in the UP state, the
address of the interface will be used as the router identifier.
2. Secondly, if there are loopback interfaces configured with IP
addresses, the maximum IP address of the loopback interface
will serve as the router identifier.
3. Lastly, among the IP addresses of interfaces configured with IP
addresses and in the UP state, the maximum one is selected
as the router identifier.
Instructions By default, the automatically elected router identifier may be un-
available sometimes, for example, the routing protocol does not
advertise the IP address elected as the router identifier to neigh-
bors. In addition, the router configuration may cause the LPD
router identifier is uncertain, and this invalidates the neighbor’s
control policy.
mpls xconnect
Purpose Use this command to configure the address, VPWS identifier, and
tunnel number of the remote interface. The creation of VPWS is
triggered between local interface and the remote interface. Delete
the VPWS with the no form of this command.
Command Modes Interface configuration
Syntax mpls xconnect <ip-address><vc-id>[tunnel <tunnel number>]
no mpls xconnect
Syntax
Description
<ip-address> IP address of the remote interface or router
identifier of the remote node
Example In this example, VPWS with vc-id 100 is established with the node
whose router identifier is 1.1.1.1 on the interface fei_2/1.
ZXR10(config#)interface fei_2/1
ZXR10(config-if)#mpls xconnect 1.1.1.1 100
Example This example describes how to show information about the current
neighbor .
ZXR10(config)#show mpls forwarding-table
Mpls Ldp Forwarding-table:
InLabel OutLabel Dest Pfxlen Interface NextHop
201 Pop tag 3.4.5.6 32 fei_1/1 101.1.1.2
202 Pop tag 120.1.1.0 24 fei_1/1 101.1.1.2
Field Description
Field Description
VC ID ID of VC
VC Type Type of VC
Field Description
<local circuit id1> Vlan ID for Ethernet, or vpi for the ATM
interface, range: 0~65535
<local circuit id2> Vlan ID for Ethernet, or vpi for the ATM
interface, range: 0~65535
2. This example describes how to show VCs with VCID in the range
of 201 to 205.
ZXR10#show mpls l2transport vc vcid 201 205
Field Description
Field Description
Example This example shows the output of the show mpls label range
command.
ZXR10#show mpls label range detail
Downstream label pool: Min/Max label:16/1048575
total 1048000 labels free now
Field Description
Field Description
Instructions This command shows all entries and downstream bindings in the
LDP FEC table if there is no parameter specified.
Example 1. This example describes how to show all entries and down-
stream bindings in the LDP FEC table.
ZXR10#show mpls ldp bindings
34.0.0.0/255.0.0.0
local binding: label: imp-null
remote binding: lsr: 155.0.0.55:0, label: 17
remote binding: lsr: 66.66.0.66:0, label: 18
remote binding: lsr: 144.0.0.44:0, label: imp-null
45.0.0.0/255.0.0.0
local binding: label: 19
remote binding: lsr: 155.0.0.55:0, label: imp-null inuse
remote binding: lsr: 66.66.0.66:0, label: 16
remote binding: lsr: 144.0.0.44:0, label: imp-null
66.66.0.66/255.255.255.255
local binding: label: 20
remote binding: lsr: 155.0.0.55:0, label: 19
remote binding: lsr: 66.66.0.66:0, label: imp-null(inuse)
remote binding: lsr: 144.0.0.44:0, label: 18
103.0.0.0/255.0.0.0
local binding: label: imp-null
155.0.0.55/255.255.255.255
local binding: label: 25
remote binding: lsr: 155.0.0.55:0, label: imp-null(inuse)
remote binding: lsr: 144.0.0.44:0, label: 24
remote binding: lsr: 66.66.0.66:0, label: 24
Field Description
Field Description
Instructions If there is not any parameter after this command , all information
information about LSP in LDP flapping routes is displayed. If there is a parame-
ter after this command, the dampening information of current LSP
is displayed.
Example This example describes how to display information about LDP dis-
covery.
ZXR10#show mpls ldp dampening summary
Damp LSPS of ldp:
status codes: d damped
InLable OutLable Network NH From
Reuse Penalty
d 17 3 25.25.25.25/32 20.1.1.25 25.25.25.25:0
00:00:01 1729
Field Description
Instructions If there is not any parameter after this command, all information
about LSP in LDP flapping routes is displayed. If there is a param-
eter after this command, dampening information of current LSP is
dispalyed.
Example This example describes how to show information about LDP .
ZXR10#show mpls ldp flap-statistics summary
Flap LSPS of ldp: 2
status codes: d damped , * valid, h history.
Field Description
Field Description
Example This example describes how to show information about LDP dis-
covery .
ZXR10#show mpls ldp discovery
Local LDP Identifier:
95.95.95.95:0
Discovery Sources:
Interfaces:
fei_5/1 (ldp): xmit/recv
LDP Id: 93.93.93.93:0; IP addr: 95.93.5.93
fei_6/1 (ldp): xmit/recv
LDP Id: 98.98.98.98:0; IP addr: 95.98.6.98
Field Description
Field Description
Field Description
Syntax
Description
<neighbor> IP address of the neighbor, in the dotted
decimal format
Field Description
Field Description
Field Description
Field Description
Table of Contents
description .......................................................................43
export map.......................................................................44
import map ......................................................................44
ip vrf ...............................................................................45
ip vrf forwarding................................................................45
maximum routes ...............................................................46
monitor session.................................................................46
monitor session destination ................................................47
monitor session source.......................................................47
rd....................................................................................47
route-target......................................................................48
show ip protocol routing vrf ................................................48
show ip protocol routing vrf-summary ..................................49
show ip route mng.............................................................49
show ip route vpn..............................................................49
show ip route vrf ...............................................................50
show ip route vrf-summary.................................................50
show ip vrf .......................................................................50
show monitor session.........................................................51
tunnel checksum ...............................................................51
tunnel destination..............................................................52
tunnel key ........................................................................52
tunnel mode .....................................................................52
tunnel sequence ................................................................53
tunnel source....................................................................53
description
Purpose Use this command to set the description about a VRF. Delete the
description with the no form of this command.
Command Modes VRF configuration
Syntax description <string>
no description
Syntax
Description
<string> Description about the VRF, a string of 1~16
characters
export map
Purpose Use this command to set the export route map related to the VRF.
Delete the configuration with the no form of this command.
Command Modes VRF configuration
Syntax export map <map-tag>
no export map <map-tag>
Syntax
Description
<map-tag> Name of the route map, a string of 1~16
characters
import map
Purpose Use this command to set the import route map related to a VRF.
Delete the configuration with the no form of this command.
Command Modes VRF configuration
Syntax import map <map-tag>
no import map <map-tag>
Syntax
Description
<map-tag> Name of the route map, a string of 1~16
characters
ip vrf
Purpose Use this command to configure a VPN instance (VRF). Delete the
VRF with the no form of this command.
Command Modes Global configuration
Syntax ip vrf <vrf-name>
no ip vrf <vrf-name>
Syntax
Description
<vrf-name> NRF name, a string of 1~16 characters
Instructions � The name is only locally valid and it is used when some inter-
face is bounded with the VPN.
� Enter the VRF configuration mode after the command is exe-
cuted successfully.
Example This example describes how to configure a VPN named zte.
ZXR10(config)#ip vrf zte
ZXR10(config-vrf)#
ip vrf forwarding
Purpose Use this command to associate an interface with a VRF. Cancel the
association with the no form of this command.
Command Modes Interface configuration
Syntax ip vrf forwarding <vrf-name>
no ip vrf forwarding
Syntax
Description
<vrf-name> VRF name, a string of 1~16 characters
Defaults The interface is associated with the global routing table by default.
Instructions The original IP address of the interface where this command is
used is deleted, it needs reconfiguring.
Example This example describes how to associate the interface Loopback1
with the VPN named zte.
ZXR10(config)#interface loopback1
ZXR10(config-if)#ip vrf forwarding zte
Related ip vrf
Commands
rd
maximum routes
Purpose Use this command to control the number of routes entering VRF
and give the related alarm.
Command Modes VRF configuration
Syntax maximum routes limit {warn threshold | warn-only}
no maximum routes
Syntax
Description
limit Maximum number of routes allowed, range:
1-42949672955
Defaults None
Instructions This command is supported after the platform version 4. 8.21.
If it is the first time to configure this command, it needs configuring
with VRF instances.
Example 1. This example describes how to set the maximum number of
routes entering VRF as 1000. An alarm will appear when the
routes exceed 75% of the maximum upper limit.
ZXR10(config)#ip vrf zte
ZXR10(config-vrf)#Maximum routes 1000 75
monitor session
Purpose Use this command to configure port monitor session. Delete the
session with the no form of this command.
Command Modes Global configuration
Syntax monitor session <number>
no monitor session <number>
Syntax
Description
<number> Port monitor session number, range: 1~8
rd
Purpose Use this command to configure a route distinguisher (RD) for the
VRF.
Command Modes VRF configuration
Syntax rd <route-distinguisher>
Syntax
Description
<route-distinguisher> Route distinguisher of the VRF, in two
formats: <1~65535>:<0~4294967295> or
A.B.C.D:<0~65535>
route-target
Purpose Use this command to create route-target extended community at-
tribute related to the VRF. Delete the attribute with the no com-
mand.
Command Modes VRF configuration
Syntax route-target [import | export | both]<extended-community>
no route-target [import | export | both][<extended-commun
ity>]
Syntax
Description
import Imports routes to the VRF according to the
route-target extended community attribute
Syntax
Description
<vrf-name> VRF name, a string of 1~16 characters
Example This example describes how to show the route information of the
VRF named zte.
ZXR10#show ip route vrf zte
Example This example describes how to show the total number of routes in
the VRF named zte.
ZXR10#show ip route vrf-summary zte
show ip vrf
Purpose Use this command to show the VRF configuration information.
Command Modes All modes
Syntax show ip vrf [brief | detail | interfaces | summary][<vrf-nam
e>]
Syntax
Description
brief Shows the brief VRF information and related
interfaces
Example This example describes how to show the detailed configuration in-
formation of all the VRFs.
ZXR10#show ip vrf detail
tunnel checksum
Purpose Use this command to configure local GRE tunnel to enable the tun-
nel checksum option. Cancel the configuration with the no form
of this command.
Command Modes Interface configuration
Syntax tunnel checksum
no tunnel checksum
Example This example describes how to configure local GRE tunnel to enable
the tunnel checksum option.
ZXR10(config)#interface fei_5/1
ZXR10(config-if)#tunnel checksum
tunnel destination
Purpose Use this command to configure a destination address for the tun-
nel. Cancel the configuration with the no form of this command.
Command Modes Interface configuration
Syntax tunnel destination {ipv4 | ipv6}<ip-address>
no tunnel destination
Syntax
Description
<ip-address> Destination IP address or IPv6 address of the
tunnel
tunnel key
Purpose Use this command to configure local GRE tunnel to enable the key
option and configure a key. Cancel the configuration with the no
form of this command.
Command Modes Interface configuration
Syntax tunnel key <key>
no tunnel key
Syntax
Description
<key> Tunnel key, range: 0~4294967295
tunnel mode
Purpose Use this command to configure the tunnel mode. Cancel the con-
figuration with the no form of this command.
Command Modes Interface configuration
Syntax tunnel mode {gre ip | mpls traffic-eng | ipv6ip [6to4]|ipip
v6}
no tunnel mode
Syntax
Description
gre ip Configures the tunnel as GRE tunnel
Instructions ZXR10 5900 series support 6in4 and 6to4 tunnels only. The other
types of routers and switches supports all of kinds of tunnels.
Example This example describes how to configure the tunnel as GRE tunnel.
ZXR10(config)#interface fei_7/1
ZXR10(config-if)#tunnel mode gre ip
tunnel sequence
Purpose Use this command to configure local GRE tunnel to enable the tun-
nel sequence option. Cancel the configuration with the no form of
this command.
Command Modes Interface configuration
Syntax tunnel sequence
no tunnel sequence
tunnel source
Purpose Use this command to configure the source address for the tunnel.
Cancel the configuration with the no form of this command.
Command Modes Interface configuration
Syntax tunnel source {ipv4 | ipv6}<ip-address>
no tunnel source
Syntax
Description
<ip-address> Source IP address or IPv6 address of the
tunnel
Example This example describes how to set the source address of the tunnel
as 10.10.10.1.
ZXR10(config)#interface fei_2/1 ZXR10(config-if)#tunnel
source ipv4 10.10.10.1
VPLS Configuration
Table of Contents
clear flowstat vpls..............................................................55
clear flowstat vpws ............................................................56
clear mac-table vfi.............................................................56
peer ................................................................................57
pwtype ............................................................................58
show mac-filter .................................................................59
show mac-table.................................................................59
show mpls l2transport vc vpls .............................................60
show mpls l2transport vpn summary....................................62
show vfi ...........................................................................62
show vfi brief ....................................................................63
stp-tunnel enable ..............................................................64
vcid .................................................................................64
vpls apply-mac-filter ..........................................................65
vfi ...................................................................................66
vfi mspw ..........................................................................66
vpls mac-filter...................................................................67
vlan range ........................................................................68
xconnect vfi ......................................................................68
Instructions � Use this command to force to clear the MAC address forwarding
table of the VPLS instead of clear the MAC address by aging it.
� This command is provided only for ZXR10 GER and ZXR10
T64E/T128.
Example This example describes how to clear the MAC address table of vfi1.
ZXR10#clear mac-table vfi vfi1
peer
Purpose Use this command to specify the addresses of other PEs in the
same VPLS domain and establish pseudo-wires. Delete the estab-
lished pseudo-wires with the no form of this command.
Use this command to configure a pair of addresses of other PEs
and the vcid in a static multi-hop pseudo-wire S-PE instance, and
establish pseudo-wires. Delete the established pseudo-wires with
the no form of this command.
Command Modes VFI configuration and CFI MSPW configuration
Syntax For VFI configuration mode,
peer <peer-ip-address>[spoke][tunnel <tunnel-number>]
no peer <peer-ip-address>
For VFI MSPW configuration mode,
peer <peer-ip-address> vcid <vcid>
no peer <peer-ip-address>
Syntax
Description
<peer-ip-address> IP address of the peer PE, in general it is the
router identifier
ZXR10(config-vfi)#peer 4.4.4.4
Related vfi
Commands
vcid
pwtype
vfi mspw
pwtype
Purpose Use this command to specify the type of a pseudo-wire established
by the VPLS instance.
Use this command to specify the type of a pseudo-wire in a static
multi-hop pseudo-wire S-PE configuration instance.
Command Modes] VFI configuration or VFI MSPW configuration
Syntax pwtype {ethernet | ethernet-vlan}
Syntax
Description
ethernet | Pseudo-wire type: Ethernet or Ethernet-vlan
ethernet-vlan
Related vfi
Commands
vcid
peer
no peer
show mac-filter
Purpose Use this command to show detailed information about the filtering
of some VPLS MAC .
Command Modes Global configuration
Syntax show mac-filter <rule_number>
Syntax
Description
<rule_number> Rule number for MAC filtering, range: 0~127
Field Description
show mac-table
Purpose Use this command to show the MAC table of a VPLS instance.
Command Modes User EXEC and privileged EXEC
Syntax show mac-table <vfi-name>
Syntax
Description
<vfi-name> Name of the Virtual Forwarding Instance (VFI)
in the VPLS
Instructions This command is provided only for ZXR10 GER and ZXR10
T64E/T128.
Example This example describes how to show the MAC table of the vfi1.
ZXR10#show mac-table vfi1
MAC peer-address outIntLab outExtLab outInterface type
0000.0000.2009 Local NULL NULL fei_7/8 dynamic
0000.0000.3005 1.1.1.1 16 3 fei_7/5 dynamic
0000.0000.3004 1.1.1.1 16 3 fei_7/5 dynamic
Field Description
Field Description
VC ID VC identifier
show vfi
Purpose Use this command to show detailed information about some virtual
forwarding instance (VFI).
Command Modes User EXEC and privileged EXEC
Syntax show vfi <vfi-name>
Syntax
Description
<vfi-name> Designated virtual forwarding instance (VFI)
name in VPLS
Instructions This command is provided only for ZXR10 GER, ZXR10 T64E/T128,
and ZXR10 6900/8900.
Example This example describes how to show detailed information of a VPLS
virtual forwarding instance (VFI).
ZXR10(config)#show vfi aa
Flag: (spoke) Spoke type PW
(tunnelId:X) Get outer label from MPLSTE tunnel and X is
tunnel ID
Vfi name: aa VCID: 10 PwType: Ethernet StpTunnel: Stp
Enable
Local attachment circuit:
fei_3/1.1
Vlan id: 1
Neighbors connected via pseudowires:
15.15.15.15
Field Description
Field Description
stp-tunnel enable
Purpose Use this command to set stp tunnel in vfi.
Command Modes Vfi configuration
Syntax stp-tunnel enable
no stp-tunnel enable
Syntax
Description
enable Enables STP tunnel in vfi.
Instructions The platform version 4.8.22 and upgrade versions support this
command.
Use this command to set VPLS stp tunnel.
Example This example describes how to set stp tunnel in vfi.
ZXR10(config-vfi)#stp-tunnel enable
Related no vfi
Commands
vid
pwtype
peer
no peer
vpls mac-filter
vcid
Purpose Use this command to specify a virtual channel identifier (VCID) for
the VPLS instance.
Command Modes VFI configuration
Syntax vcid <vcid>
Syntax
Description
<vcid> Different VPLS instances on the same PE
have different virtual channel identifiers
(VCIDs), and VPLS instances with the same
virtual channel identifier (VCID) on different
PEs belong to the same VPLS, range:
1~4294967296
Related vfi
Commands
pwtype
peer
vpls apply-mac-filter
Purpose Use this command to apply MAC filter rule to a virtual forwarding
instance (VFI) on the PE.
Command Modes VFI configuration
Syntax vpls apply-mac-filter <rule_number> global
no vpls apply-mac-filter <rule_number> global
Syntax
Description
<rule_number> MAC filter rule number
Related no vfi
Commands
vcid
pwtype
peer
no peer
vpls mac-filter
vfi
Purpose Use this command to create a VPLS instance on the PE. Delete the
VPLS instance with the no form of this command.
Command Modes Global configuration
Syntax vfi <vfi-name>
no vfi <vfi-name>
Syntax
Description
<vfi-name> Virtual forwarding instance (VFI), namely the
name of L2 VPN
Related no vfi
Commands
vid
pwtype
peer
no peer
vfi mspw
Purpose Use this command to configure the multi-hop static pseudo wire
(PW) S-PE.
Command Modes Global configuration
Syntax vfi mspw <vfi-name>
no vfi mspw <vfi-name>
Syntax
Description
<vfi-name> S-PE MSPW VFI name
vpls mac-filter
Purpose Use this command to create a VPLS MAC filter rule, including the
entries. Delete the VPLS MAC filter rule with the no form of this
command.
Command Modes Global configuration
Syntax vpls mac-filter-rule <rule_number><single | range><filter_nu
mber><mac-addr><mac-addr>
no vpls mac-filter-rule <rule_number><filter_number>
Syntax
Description
<rule_number> MAC filter rule number
Related no vfi
Commands
vid
pwtype
peer
no peer
vlan range
Purpose Use this command to configure the VLAN range on the real inter-
face bounded with the VFI attribute.
Command Modes VFI interface configuration
Syntax vlan range <range num><bottom limit><top limit>
no vlan range <range num>
Syntax
Description
<range num> VLAN range number, range: 1~3
xconnect vfi
Purpose Use this command to add local interface to a virtual forwarding
instance (VFI). Cancel the setting with the no form of this com-
mand.
Command Modes Interface configuration
Syntax xconnect vfi <vfi-name>
no xconnect vfi
Syntax
Description
<vfi-name> Virtual forwarding instance (VFI) name
Table of Contents
clear ip rsvp authentication .................................................70
ip explicit-path ..................................................................70
ip rsvp authentication ........................................................71
ip rsvp authentication challenge ..........................................71
ip rsvp authentication challenge-imp ....................................72
ip rsvp authentication lifetime .............................................72
ip rsvp authentication key passphrase ..................................73
ip rsvp authentication type .................................................73
ip rsvp authentication window-size.......................................74
ip rsvp bandwidth ..............................................................74
ip rsvp bfd........................................................................75
ip rsvp signalling hello graceful-restart .................................76
ip rsvp signalling hello graceful-restart refresh interval ...........76
ip rsvp signalling hello graceful-restart refresh misses ............77
ip rsvp signalling hello graceful-restart timers recov-
ery-time...........................................................................77
ip rsvp signalling hello graceful-restart timers restart-
time ................................................................................78
ip rsvp signalling refresh interval .........................................78
ip rsvp signalling refresh misses ..........................................79
mpls oam(Global Configuration) ..........................................79
mpls oam(Interface Configuration).......................................80
mpls static tunnel ..............................................................80
mpls traffic-eng ds-te.........................................................81
mpls traffic-eng ds-te bc-mode............................................81
mpls traffic-eng ds-te exp-maps ..........................................82
mpls traffic-eng ds-te te-class .............................................82
mpls traffic-eng signaling advertise implicit-null.....................83
mpls traffic-eng tunnels(Global Configuration) .......................84
mpls traffic-eng tunnels(Interface Configuration) ...................84
show ip rsvp authentication ................................................85
show ip explicit-path ..........................................................86
show ip rsvp hello graceful-restart .......................................87
show ip rsvp refresh parameter ...........................................87
show mpls traffic-eng autoroute ..........................................88
show mpls traffic-eng ds-te exp-map ...................................88
show mpls traffic-eng ds-te te-class .....................................89
show mpls traffic-eng interface detail ...................................90
show mpls traffic-eng tunnels..............................................91
show mpls traffic-eng tunnels remote-tunnel.........................93
tunnel mpls oam back-up-lsp tunnel ....................................94
tunnel mpls oam tunnelid ...................................................94
tunnel mpls oam type ........................................................95
ip explicit-path
Purpose Use this command to configure the next hop for an explicit path in
traffic engineering.
Command Modes Global configuration
Syntax ip explicit-path {name <name>| identifier <identifier>} next
-address <A.B.C.D>{loose | strict}
no ip explicit-path {name <name>| identifier <identifier>}
Syntax
Description
name <name> Explicit path name, 1~16 characters
ip rsvp authentication
Purpose Use this command to enable RSVP authentication on the interface.
Cancel this configuration with the no form of this command.
Command Modes Interface configuration
Syntax ip rsvp authentication
no ip rsvp authentication
Defaults There is no RSVP authentication on the interface by default.
Instructions � This command is a must. This command must be configured
on the interface for enabling RSVP authentication.
� This command is supported after the platform version 4.8.21.
Example This example describes how to enable RSVP authentication on the
interface fei_1/1.
ZXR10(config)#interface fei_1/1
ZXR10(config-if)#ip rsvp authentication
ip rsvp authentication
challenge
Purpose Use this command to enable challenge mechanism on the inter-
face of local device. The interface as a receiver requires challenge
mechanism be used to confirm the first sequence. If the neigh-
bor fails to pass the challenge, neighbor packets are not received.
Disable this function with the no form of this command.
Command Modes Interface configuration
Syntax ip rsvp authentication challenge
ip rsvp authentication
challenge-imp
Purpose Use this command to make the interface as the sender require the
challenge mechanism be used on the interface, the interface acts
as a sender. Disable this function by using the no form of this
command.
Command Modes Interface configuration
Syntax ip rsvp authentication challenge-imp
no ip rsvp authentication challenge-imp
Defaults The behavior is enabled by default.
Instructions � This command is an optional command.
� This command is supported after the platform version 4.8.21.
Example This example describes how to make the interface as the sender
require the challenge mechanism be used on the interface fei_1/1.
ZXR10(config)#interface fei_1/1
ZXR10(config-if)#ip rsvp authentication challenge-imp
Syntax
Description
md5 MD5 authentication type
ip rsvp authentication
window-size
Purpose Use this command to configure the authentication window size.
Restore the default value with the no form of this command.
Command Modes Interface configuration
Syntax ip rsvp authentication window-size <window-size>
no ip rsvp authentication window-size
Syntax
Description
<window-size> Authentication window size, range: 1~64
ip rsvp bandwidth
Purpose Use this command to configure the TE bandwidth in interface con-
figuration mode on the interface. Restore default with the no form
of this command.
ip rsvp bfd
Purpose Use this command to configure RSVP Bidirectional Forwarding De-
tection (BFD) function on the interface. Delete the configuration
with the no form of this command.
Command Modes Interface configuration
Syntax ip rsvp bfd
no ip rsvp bfd
Defaults The behavior of this command is disabled by default.
Instructions When there is no tunnel passing through this interface, Bidirec-
tional Forwarding Detection (BFD) sessions are not established
even if this command is configured.
Example This example describes how to configure Bidirectional Forwarding
Detection (BFD) function on the interface.
ZXR10(config)#interface fei_1/1
ZXR10(config-if)#ip rsvp bfd
Syntax
Description
<interval-value> Time interval of sending refresh packets in
seconds, default: 30000 milliseconds, range:
5000~4294967295
Example This exmaple describes how to configure the time interval of send-
ing refresh packets as 60000 milliseconds.
ZXR10(config)#ip rsvp signalling refresh interval 60000
mpls oam(Global
Configuration)
Purpose Use this command to enable MPLS OAM. If not enabling the related
MPLS OAM, the configuration does not take effect. Disable MPLS
OAM with the no command.
Command Modes Global configuration
Syntax mpls oam
no mpls oam
Defaults MPLS OAM is disabled by default.
Instructions Enables MPLS traffic engine in global configuration firstly.
Example This example describes how to enable MPLS OAM in devices.
ZXR10(config)#mpls oam
mpls oam(Interface
Configuration)
Purpose Use this command to enable MPLS OAM. If not enabling the related
MPLS OAM, the configuration does not take effect. Disable MPLS
OAM in tunnel with the no command.
Command Modes Tunnel interface configuration
Syntax mpls oam
no mpls oam
Defaults MPLS OAM is disabled by default.
Syntax
Description
enable Enables STP tunnel in vfi.
Syntax
Description mam Maximum allocation model
0 0 7
1 1 7
2 — —
3 — —
4 0 0
5 1 0
6 — —
7 — —
mpls traffic-eng
tunnels(Global
Configuration)
Purpose Use this command to enable MPLS traffic engineering signalling.
Disable the function with the no form of this command.
Command Modes Global configuration
Syntax mpls traffic-eng tunnels
no mpls traffic-eng tunnels
Defaults MPLS traffic engineering is not supported by default..
Instructions To enable the router to support MPLS traffic engineering, users
must configure this command in the global configuration mode and
enable MPLS traffic engineering on the related interfaces.
Example This example describes how to enable MPLS TE.
ZXR10(config)#mpls traffic-eng tunnels
mpls traffic-eng
tunnels(Interface
Configuration)
Purpose Use this command to enable MPLS traffic engineering signalling
on a interface. Disable the function with the no form of this com-
mand.
Command Modes Interface configuration
Field Description
Field Description
show ip explicit-path
Purpose Use this command to show detailed information about the explicit
path.
Command Modes All modes except user EXEC
Syntax show ip explicit-path [name <name>| identifier <identifier>]
Syntax
Description name <name> Path name
Instructions This command is used to show detailed information about the ex-
plicit path. If the router does not support MPLS traffic engineering,
there is no such information displayed.
Example The following contents will be shown after using this command.
(The data below are for reference only):
ZXR10#show ip explicit-path
PATH namepath_123
1. next-address 192.1.1.1 strict
2. next-address 1.1.1.1 loose
PATH identifier 123
1. next-address 10.40.88.36 strict
2. next-address 3.2.1.6 loose
ZXR10#show ip explicit-path name path_123
PATH namepath_123
1. next-address 192.1.1.1 strict
2. next-address 1.1.1.1 loose
Field Description
Filed Description
Field Description
Field Description
TunnelId Tunnel ID
Example The following contents will be shown after using this command.
(The data below is for reference only):
ZXR10#show mpls traffic-eng ds-te exp-map
Exp OutTunnel Ctype
3 1
4 1 2
Field Description
Field Description
out_lsp_counter: 0
in_lsp_counter: 0
Field Description
Field Description
Example This example shows brief information (the data below is for refer-
ence only).
ZXR10#show mpls traffic-eng tunnels brief
Signalling Summary:
LSP Tunnels Process: running
RSVP Process: running
Forwarding: enabled
TUNNEL NAME DESTINATION UP IF DOWN IF STATE/PROT
Tunnel_1 10.112.0.12 - unknown up/down
Tunnel_2 10.110.0.10 - fei_1/4 up/up
Tunnel_3 10.110.0.20 fei_1/2fei_1/4 up/up
Field Description
Config Parameters:
Bandwidth: 0 kbps (Global) Priority: 0 0 Affinity: 0x0/0x0
Metric Type: IGP (default) Fast-reroute: enable
InLabel:-
OutLabel:pos_5/1,16
RSVP Signalling Info :
src 4.4.4.4 , Dst 2.2.2.2, Tun_Id 11, Tun_Instance 6
RSVP Path Info:
Explicit Route: 67.1.1.2 67.1.1.1 66.1.1.1 66.1.1.2 2.2.2.2
Record Route: NONE
Tspec:ave rate= 0 kbits, burst= 8000 bytes,
peak rate = 0 kbits
RSVP Resv Info:
Record Route: NONE
Fspec:ave rate= 0 kbits, burst= 8000 bytes,
peak rate = 0 kbits
History:
Tunnel:
Time since created: 0 days, 5 hours, 17 minutes
Prior LSP:0
Current LSP: Uptime:0 days, 5 hours, 16 minutes
Field Description
Field Description
Example This example describes how to show information about the re-
mote tunnel. The ingress address is 1.1.1.15, the egress address
is1.1.1.25, the tunnel identifier is 2, and the instance identifier is
6.
ZXR10#show mpls traffic-eng tunnels remote-tunnel
tunnel-id 2 lsp-id 6 ingress-id 1.1.1.15 egress-id 1.1.1.25
LSP Tunnel tunnel_2 is signaled, connection is up
InLabel:fei_1/1, 0
OutLabel:-
RSVP Signalling Info :
src 1.1.1.15 , Dst 1.1.1.25, Tun_Id 2, Tun_Instance 6
RSVP Path Info:
Explicit Route: 80.1.2.2 1.1.1.25
Record Route: NONE
Tspec:ave rate= 0 kbits, burst= 2000 bytes,
peak rate = 0 kbits
RSVP Resv Info:
Record Route: NONE
Field Description
Syntax
Description
< tunnel-index > Tunnel number of the reverse direction
Defaults The default metric type is IGP. The default metric value is IGP met-
ric value.
Instructions This command is supported after the platform version 4.8.20.
Example 1. This example describes how to configure the metric value of
automatic routes as 2.
ZXR10(config)#interface tunnel5
ZXR10(config-if)# tunnel mpls traffic-eng autoroute metric 2
ZXR10(config-if)# tunnel mpls traffic-eng autoroute metric
absolute 2
ZXR10(config-if)# tunnel mpls traffic-eng autoroute metric
relative -2
ZXR10(config)#interface tunnel5
ZXR10(config-if)# tunnel mpls traffic-eng autoroute metric
relative -2
Field Description
ZXR10(config)#interface fei_5/1
ZXR10(config-if)#tunnel mpls traffic-eng record-route
FRR Configuration
Table of Contents
ip rsvp signalling hello...................................................... 103
ip rsvp signalling hello refresh interval................................ 103
ip rsvp signalling hello refresh misses................................. 104
mpls traffic-eng backup_tunnel ......................................... 104
show ip backup route ....................................................... 105
show ip rsvp hello instance detail....................................... 105
show ip rsvp hello instance summary ................................. 106
show mpls traffic-eng fast-reroute ..................................... 107
show mpls traffic-eng interface.......................................... 108
tunnel mpls traffic-eng fast-reroute.................................... 109
mpls traffic-eng
backup_tunnel
Purpose Use this command to assign one or more backup tunnels to a pro-
tected interface.
Command Modes Interface configuration
Syntax mpls traffic-eng backup_tunnel <tunnel-id>
Type:respond to request
I/F: Eth1/1
LSP protectiong:0
Refresh Interval(msec)
Configured:100
Src_instance 0Xa9f07c13 , Dst_instance 0X9BBAA407
Field Description
Field Description
Field Description
Field Description
Defaults All the interfaces with RSVP traffic engineering function will be dis-
played by default.
Instructions This command is supported after the platform version 4.6.02.
Example 1. This example displays information about interfaces where
RSVP traffic engineering is enabled.
ZXR10#show mpls traffic-eng interface
I/F TE Hello interval(ms) misses BK-PATH i/f max(kpbs)
flow max(kpbs)
fei_1/1 YES NO 100 4 NO 75000 75000
fei_1/2 YES NO 100 4 NO 75000 75000
fei_1/4 YES YES 100 4 TUL3 75000 75000
Field Description
Field Description