MPLS Commands
This chapter is a reference for the MPLS commands:
admin-groups
Use this command to create a name-to-value binding for an administrative group.
Note: Only 32 administrative groups can be configured at one time.
Use the no parameter with this command to remove a named administrative group.
Command Syntax
admin-group NAME <0-31>
no admin-group NAME <0-31>
Parameters
NAME
Name of administrative group
<0-31>
The value of the administrative group
Default
By default, mpls admin group is disabled
Command Mode
Configure mode
Applicability
This command was introduced before OcNOS version 1.3.
Example
#configure terminal
• (config)#admin-group mygroup 3
allow-l2protocol-peer
Use this command to peer L2CP packets.
Command Syntax
allow-l2protocol-peer
no allow-l2protocol-peer
Parameter
NA
Default
By default, L2CP packets are tunneled
Command Mode
Configure Pseudowire mode
Applicability
This command is introduced in OcNOS-SP version 5.0
Example
VPWS sub-mode
OcNOS(config)#mpls l2-circuit vc10 10 1.1.1.1
OcNOS(config-pseudowire)#allow-l2protocol-peer
OcNOS(config-pseudowire)#no allow-l2protocol-peer
bandwidth
Use this command to specify the maximum bandwidth to be used for a band-class. The bandwidth value is in bits.
Command Syntax
bandwidth BANDWIDTH setup-priority <0-7> hold-priority <0-7>
Parameter
BANDWIDTH
<1-999>k for 1 to 999 kilo bits/s
<1-999>m for 1 to 999 mega bits/s
<1-100>g for 1 to 100 giga bits/s
setup-priority
Indicate the setup-priority parameter
<0-7>
The actual setup priority value
hold-priority
Indicate the hold-priority parameter
<0-7>
The actual hold priority value
Default
By default, bandwidth priority is 0
Command Mode
Bandwidth-class mode
Applicability
This command was introduced before OcNOS version 1.3.
Example
#configure terminal
(config)#mpls bandwidth-class new-BC
(config-mpls-bw)#bandwidth 100m setup-priority 1 hold-priority 1
clear mpls counters ldp
Use this command to clear traffic statistics for FTNs and ILMs configured by LDP.
Command Syntax
clear mpls counters ldp ((ftn (|A.B.C.D/M)) | (ilm (|A.B.C.D/M)) |)
Parameter
ftn
FEC-to-NHLFE map counters
A.B.C.D/M
FEC prefix
ilm
Incoming label map counters
A.B.C.D/M
FEC prefix
Command Mode
Exec mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
#clear mpls counters ldp
clear mpls counters rsvp
Use this command to clear traffic statistics for LSPs configured by RSVP.
Command Syntax
clear mpls counters rsvp ((tunnel-name NAME) | (tunnel-id TUNNEL_ID) | (node-role (ingress | transit | egress)) |)
Parameter
NAME
RSVP tunnel name
TUNNEL_ID
RSVP tunnel identifier
ingress
LSP role is ingress
transit
LSP role is transit
egress
LSP role is egress
Command Mode
Exec mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
#clear mpls counters rsvp
clear mpls counters static
Use this command to clear traffic statistics for statically configured FTNs and ILMs.
Command Syntax
clear mpls counters static ((ftn (|A.B.C.D/M)) | (ilm (|A.B.C.D/M)) |)
Parameter
ftn
FEC-to-NHLFE map counters
A.B.C.D/M
FEC prefix
ilm
Incoming label map counters
A.B.C.D/M
FEC prefix
Command Mode
Exec mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
#clear mpls counters static
clear mpls l2-circuit statistics
Use this command to clear MPLS traffic statistics for l2 circuit.
Command Syntax
clear mpls l2-circuit NAME statistics(access-port|network-port|)
Parameters
name
Name of L2 circuit
access-port
Displays the access port statistics
network-port
Displays the network port statistics
Command Mode
Exec mode and Privileged Exec mode
Applicability
This command was introduced before OcNOS version 1.3.
Example
#clear mpls l2-circuit vcl statistics
group-id
Use this command to configure a specific group identifier to existing group with a group name in the MPLS layer-2 virtual circuit.
Use the no parameter with this command to remove group identifier from the MPLS layer-2 virtual circuit
Command Syntax
group-id <1-4294967295>
no group-id
Parameters
<1-4294967295>
Value for group identifier
Default
By default, group-id is disabled. If group-name is configured, default group-id is the first available identifier.
Command Mode
Configure Pseudowire mode
Applicability
This command was introduced before OcNOS version 1.X
Example
#configure terminal
(config)#mpls l2-circuit mycircuit 45678 1.2.3.4
(config-pseudowire)#group-name group-1
(config-pseudowire)#group-id 11
group-name
Use this command to map the MPLS layer-2 virtual circuit with a specific group.
Use the no parameter with this command to remove group from the MPLS layer-2 virtual circuit
Command Syntax
group-name NAME
no group-name
Parameters
NAME
String identifying group NAME
Default
By default, group-name is disabled
Command Mode
Configure Pseudowire mode
Applicability
This command was introduced before OcNOS version 1.X
Example
#configure terminal
(config)#mpls l2-circuit mycircuit 45678 1.2.3.4
(config-pseudowire)#group-name group-1
control-word
Use this command to enable control word for the MPLS layer-2 virtual circuit.
Use the no parameter with this command to disable control word from the MPLS layer-2 virtual circuit.
Command Syntax:
control-word
no control-word
Parameters
NA
Default
By default, control-word is disabled
Command Mode
Configure Pseudowire mode
Applicability
This command was introduced before OcNOS version 1.X
Example
#configure terminal
(config)#mpls l2-circuit mycircuit 45678 1.2.3.4
(config-pseudowire)#control-word
label-switching
Use this command to either enable label-switching on an interface or to modify the label-space to which this interface is bound.
Use the no parameter and the interface is bound to the platform-wide (zero) label-space.
Note: When label-switching enabled on VLAN interface, MTU value must be manually increased by at least 20 bytes on Parent interfaces of VLAN. Example, default MTU must be set as 1520 instead of 1500 on label-switching parent interface label switched VLAN interface. (Parent Interface MTU >= label switched VLAN interface MTU + 20).
Command Syntax
label-switching
no label-switching
Default
By default, label switching is disabled
Command Mode
Interface mode
Applicability
This command was introduced before OcNOS version 1.3.
Example
This example shows the enabling of label switching on the xe1 interface.
#configure terminal
(config)#interface xe1
(config-if)#label-switching
match vlan
Use this command to configure a match VLAN action for a service template.
Use the no parameter to remove a match VLAN action for a service template.
Command Syntax
match (all | double-tag outer-vlan <2-4094> inner-vlan VLAN_RANGE | outer-vlan VLAN_RANGE | untagged)
no match (double-tag outer-vlan <2-4094> inner-vlan VLAN_RANGE | outer-vlan VLAN_RANGE | untagged)
Parameter
all
Accept all matches
double-tag
Double tag match
outer-vlan
Double tag outer VLAN
<2-4094>
Outer VLAN identifier
inner-vlan
Double tag inner VLAN
VLAN_RANGE
VLAN identifier <2-4094> range: 2-5,10 or 2-5,7-19
outer-vlan
Single tag outer-VLAN
VLAN_RANGE
VLAN identifier <2-4094> range: 2-5,10 or 2-5,7-19
untagged
Match untagged. This parameter depends on the switchport dot1q ethertype configuration. Packets received with a TPID other than 0x8100 (default value) and the TPID value configured by switchport dot1q ethertype are treated as untagged. For example, if you give the command:
switchport dot1q ethertype 0x8888
then packets received with TPID 0x8100 or 0x88a8 are treated as tagged. Packets received with other TPIDs are treated as untagged.
Command Mode
MPLS SVC mode
Applicability
This command was introduced before OcNOS version 1.3 and updated in OcNOS-SP version 1.0.
The inner vlan range option added in OcNOS-SP version 4.1.
Example
#configure terminal
(config)#service-template C2
(config-svc)#match double-tag outer-vlan 10 inner-vlan 20
(config-svc)#exit
(config)#service-template C2
(config-svc)#no match double-tag outer-vlan 10 inner-vlan 20
(config-svc)#exit
#configure terminal
(config)#service-template C3
(config-svc)#match double-tag outer-vlan 10 inner-vlan 200-300
(config-svc)#exit
(config)#service-template C3
(config-svc)#no match double-tag outer-vlan 10 inner-vlan 200-300
(config-svc)#exit
#configure terminal
(config)#service-template t1
(config-svc)#match untagged
(config-svc)#rewrite ingress push 100
mpls ac-group
Use this command to create a new access circuit group for MPLS.
Use the no parameter with this command to remove an access circuit group.
Command Syntax
mpls ac-group NAME <1-4294967295>
no mpls ac-group NAME
Parameter
NAME
The name of the access circuit group
<1-4294967295>
The identifier for the group; used in LDP
Default
By default, mpls ac group is disabled
Command Mode
Configure mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
#configure terminal
(config)#mpls ac-group new-ac 123
(config)#no mpls ac-group new-ac
mpls bandwidth-class
Use this command to create a new bandwidth class name. Using this command changes the command mode to Bandwidth-class mode.
Use the no parameter with this command to remove a bandwidth class name.
Command Syntax
mpls bandwidth-class NAME
no mpls bandwidth-class NAME
Parameter
NAME
Name of the bandwidth class
Default
By default, mpls bandwidth-class is disabled
Command Mode
Configure mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
#configure terminal
(config)#mpls bandwidth-class new-BC
(config-mpls-bw)#
(config)#no mpls bandwidth-class new-BC
mpls ftn-ecmp ldp
Use this command to enable (Equal-Cost Multi-Path) ECMP for Label Distribution Protocol (LDP) Forwarding Table Entry (FTN). FTN contains the details of forwarding the labeled packets.
Use no command to disable ECMP for LDP FTN.
Command Syntax
mpls ftn-ecmp ldp
no mpls ftn-ecmp ldp
Parameter
None
Default
LDP ECMP on the ingress node is enabled by default, and FTN is configured in the forwarder with only the first path.
Command Mode
Configure mode
Applicability
This command was introduced before OcNOS version 6.4.1.
Examples
The below example shows how to enable and disable ECMP for LDP FTN:
#configure terminal
(config)#mpls ftn-ecmp ldp
(config)# commit
(config)# no mpls ftn-ecmp ldp
(config)# commit
mpls ftn-entry tunnel-id
This command will be used to create a static tunnel.
In hardware, it creates a logical interface to which services can be mapped.
Command Syntax
mpls ftn-entry tunnel-id <1-5000> A.B.C.D/M LABEL A.B.C.D IFNAME (primary|secondary|)
mpls ftn-entry tunnel-id <1-5000> A.B.C.D A.B.C.D LABEL A.B.C.D IFNAME (primary|secondary|)
mpls ftn-entry tunnel-id <1-5000> (A.B.C.D/M|A.B.C.D A.B.C.D) <16-1048575> A.B.C.D IFNAME ((secondary|primary)|)
no mpls ftn-entry tunnel-id <1-5000> A.B.C.D/M WORD A.B.C.D IFNAME (primary|secondary|)
no mpls ftn-entry tunnel-id <1-5000> A.B.C.D A.B.C.D WORD A.B.C.D IFNAME (primary|secondary|)
Command Syntax
mpls ftn-entry tunnel-id <1-5000> X:X::X:X/M <16-1048575> X:X::X:X IFNAME ((secondary|primary)|)
mpls ilm-entry <16-52443> swap <16-52443> IFNAME X:X::X:X X:X::X:X/M
mpls ilm-entry <16-52443> IFNAME swap <16-52443> IFNAME X:X::X:X X:X::X:X/M
no mpls ftn-entry tunnel-id <1-5000> X:X::X:X/M <16-1048575> X:X::X:X IFNAME ((secondary|primary)|)
no mpls ilm-entry <16-52443> swap <16-52443> IFNAME X:X::X:X X:X::X:X/M
no mpls ilm-entry <16-52443> IFNAME swap <16-52443> IFNAME X:X::X:X X:X::X:X/M
Parameters
<1-5000>
The tunnel ID value
A.B.C.D/M
Forwarding equivalence class with mask
A.B.C.D
Mask for forwarding equivalency class
LABEL
Outgoing label
A.B.C.D
Nexthop IPv4 address
IFNAME
Outgoing interface name
INDEX
FTN index for update
Note: When the INDEX parameter is passed, the FTN entry is updated. When INDEX is not used, a new FTN entry is created.
primary
The primary LSP; default is primary
secondary
The secondary LSP Command Mode
Default
By default, mpls ftn-entry tunnel-id are disabled
Command mode
Configure mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
#configure terminal
(config)#mpls ftn-entry tunnel-id 2 10.10.0.0/24 16 1.2.3.4 xe1 secondary
(config)#no mpls ftn-entry tunnel-id 2 10.10.0.0/24 16 1.2.3.4 xe1 secondary
mpls ftn-entry
Use this command to create a static LSP. In the hardware, this command creates an IP route with outgoing MPLS parameters.
Command Syntax
mpls ftn-entry (A.B.C.D/M|A.B.C.D A.B.C.D) <16-52443> A.B.C.D IFNAME
no mpls ftn-entry A.B.C.D/M LABEL A.B.C.D IFNAME
Parameters
A.D.C.D/M
Forwarding Equivalence Class with Mask
LABEL
Outgoing label <16-1048575>
A.B.C.D
Nexthop IPv4 address
IFNAME
Outgoing interface name
INDEX
FTN index for update
Default
By default, mpls ftn-entry are disabled
Command Mode
Configure mode
Applicability
This command was introduced before OcNOS version 1.3.
Example
#configure terminal
(config)# mpls ftn-entry 2.2.2.2/32 111 20.0.0.2 xe1
(config)# no mpls ftn-entry 2.2.2.2/32 111 20.0.0.2 xe1
mpls ilm-entry pop
Use this command to create an ILM entry in the ILM table to which a POP incoming interface is bound. Upon receipt of a labeled packet on an MPLS-enabled router, a lookup is done based on the incoming label in the ILM table. If a match is found, the packet may either be label-switched downstream, or popped and passed over IP. In a pop operation, an outgoing label is not needed as is either accepted or forwarded over IP. The nexthop option is also not mandatory because the FEC IP address could be a local IP address.
Use the no option with the command to delete an ILM entry. If there is no match, an error message displays.
Command Syntax
mpls ilm-entry LABEL (pop)
no mpls ilm-entry LABEL (pop)
Parameters
LABEL
Incoming label value
IFNAME
Incoming interface name
pop
Pop the incoming label
Default
By default, mpls ilm-entry are disabled
Command Mode
Configure mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
#configure terminal
(config)#mpls ilm-entry 100 pop
mpls ilm-entry swap
Use this command to create an ILM entry in the ILM table to which a swap incoming interface is bound. Upon receipt of a labeled packet on an MPLS-enabled router, a lookup is done based on the incoming label in the ILM table. If a match is found, the packet may either be label-switched downstream, or popped and passed over IP.
Use the no option with the command to delete an ILM entry. If there is no match, an error message displays.
Command Syntax
mpls ilm-entry <16-52443> swap <16-52443> IFNAME A.B.C.D (A.B.C.D/M|A.B.C.D A.B.C.D)
mpls ilm-entry <16-52443> IFNAME swap <16-52443> IFNAME A.B.C.D (A.B.C.D/M|A.B.C.D A.B.C.D)
no mpls ilm-entry <16-52443> swap <16-52443> IFNAME A.B.C.D (A.B.C.D/M|A.B.C.D A.B.C.D)
no mpls ilm-entry <16-52443> IFNAME swap <16-52443> IFNAME A.B.C.D (A.B.C.D/M|A.B.C.D A.B.C.D)
Parameters
LABEL
Incoming label value range <16-1048575>
IFNAME
Incoming interface name
swap
Specify swap for the incoming label
LABEL
Configure an outgoing label with a value from <16-1048575>
Note: A value of 2 indicates explicit NULL and a value of 3 indicates implicit NULL.
IFNAME
Outgoing interface name
A.B.C.D
Nexthop IPv4 address
A.B.C.D
The FEC for which this ILM entry is created
A.B.C.D/M
The FEC for which this ILM entry is created, plus mask
A.B.C.D
A mask for forwarding equivalence class mask
<1-429496725>
ILM index update
Note: When an ILM index value is passed, the ILM entry is updated. If the ILM index is not used, then a new ILM entry is created.
Default
By default, mpls ilm-entry are disabled
Command Mode
Configure mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
#configure terminal
(config)#mpls ilm-entry 16 xe1 swap 17 xe2 1.1.1.1 1.1.1.1/3 1
mpls ingress-ttl
Use this command to set a Time to Live (TTL) value for LSPs for which this LSR is the ingress.
Use the no parameter with this command to unset the custom TTL value being used for LSPs for which this LSR is the ingress.
Command Syntax
mpls ingress-ttl <0-255>
no mpls ingress-ttl
Parameter
<0-255>
Set the TTL value to use
Default
By default, mpls ingress-ttl value is 64
Command Mode
Configure mode
Applicability
This command was introduced before OcNOS version 1.3.
Example
#configure terminal
(config)#mpls ingress-ttl 3
mpls l2-circuit
Use this command to create an instance of an MPLS layer 2 virtual circuit, without specifying a group to which the VC belongs. Refer to
group-name for information on how to create an MPLS “with” a specific group. A Layer-2 MPLS Virtual Circuit instance may be bound to any interface on the router; however, only one interface may be bound to a Layer-2 circuit at a time.
Use the no parameter with this command to delete an instance of an MPLS Layer-2 Virtual Circuit.
Command Syntax
mpls l2-circuit NAME <1-4294967295> A.B.C.D
mpls l2-circuit NAME <1-4294967295> A.B.C.D mode raw
mpls l2-circuit NAME <1-4294967295> A.B.C.D mode tagged
no mpls l2-circuit NAME <1-4294967295> A.B.C.D
Parameters
NAME
String identifying the MPLS Layer-2 virtual circuit
<1-4294967295>
A 32-bit identifier to which the L2 circuit name should be mapped
A.B.C.D
IPv4 address for the MPLS L2 virtual circuit end-point
Default
By default, mpls l2-circuit is disabled
Command Mode
Configure mode
Applicability
This command was introduced before OcNOS version 1.3.
Example
#configure terminal
(config)#mpls l2-circuit mycircuit 45678 1.2.3.4
mpls-l2-circuit NAME
Use this command in the Interface mode to bind an interface to a MPLS Layer-2 Virtual Circuit created in the configure mode. The qos profiles cos-to-queue and queue-color-to-cos are optional parameters and are configurable dynamically on the virtual circuit by repeating mpls-l2-circuit command along with one or both profile options. In order to dynamically unbind the profile, same command pattern should be repeated by removing the profile which needs to be unbound from the command. Refer ‘qos profile’ commands from configuration guide for more details about qos profiles.
Use the no parameter with this command to delete this instance.
Note: QoS profiles are supported only on vlan based virtual circuits. For port based virtual circuits (service template with match-all option), qos profiles can be bound to interface which will take effect, otherwise default qos profile will take effect. Refer ‘qos map-profile’ command for binding qos profiles on interface.
Note: For untagged traffic forwarded via port based virtual circuits (service template with match-all option), queue will be 0 by default. In order to assign a non-zero queue for untagged traffic, use ‘qos untagged-priority <0-7>’ command on the interface.
Note: QoS profile queue-color-to-cos will take effect when MPLS model is uniform. For virtual circuit without rewrite option, ‘qos remark-cos’ need to be additionally configured to update cos. For virtual circuits with rewrite action pop, cos will always be updated based on qos profile irrespective of the MPLS model.
Command Syntax
mpls-l2-circuit NAME service-template NAME ({cos-to-queue NAME | queue-color-to-cos NAME}|) ((primary|secondary)|)
no mpls-l2-circuit NAME
Parameters
NAME
A string identifying the MPLS Layer-2 Virtual Circuit
primary
Identify L2 circuit as the primary link
secondary
Identify L2 circuit as the secondary link; the secondary link is not activated unless the primary link fails
service-template
Customer service template
NAME
Name of Customer service template
cos-to-queue
Profile for cos to queue map
NAME
Profile name for cos to queue map
queue-color-to-cos
Profile for queue color to cos map
NAME
Profile name for queue color to cos map
Default
By default, mpls l2-circuit is disabled
Command Mode
Interface mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
#configure terminal
(config)#interface xe1
(config-if)#switchport
(config-if)#mpls-l2-circuit vc1 service-template C1
(config-if)#no mpls-l2-circuit vc1
(config)#interface xe2
(config-if)#switchport
(config-if)#mpls-l2-circuit vc2 service-template C2
(config-if)#no mpls-l2-circuit vc2
(config-if)#mpls-l2-circuit vc2 service-template C2
(config-if)#no mpls-l2-circuit vc2
(config)#interface xe2
(config-if)#switchport
(config-if)#mpls-l2-circuit vc2 service-template C2
(config-if)#no mpls-l2-circuit vc2
(config-if)#mpls-l2-circuit vc2 service-template C2
(config-if)#no mpls-l2-circuit vc2
mpls l2-circuit-fib-entry
Use this command to add a static Layer-2 MPLS Virtual Circuit FIB entry.
Use the no parameter with this command to delete a Layer-2 MPLS Virtual Circuit FIB entry.
Command Syntax
mpls l2-circuit-fib-entry VC-ID
mpls l2-circuit-fib-entry VC-ID LABEL LABEL A.B.C.D IFNAME NAME
no mpls l2-circuit-fib-entry VC-ID
Parameters
VC-ID
Virtual Circuit ID
LABEL
Incoming label in the range of <16-1048575>
LABEL
Outgoing label in the range of <16-1048585>
A.B.C.D
Nexthop IPv4 address
IFNAME
Provider-facing interface name
NAME
Access interface name or VC to be stitched to.
Default
By default, mpls l2-circuit is disabled
Command Mode
Configure mode
Applicability
This command was introduced before OcNOS version 1.3.
Example
#configure terminal
(config)#mpls l2-circuit-fib-entry 10 100 200 10.10.10.10 xe1 xe2
mpls label mode
Use this command to configure label allocation mode for VPNv4 and/or VPNv6 routes. Label allocation mode as per-vrf is the default mode in which single mpls-label is allocated for all VPN Routes in a VRF. Label allocation mode as per-prefix will allocate unique mpls-labels per VPN route in a VRF. If allocation model is disabled using no mpls label mode configuration, the configuration reverts back to default-mode .
Label allocation mode is the local property i.e. the VRF routes are distributed to BGP-peer as per the mode configured on local node. When per-vrf mode is configured, single label for all routes in the VRF will be distributed to peer node.
Label allocation mode can be set for all VRFs or selective VRFs by these commands:
mpls label mode vpnv4 all-vrfs per-vrf
• If the admin selects the per-vrf mode for the entire system, then all VRFs switches to per-vrf allocation mode except for the VRFs that has been explicitly configured using command mpls label mode vpnv4 vrf WORD per-prefix. Label allocation mode set using specific VRF takes precedence over all-vrf command.
mpls label mode vpnv6 vrf WORD per-vrf
• If the admin selects per-vrf mode for a particular vrf say vrf1, then only vrf1 switches to per-vrf mode and rest of the vrfs will remain in default allocation mode.
Command Syntax
mpls label mode (vpnv4|vpnv6|all-afs) (all-vrfs|vrf WORD) (per-prefix|per-vrf)
no mpls label mode (vpnv4|vpnv6|all-afs) (all-vrfs|vrf WORD) (per-prefix)
mpls label mode 6pe per-prefix
no mpls label mode 6pe per-prefix
Parameters
vrf WORD
Enter a string to identify the VRF
all-vrfs
All the VRFs
per-prefix
Unique MPLS labels are allocated per VPN route in a VRF
per-vrf
Single MPLS labels are allocated for all VPN routes in a VRF
all-afs
All the address families
Default
By default, per-vrf is enabled.
Command Mode
Configuration mode
Applicability
This command was introduced before OcNOS-SP version 1.0.
Example
#configure terminal
(config)#mpls label mode all-afs all-vrfs per-vrf
(config)#no mpls label mode all-afs all-vrfs
(config)#mpls label mode 6pe per-prefix
(config)#no mpls label mode 6pe per-prefix
mpls local-packet-handling
Use this command to enable the labeling of locally generated TCP packets. All other locally generated packets are not looked at by the MPLS Forwarder
Use the no parameter with this command to disable labeling of locally generated TCP packets.
Command Syntax
mpls local-packet-handling
no mpls local-packet-handling
Default
By default, mpls local packet handling is disabled
Parameters
None
Command Mode
Configure mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
#configure terminal
(config)#mpls local-packet-handling
mpls lsp-model
Use this command to configure the MPLS LSP model as Uniform.
Use the no parameter with this command to configure the MPLS LSP model as Pipe or short-pipe.
Command Syntax
mpls lsp-model uniform
no mpls lsp-model uniform
Parameter
None
Default
By default, model configuration is pipe for XGS devices.
Following are the default behaviors:
For L3VPN services, model is short-pipe by default and pipe model can be achieved by configuring policy-maps with match exp and set queue.
For L2VPN services, short-pipe model is not supported and default model is pipe.
For L2VPN services with rewrite action pop, cos value will always be updated from qos profile irrespective of model.
For L2VPN services without rewrite, uniform model command doesn't take effect until 'qos remark-cos' is configured on egress interface.
Command Mode
Configure mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
#configure terminal
(config)#mpls lsp-model uniform
(config)#exit
#configure terminal
(config)#no mpls lsp-model uniform
(config)#exit
mpls lsp-stitching
Use this command to stitch the LSP segment for an FEC created via a different label signaling protocol.
Use the no form of this command to disable this configuration.
Command Syntax
mpls lsp-stitching
no mpls lsp-stitching
Parameters
None
Default
By default, MPLS LSP stitching is disabled.
Command Mode
Configure mode
Applicability
This command was introduced in OcNOS-SP version 1.0.
Command Example
#configure terminal
(config)#mpls lsp-stitching
mpls map-route
Use this command to map a prefix to an FEC.
Use the no parameter with this command to disable this configuration.
Command Syntax
mpls map-route (A.B.C.D/M|A.B.C.D A.B.C.D) (A.B.C.D/M|A.B.C.D A.B.C.D)
no mpls map-route (A.B.C.D/M|A.B.C.D A.B.C.D)
Parameters
A.B.C.D
IPv4 prefix to map
A.B.C.D/M
IPv4 prefix to map, plus mask
A.B.C.D
Mask for IPv4 prefix to map
A.B.C.D/M
Mask for IPv4 prefix to map, plus mask.
A.B.C.D
IPv4 forwarding equivalence class for route to map
A.B.C.D
Mask for IPv4 forwarding equivalence class
Default
By default, mpls map-route is disabled
Command Mode
Configure mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
In the following examples 5.6.7.8/32 is the FEC for an LSP, and 1.2.3.4 is the prefix to be mapped.
#configure terminal
(config)#mpls map-route 1.2.3.4/32 5.6.7.8/32
#configure terminal
(config)#mpls map-route 1.2.3.4 255.255.255.255 5.6.7.8 255.255.255.255
mpls min-label-value
Use this command to configure minimum and maximum label value for a label space. Use module names (rsvp | ldp | bgp) to configure minimum and maximum label value for module in a label space, minimum and maximum label space value for a module should be within the range of label space being used. After setting minimum and maximum label value for a label space, make sure to bind the label space to an interface.
Use the no parameter with this command to use the default minimum and maximum label value for all the label pools.
Note: The system allows label-space range (maximum and minimum label values) changes for interface-specific label spaces only. The platform-wide label-space range cannot be modified.
Note: Only label-space 0 (global) is supported. Any label-space other than 0, is not supported.
Command Syntax
mpls (rsvp|ldp|bgp|) min-label-value <16-1048575> max-label-value <16-1048575> (label-space <0-60000>|)
no mpls min-label-value max-label-value (label-space <0-60000>|)
no mpls (rsvp|ldp|bgp) (label-space <0-60000>|))
Parameters
rsvp
Label range value for RSVP
ldp
Label range value for LDP
bgp
Label range value for BGP
min-label-value
Specify the minimum label value
<16-1048575>
Minimum size to be used for label pools or protocol range
max-label-value
Specify the maximum label value
<16-1048575>
Maximum size for all label pools
label-space
Label space for which the minimum value needs to be modified
<0-60000>
Range for label space
Default
By default, mpls min-label value is 16
Command Mode
Configure mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
#configure terminal
(config)#mpls min-label-value 2000 max-label-value 70000 label-space 0
mpls propagate-ttl
Use this command to enable TTL propagation. Enabling TTL propagation causes the TTL value in the IP header to be copied onto the TTL field in the shim header, at the LSP ingress.
Use the no parameter with this command to disable TTL propagation.
Command Syntax
mpls propagate-ttl
no mpls propagate-ttl
Parameters
None
Default
By default, TTL propagation is disabled.
Command Mode
Configure mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
#configure terminal
(config)#mpls propagate-ttl
#configure terminal
(config)#no mpls propagate-ttl
mpls traffic-eng
Use this command to configure a routing command level for MPLS Traffic Engineering (MPLS-TP).
Use the no parameter with this command to remove this configuration.
Command Syntax
mpls traffic-eng (level-1|level-2|router-id)
no mpls traffic-eng (level-1|level-2|router-id)
Parameters
level-1
Run MPLS-TE only at IS-IS level 1
level-2
Run MPLS-TE only at IS-IS level 2
router-id
Traffic Engineering stable IP address for system
Command Mode
IS-IS Router mode
Examples
#configure terminal
OcNOS(config)#router isis 100
OcNOS(config-router)# is-type level-1
OcNOS(config-router)# metric-style wide
OcNOS(config-router)# mpls traffic-eng level-1
OcNOS(config-router)#comm
(config)#mpls traffic-eng level-1
(config-router)#no mpls traffic-eng level-1
mpls traffic-eng srlg
Use this command to create a Shared Risk Link Group (SRLG). An SRLG uses secondary backup LSPs or Fast Reroute bypass/detour LSPs that minimize the probability of "fate sharing" with the path of the primary LSP.
Use the no form of this command to remove an SRLG.
Note: An interface can be part of multiple SRLG groups upto a maximum of 255 SRLG groups.
Any addition or deletion of SRLG value on an interface will not recalculate Primary/Backup. It is advised to configure SRLG values before bringing UP rsvp sessions or clear rsvp sessions after updating SRLG values.
Command Syntax:
mpls traffic-eng srlg <0-4294967295>
no mpls traffic-eng srlg <0-4294967295>
Parameters
<0-4294967295> Risk group number
Command Mode
Interface mode
Example
#configure terminal
(config)#int xe1
(config-if)#mpls traffic-eng srlg 1
ping mpls
Use this command to start sending MPLS request packets using various parameters as defined below. Ping packets can be configured for LDP, RSVP, L2 circuit, VPLS, L3 VPN, or generic FEC types.
Command Syntax
ping mpls (ldp A.B.C.D/M|rsvp (tunnel-name NAME|egress A.B.C.D)|l2-circuit (vccv|) <1-4294967295> |vpls <1-10000> peer A.B.C.D/M|l3vpn VRFNAME A.B.C.D/M |ipv4 A.B.C.D/M) ({reply-mode (1|2)|flags|destination A.B.C.D|source A.B.C.D|ttl <1-255>|timeout <1-500>|repeat <5-5000>|interval <2-20000>|force-explicit-null|detail}|)
ping mpls (ldp A.B.C.D/M|rsvp (tunnel-name NAME|egress A.B.C.D)|l2-circuit (vccv|) <1-4294967295> |vpls <1-10000> peer A.B.C.D/M|l3vpn VRFNAME A.B.C.D/M |ipv4 A.B.C.D/M) ({reply-mode (1|2)|flags|destination A.B.C.D|source A.B.C.D|ttl <1-255>|timeout <1-500>|repeat <5-5000>|interval <2-20000>|force-explicit-null|detail}|)
ping mpls (l3vpn (VRFNAME A.B.C.D/M X:X::X:X/M source A.B.C.D destination A.B.C.D)) ({timeout <1-500>|ttl <1-255>|repeat <5-5000>|interval <2-20000>|detail}|)
ping mpls (6pe default X:X::X:X/M source A.B.C.D destination A.B.C.D)) ({timeout <1-500>|ttl <1-255>|repeat <5-5000>|interval <2-20000>|detail}|)
Parameters
ldp
FEC type is LDP
A.B.C.D/M
LDP prefix address
rsvp
FEC type is RSVP
tunnel-name
RSVP tunnel name
NAME
Tunnel name string
egress
RSVP tunnel egress
A.B.C.D
RSVP tunnel egress address
l2-circuit
FEC type is L2 circuit
vccv
Virtual Circuit Connectivity Verification
<1-4294967295>
L2 circuit ID
vpls
FEC type is MPLS VPLS (L2-VPN)
<1-10000>
VPLS instance ID
peer
VPLS peer
A.B.C.D/M
VPLS peer address
l3vpn
FEC type is MPLS VPN (L3-VPN)
VRFNAME
VPN instance name
A.B.C.D./M
VPN prefix
X:X::X:X/M
VPNv6 prefix
6pe
FEC type (6PE)
default
VPN Instance Name (default)
X:X::X:X/M
6PE Prefix
ipv4
FEC type is generic; use for static/SNMP label switched paths
A.B.C.D/M
IPv4 prefix address
reply-mode
Reply mode, one of
1
Do not reply
2
Reply via UDP/IP packet (default)
flags
Validate FEC stack
destination
Destination address
A.B.C.D
IPv4 address of the destination
source
Source address
A.B.C.D
IPv4 address of the source
ttl
Trace packet Time-to-live
<1-255>
Trace packet TTL value
repeat
Repeat sending of ping packets
<5-5000>
Number of pings to send
interval
Interval between ping packets, in milliseconds
<2-20000>
Interval value
timeout
Time to wait before rejecting the probe as a failure, in seconds
<1-500>
Timeout value
force-explicit-null
Force Explicit NULL label
detail
Print detailed output of the ping
Defaults
Default TTL value is 255.
Default timeout value is 60 seconds.
Command Mode
Privileged Exec mode
Applicability
This command was introduced before OcNOS version 1.3.
Example
#ping mpls ipv4 10.10.0.0/24 reply-mode 2 flags destination 127.1.2.3 source 10.10.0.1 ttl 226 timeout 65 repeat 6 interval 3 detail force-explicit-null
#ping mpls l2-circuit 3 reply-mode 2 flags destination 127.1.3.4 source 10.10.0.1 ttl 226 timeout 65 repeat 6 interval 3 detail force-explicit-null
#ping mpls l3vpn vrfa 10.10.0.0/24 reply-mode 2 flags destination 127.1.2.3 source 10.10.0.1 ttl 226 timeout 65 repeat 6 interval 3 detail force-explicit-null
#ping mpls ldp 10.10.0.0/24 reply-mode 2 flags destination 127.1.2.3 source 10.10.0.1 ttl 226 timeout 65 repeat 6 interval 3 detail force-explicit-null
#ping mpls rsvp egress 1.2.3.5 reply-mode 2 flags destination 127.1.2.3 source 10.10.0.1 ttl 226 timeout 65 repeat 6 interval 3 detail force-explicit-null
#ping mpls rsvp tunnel-name tun1 reply-mode 2 flags destination 127.1.2.3 source 10.10.0.1 ttl 226 timeout 65 repeat 6 interval 3 detail force-explicit-null
#ping mpls vpls 2 peer 10.10.0.0 reply-mode 2 flags destination 127.1.2.3 source 10.10.0.1 ttl 226 timeout 65 repeat 6 interval 3 detail force-explicit-null
Codes:
'!' - Success, 'Q' - request not sent, '.' - timeout,
'x' - Retcode 0, 'M' - Malformed Request, 'm' - Errored TLV,
'N' - LBL Mapping Err, 'D' - DS Mismatch,
'U' - Unknown Interface, 'R' - Transit (LBL Switched),
'B' - IP Forwarded, 'F' No FEC Found, 'f' - FEC Mismatch,
'P' - Protocol Error, 'X' - Unknown code,
'Z' - Reverse FEC Validation Failed
Type 'Ctrl+C' to abort
! seq_num = 1 200.0.0.1 2.02 ms
! seq_num = 2 200.0.0.1 2.00 ms
! seq_num = 3 200.0.0.1 1.93 ms
! seq_num = 4 200.0.0.1 2.14 ms
! seq_num = 5 200.0.0.1 1.78 ms
Success Rate is 100.00 percent (5/5)
round-trip min/avg/max = 1.78/1.96/2.14
rewrite ingress
Use this command to configure a match VLAN action for a service template.
Use the no parameter with this command to remove a match VLAN action for a service template.
Command Syntax
rewrite ingress (((pop |translate <2-4094>)(|outgoing-tpid (dot1.ad |dot1.q)))| (push <2-4094>))
no rewrite ingress (pop |push |translate)
Parameters
pop
POP the outer VLAN identifier from ACCESS->NETWORK and PUSH the match outer VID to NETWORK->ACCESS
translate
Translate the outer VLAN identifier to configured action VID for
ACCESS->NETWORK and translate to the match outer VID for NETWORK->ACESS
<2-4094>
Outer VLAN identifier
outgoing-tpid
Outgoing TPID, set the outer-tpid for the NETWORK->ACCESS
dot1.ad
Set TPID value as 0x88a8 for the traffic NETWORK->ACCESS
dot1.q
Set TPID value as 0x8100 for the traffic NETWORK->ACCESS
push
PUSH the outer VLAN identifier from ACESS->NETWORK and POP the Outer VID from NETWORK->ACCESS
<2-4094>
Outer VLAN identifier
Command Mode
MPLS SVC mode
Applicability
This command was introduced in OcNOS version 1.3.3, and changed in OcNOS-SP version 1.0.
Examples
#configure terminal
(config)#service-template C2
(config-svc)#match double-tag outer-vlan 9 inner-vlan 8
(config-svc)#rewrite ingress translate 7 outgoing-tpid dot1.ad
(config-svc)#exit
(config)#service-template C2
(config-svc)#no rewrite ingress translate
(config-svc)#exit
secondary srlg-disjoint
Use this command to set how to avoid the SRLGs (Shared Risk Link Groups) of a protected primary.
A fast-reroute/secondary path for an LSP that is disjoint from the primary ensures that a single point of failure on a particular link does not bring down both the primary and secondary paths in the LSP.
Note: The SRLG option configured in RSVP-TRUNK mode (this command) takes higher preference than the option configured in RSVP router mode (see 'srlg-disjoint').
Use the no form of this command to not avoid the SRLGs of a protected interface.
Command Syntax
secondary srlg-disjoint (forced|preferred)
no secondary srlg-disjoint
Parameters
forced
The router does not create the secondary/backup tunnel unless it avoids SRLGs of the primary-path/protected-interface.
preferred
With two explicit paths, the first explicit path tries to avoid the SRLGs of the primary-path/ protected interface. If that does not work, the secondary/backup tunne uses the second path (which ignores SRLGs).
Command Mode
RSVP -TRUNK mode
Example
#configure terminal
(config)#rsvp-trunk t1
(config-rsvp)# secondary srlg-disjoint forced
secondary-priority srlg-disjoint
Use this command to set how to avoid the SRLGs (Shared Risk Link Groups) of a protected primary.
A fast-reroute/secondary path for an LSP that is disjoint from the primary ensures that a single point of failure on a particular link does not bring down both the primary and secondary paths in the LSP.
Note: The SRLG option configured in RSVP-TRUNK mode (this command) takes higher preference than the option configured in RSVP router mode (see the
srlg-disjoint command).
Use the no form of this command to not avoid the SRLGs of a protected interface.
Command Syntax
secondary-priority <1-5> srlg-disjoint (forced|preferred)
no secondary-priority <1-5> srlg-disjoint
Parameters
forced
The router does not create the secondary/backup tunnel unless it avoids SRLGs of the primary-path/protected-interface.
preferred
With two explicit paths, the first explicit path tries to avoid the SRLGs of the primary-path/ protected interface. If that does not work, the secondary/backup tunnel uses the second path (which ignores SRLGs).
Command Mode
RSVP -TRUNK mode
Example
#configure terminal
(config)#rsvp-trunk t1
(config-rsvp)# secondary-piority 1 srlg-disjoint forced
service-template
Use this command to configure a service template.
Use no form of this command to remove a service template.
Command Syntax
service-template NAME
no service-template NAME
Parameters
NAME
Name of the customer service template
Defaults
No default value is specified
Command Mode
Configure mode
Applicability
This command was introduced in OcNOS version 1.3.3.
Examples
#configure terminal
(config)#service-template C1
(config-svc)#
service-tpid
Use this command to configure service tpid for the MPLS layer-2 virtual circuit.
Use the no parameter with this command to delete service tpid from the MPLS layer-2 virtual circuit.
Command Syntax
service-tpid (dot1.q|dot1.ad|0x9100)
no service-tpid
Parameters
0x9100
Set tpid value as 0x9100
dot1.ad
Set tpid value as 0x88a8
dot1.q
Set tpid value as 0x8100
Default
By default, service-tpid is disabled
Command Mode
Configure Pseudowire mode
Applicability
This command was introduced before OcNOS version 1.X
Example
#configure terminal
(config)#mpls l2-circuit mycircuit 45678 1.2.3.4
(config-pseudowire)#service-tpid dot1.ad
show mpls
Use this command to display MPLS data.
Command Syntax
show mpls
Parameters
None
Command Mode
Exec mode and Privileged Exec mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
The following subsection displays a variety of show mpls commands.
#show mpls
Minimum label configured: 16
Maximum label configured: 1048575
Per label-space information:
Label-space 0 is using minimum label: 16 and maximum label: 1048575
Label-space 2342 is using minimum label: 556 and maximum label: 1048575
Custom ingress TTL configured: none
Custom egress TTL configured: none
Log message detail: none
Admin group detail: none
Packets dropped IP:115167, dropped MPLS:0 sent to IP:490943, labeled:0, switch
d:0
MPLS Differentiated Services Supported Classes data:
CLASS DSCP_value
be 000000
MPLS Differentiated Services CLASS to EXP mapping data:
CLASS DSCP_value EXP_value
be 000000 0
#
Table 1-2 explains the show command output fields.
Table 1-2: show mpls output field
Field | Description |
---|
Packets dropped IP | Displays the number of packets dropped over the internet protocol. |
Dropped MPLS | Displays the number of packets dropped over the MPLS. |
Sent to IP | Displays the number of packets transmitted to the internet protocol. |
Labeled | Number of labeled packets in the interface. The MPLS-labeled packets are switched after a label lookup/switch instead of a lookup into the IP table. Labels of pop-and-forward mpls tunnel: P—Pop labels. D—Delegation labels. |
Switch | Type of switching on the links needed for the MPLS. |
Class | Creates a class map to be used for matching traffic to a specified class, and enters class-map configuration mode. |
DSCP Value | The value of the DSCP and DSCP classifier is used for routing Layer 3 packets. |
EXP value | Sets the value of the MPLS EXP field on all imposed label entries. |
show mpls admin-groups
Use this command to display all configured administrative groups.
Command Syntax
show mpls admin-groups
Parameters
None
Command Mode
Exec mode and Privileged Exec mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
The following sample shows the output of the show mpls admin-group command.
#show admin-groups
Admin group detail:
Value of 0 associated with admin group 'a'
Value of 1 associated with admin group 'b'
Value of 2 associated with admin group 'c'
Value of 4 associated with admin group 'd'
#
Table 1-3 explains the show command output fields.
Table 1-3: show mpls admin-groups output field
Field | Description |
---|
Admin group detail | Display information about configured Multi Protocol Label Switching (MPLS) administrative groups. |
show mpls bandwidth-class
Use this command to view bandwidth class parameters: bandwidth class name; allocated bandwidth; setup hold priority
Command Syntax
show mpls bandwidth-class
Parameters
None
Command Mode
Exec mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
> show mpls bandwidth-class
Bandwidth-class: BW_1
Bandwidth: 6k Setup-priority: 1 Class-type: 1
Table 1-4 explains the show command output fields.
Table 1-4: show mpls bandwidth-class output field
Field | Description |
---|
Bandwidth-class | Bandwidth for each class type. |
Bandwidth | Bandwidth configured for the active MPLS. |
Setup-Priority | The setup priority is compared with other setup priorities for established sessions on the link to determine whether some of them should be preempted to accommodate the new session. Sessions with lower hold priorities are preempted. |
Class-type | Bandwidth allocated for the specified class type. |
show mpls counters ldp
Use this command to display traffic statistics for FTNs and ILMs configured by LDP.
Command Syntax
show mpls counters ldp ((ftn (|A.B.C.D/M)) | (ilm (|A.B.C.D/M)) |)
Parameter
ftn
FEC-to-NHLFE map counters
A.B.C.D/M
FEC prefix
ilm
Incoming label map counters
A.B.C.D/M
FEC prefix
Command Mode
Exec mode
Applicability
This command was introduced in OcNOS version 1.3.2..
Examples
#show mpls counters ldp
[ FTN statistics ]
+------------------+-----------+--------------------+--------------------+
| FEC | out-label | Tx packets | Tx bytes |
+------------------+-----------+--------------------+--------------------+
1.1.61.0/24 52480 0 0
1.1.62.0/24 52481 0 0
1.1.63.0/24 52482 0 0
1.1.64.0/24 52483 0 0
9.9.9.3/32 52485 0 0
[ ILM statistics ]
+------------------+-----------+-----------+--------------------+--------------------+--------------------+----------------+
| FEC | in-label | out-label | Rx packets | Rx bytes | Tx packets | Tx bytes |
+------------------+-----------+-----------+--------------------+--------------------+--------------------+----------------+
#
Table 1-5 explains the show command output fields.
Table 1-5: show mpls counters ldp output field
Field | Description |
---|
FTN statistics | Displays the statistics details of FTN. |
ILM statistics | Displays the statistics details of ILM. |
FEC | Displays the Forward Equivalency Class (FEC) for this entry. |
In-label | Displays the ingress (incoming interface) label for this segment. |
Out-label | Displays the egress (outgoing interface) label for this segment. |
Rx packets | Number of hello packets received from the neighbor. |
Rx bytes | Size of hello packets received from the neighbor. |
Tx packets | Number of hello packets sent to the neighbor. |
Tx bytes | Size of hello packets sent to the neighbor. |
show mpls counters rsvp
Use this command to display traffic statistics for LSPs configured by RSVP.
Command Syntax
show mpls counters rsvp ((tunnel-name NAME) | (tunnel-id TUNNEL_ID) | (node-role (ingress | transit | egress)) |)
Parameter
NAME
RSVP tunnel name
TUNNEL_ID
RSVP tunnel identifier
ingress
LSP role is ingress
transit
LSP role is transit
egress
LSP role is egress
Command Mode
Exec mode
Applicability
This command was introduced in OcNOS version 1.3.2.
Examples
#show mpls counters rsvp
Tunnel-id 5001 Extended Tunnel-ID 9.9.9.1 Egress 9.9.9.2
lsp-name : t1-Primary [Ingress]
lsp-ingress : 9.9.9.1 lsp-id : 101
Rx pkts : 0 Rx bytes : 0
Tx pkts : 0 Tx bytes : 0
lsp-name : t1-Secondary [Ingress]
lsp-ingress : 9.9.9.1 lsp-id : 102
Rx pkts : 0 Rx bytes : 0
Tx pkts : 0 Tx bytes : 0
Tunnel-id 5002 Extended Tunnel-ID 9.9.9.1 Egress 9.9.9.3
lsp-name : t2-Primary [Ingress]
lsp-ingress : 9.9.9.1 lsp-id : 104
Rx pkts : 0 Rx bytes : 0
Tx pkts : 0 Tx bytes : 0
lsp-name : t2-Detour [Ingress]
lsp-ingress : 1.1.49.1 lsp-id : 104
Rx pkts : 0 Rx bytes : 0
Tx pkts : 0 Tx bytes : 0
Table 1-6 explains the show command output fields.
Table 1-6: show mpls counters rsvp output field
Field | Description |
---|
Tunnel-id | Tunnel identifier (destination port) for the RSVP session. |
Extended Tunnel-ID | Extended Tunnel identifier (destination port) for the RSVP session. |
Egress | Egress router is the final MPLS device that removes the last label before packets leave the MPLS network. |
lsp-name | Name of the SPRING-TE LSP. |
Ingress | The router at the beginning of an LSP. This router encapsulates IP packets with an MPLS Layer 2 frame and forwards it to the next router in the path. |
lsp-ingress | The router at the beginning of an LSP. |
lsp-id | Specify the generic LSP identifier. |
Rx packets | Number of hello packets received from the neighbor. |
Rx bytes | Size of hello packets received from the neighbor. |
Tx packets | Number of hello packets sent to the neighbor. |
Tx bytes | Size of hello packets sent to the neighbor. |
show mpls counters static
Use this command to display traffic statistics for statically configured FTNs and ILMs.
Command Syntax
show mpls counters static ((ftn (A.B.C.D/M|)) | (ilm (A.B.C.D/M|)) |)
Parameter
ftn
FEC-to-NHLFE map counters
A.B.C.D/M
FEC prefix
ilm
Incoming label map counters
A.B.C.D/M
FEC prefix
Command Mode
Exec mode
Applicability
This command was introduced in OcNOS version 1.3.2.
Examples
#show mpls counters static
[ FTN statistics ]
+------------------+-----------+--------------------+--------------------+
| FEC | out-label | Tx packets | Tx bytes |
+------------------+-----------+--------------------+--------------------+
192.168.1.0/24 100 0 0
192.168.2.0/24 200 0 0
[ ILM statistics ]
+------------------+-----------+-----------+--------------------+--------------------+--------------------+----------------+
| FEC | in-label | out-label | Rx packets | Rx bytes | Tx packets | Tx bytes |
+------------------+-----------+-----------+--------------------+--------------------+--------------------+----------------+
0.0.0.0/0 201 n/a 0 0 n/a n/a
0.0.0.0/0 101 n/a 0 0 n/a n/a
192.168.3.0/24 301 302 0 0 0 0
192.168.4.0/24 401 402 0 0 0 0
#
Table 1-7 explains the show command output fields.
Table 1-7: show mpls counters static output field
Field | Description |
---|
FTN statistics | Displays the statistics details of FTN. |
ILM statistics | Displays the statistics details of ILM. |
FEC | Displays the Forward Equivalency Class (FEC) for this entry. |
In-label | Displays the ingress (incoming interface) label for this segment. |
Out-label | Displays the egress (outgoing interface) label for this segment. |
Rx packets | Number of hello packets received from the neighbor. |
Rx bytes | Size of hello packets received from the neighbor. |
Tx packets | Number of hello packets sent to the neighbor. |
Tx bytes | Size of hello packets sent to the neighbor. |
show mpls cross-connect-table
Use this command to display detailed information for all entries created in the MPLS cross-connect table.
Command Syntax
show mpls cross-connect-table
Parameters
None
Command Mode
Exec mode and Privileged Exec mode
Applicability
This command was introduced before OcNOS version 1.3.
Example
The following is a sample output of the show mpls cross-connect-table
#show mpls cross-connect-table
Cross connect ix: 3, in intf: -, in label: 0, out-segment ix: 3
Owner: RSVP, Persistent: No, Admin Status: Up, Oper Status: Up
Out-segment with ix: 3, owner: RSVP, out intf: xe1, out label: 16
Nexthop addr: 10.10.20.80, cross connect ix: 3, op code: Push
Cross connect ix: 6, in intf: -, in label: 0, out-segment ix: 6
Owner: RSVP, Persistent: No, Admin Status: Up, Oper Status: Up
Out-segment with ix: 6, owner: RSVP, out intf: xe1, out label: 17
Nexthop addr: 10.10.20.80, cross connect ix: 6, op code: Push
#
Table 1-8 explains the show command output fields.
Table 1-8: show mpls cross-connect-table output field
Field | Description |
---|
Cross connect ix | Displays the table index for the cross-connect. |
In intf | Installed as a result of configuring an interface. |
In label | Displays the ingress (incoming interface) label for this segment. |
Out-segment ix | Displays the outbound segment index. |
Owner | Displays the creator of this segment, typically a protocol such as BGP. |
Persistent | Displays whether the tunnel is persistent – Yes or No. |
Admin Status | Indicates whether the user can administratively disable a peer while still preserving its configuration. Up = Yes, Down = No. |
Oper Status | Displays the current status of the cross-connect segment – Up or Down |
Nexthop addr | Displays the IP address of the next hop. |
Op code | PUSH = Replace the top label with another and then push one or more additional labels onto the label stack SET = Set the next hop label. |
show mpls forwarding-table
Use this command to view forwarding table entries.
Command Syntax
show mpls forwarding-table (count|)
Parameters
count
Count of IPv4 FTNs.
Command Mode
Exec mode
Applicability
This command was introduced before OcNOS version 1.3.
Example
show mpls forwarding-table
Codes: > - installed FTN, * - selected FTN, p - stale FTN, B - BGP FTN, K - CLI FTN, t - tunnel
L - LDP FTN, R - RSVP-TE FTN, S - SNMP FTN, I - IGP-Shortcut,
U - unknown FTN, O - SR-OSPF FTN, i - SR-ISIS FTN, k - SR-CLI FTN
Code FEC FTN-ID Tunnel-id Pri LSP-Type Out- Label ELC Out-Intf Nexthop
R(t)> 29.29.29.29/32 1 5001 Yes LSP_DEFAULT 24322 yes
xe2 41.41.41.31
R(t)> 29.29.29.29/32 2 5001 No LSP_DEFAULT 24322 yes
xe1 69.69.69.42
#show mpls forwarding-table count
---------------------------------------------
Num FTNs : 3 [UP: 3, INSTALLED: 3]
Primary FTNs : 3 [UP: 3, INSTALLED: 3]
Secondary FTNs : 0 [UP: 0, INSTALLED: 0]
---------------------------------------------
---------------------------------------------
Num FTNs : 0 [UP: 0]
Primary FTNs : 0 [UP: 0]
Secondary FTNs : 0 [UP: 0]
---------------------------------------------
Table 1-9 shows the status codes displayed at the start of a route entry.
Table 1-9: status code output field
Status Code | Field | Description |
---|
P | Stale FTN | Stale marked FTN due to on-going Graceful Restart of MPLS module. |
B | BGP FTN | FTN entry installed by BGP. |
K | CLI FTN | Admin configured Static FTN entry. |
L | LDP FTN | FTN entry installed by LDP. |
R | RSVP-TE FTN | FTN entry installed by RSVP. |
S | SNMP FTN | FTN entry installed via SNMP. |
I | IGP-Shortcut | FTN entry installed by IGP shortcut. |
U | Unknown FTN | FTN entry installed by unknown module. |
O | SR-OSPF FTN | FTN entry installed by OSPF segment-Routing. |
I | SR-ISIS FTN | FTN entry installed by ISIS segment-routing. |
K | SR-CLI FTN | FTN entry installed by Static Segment Routing. |
Table 1-10 explains the show command output fields.
Table 1-10: show mpls forwarding-table output field
Field | Description |
---|
FEC | Displays the Forward Equivalency Class (FEC) for this entry. |
FTN-ID | FEC-to-NHLFE map counters identification. |
Tunnel-ID | Tunnel identification to which packets with this label are going. |
Pri | Primary. |
LSP-Type | LSP type associated with each interface being protected. |
Out-Label | Label received from downstream neighbor for route. |
ELC | Whether the RSVP router has Entropy Label Capability. |
Out-Intf | Short name of the physical interface through which traffic goes to the protected link. |
Nexthop | Displays the IP address of the next hop. |
Num FTNs | Number of FEC-to-NHLFE map counters in the interface. |
Primary FTNs | Primary FEC-to-NHLFE in the interface. |
Secondary FTNs | Secondary FEC-to-NHLFE in the interface. |
Num FTNs | Number of FEC-to-NHLFE map counters in protocol. |
Primary FTNs | Primary FEC-to-NHLFE map counters in protocol. |
Secondary FTNs | Secondary FEC-to-NHLFE map counters in protocol. |
show mpls ftn-table
Use this command to display FTN (FEC-To-NHLF) table information.
Command Syntax
show mpls ftn-table
Parameters
None
Command Mode
Exec mode
Applicability
This command was introduced before OcNOS version 1.3.
Example
#show mpls ftn-table
Primary FTN entry with FEC: 5.5.5.5/32, id: 2, row status: Active
Owner: LDP, Action-type: Redirect to Tunnel, Exp-bits: 0x0, Incoming DSCP: none
Tunnel id: 0, Protected LSP id: 0, QoS Resource id: 0, Description: N/A
Matched bytes:0, pkts:0, TX bytes:0, Pushed pkts:0
Cross connect ix: 1, in intf: - in label: 0 out-segment ix: 1
Owner: LDP, Persistent: No, Admin Status: Up, Oper Status: Up
Out-segment with ix: 1, owner: LDP, out intf: p9p1, out label: 3
Nexthop addr: 40.0.0.2 cross connect ix: 1, op code: Push
Cross connect ix: 3, in intf: - in label: 0 out-segment ix: 3
Owner: LDP, Persistent: No, Admin Status: Up, Oper Status: Up
Out-segment with ix: 3, owner: LDP, out intf: p8p1, out label: 3
Nexthop addr: 30.0.0.2 cross connect ix: 3, op code: Push
Primary FTN entry with FEC: 50.0.0.0/24, id: 6, row status: Active
Owner: LDP, Action-type: Redirect to Tunnel, Exp-bits: 0x0, Incoming DSCP: none
Tunnel id: 0, Protected LSP id: 0, QoS Resource id: 0, Description: N/A
Matched bytes:0, pkts:0, TX bytes:0, Pushed pkts:0
Cross connect ix: 3, in intf: - in label: 0 out-segment ix: 3
Owner: LDP, Persistent: No, Admin Status: Up, Oper Status: Up
Out-segment with ix: 3, owner: LDP, out intf: p8p1, out label: 3
Nexthop addr: 30.0.0.2 cross connect ix: 3, op code: Push
Table 1-11 explains the show command output fields.
Table 1-11: show mpls ftn-table output field
Field | Description |
---|
Action-type | Packets flow direction in the tunnel. |
Exp-bits | Experimental bits (EXP) field is a 3-bit field in the MPLS header. |
Incoming DSCP | Number of incoming packets in the DSCP. |
Tunnel ID | Tunnel identifier (destination port) for the session. |
Protected LSP ID | Identifier to protect the LSP in the interface. |
QoS Resource ID | Resource identifier of the Quality of Service. |
Description | Terms and concepts used to describe MPLS. |
Matched bytes | Size of the matched packets. |
Pkts | Number packets in the interface. |
TX bytes | Size of the packets that transmitted to the neighbor. |
Cross connect ix | Displays the table index for the cross-connect. |
Pushed pkts | Number of hello packets pushed to the neighbor. |
in intf | Installed as a result of configuring an interface. |
in label | Displays the ingress (incoming interface) label for this segment. |
out-segment ix | Displays the outbound segment index. |
Persistent | Displays whether the tunnel is persistent – Yes or No. |
Admin Status | Indicates whether the user can administratively disable a peer while still preserving its configuration. Up = Yes, Down = No. |
Oper Status | Displays the current status of the cross-connect segment – Up or Down. |
Out-Label | Label received from downstream neighbor for route. |
Out-Intf | Short name of the physical interface through which traffic goes to the protected link. |
Nexthop addr | Displays the IP address of the next hop. |
OP code | PUSH = Replace the top label with another and then push one or more additional labels onto the label stack. SET = Set the next hop label. |
Primary FTN entry with FEC | Primary FTN entry configured for the FEC. |
ID | Displays the Opcode that identifies the specific PDU for this entry. |
ROW status | Displays the current status of the row. |
show mpls ilm-table
Use this command to view Incoming label mapping (ILM) table entries.
Command Syntax
show mpls ilm-table (count|)
Parameters
count
Count of entries in ILM table.
Command Mode
Exec mode
Applicability
This command was introduced before OcNOS version 1.3.
Example
#show mpls ilm-table
Codes: > - installed ILM, * - selected ILM, p - stale ILM
K - CLI ILM,T - MPLS-TP
Code FEC ILM-ID In-Label Out-Label In-Intf Out-Intf Nexthop LSP-Type
> 63.63.63.63/32 151187 53121 3 N/A xe6 6.6.6.63 LSP_DEFAULT
> 16.16.16.0/24 151186 53120 3 N/A xe6 6.6.6.63 LSP_DEFAULT
K> N/A 151189 500 N/A N/A N/A 127.0.0.1 LSP_DEFAULT
> 65.65.65.65/32 151188 53122 3 N/A xe1 1.1.1.65 LSP_DEFAULT
#show mpls ilm-table count
--------------------------------------------
Num ILMs : 4 [UP: 4, INSTALL: 4]
Swap Entries : 3 [UP: 3, INSTALL: 3]
Pop Entries : 1 [UP: 1, INSTALL: 1]
--------------------------------------------
Table 1-9 shows the status codes displayed at the start of a route entry.
Table 1-12: status code output field
Status Code | Field | Description |
---|
| Installed ILM | Number of ILM entry installed. |
* | Selected ILM | ILM entry selected in the interface. |
P | Stale ILM | Stale marked ILM due to on-going graceful restart of MPLS module. |
K | CLI ILM | Admin configured static ILM entry. |
T | MPLS-TP | ILM entry installed by MPLS-TP. |
Table 1-2 explains the show command output fields.
Table 1-13: show mpls ilm-table output field
Field | Description |
---|
FEC | Displays the Forward Equivalency Class (FEC) for this entry. |
ILM-ID | ILM identifier for the session. |
LSP-Type | LSP type associated with each interface being protected. |
Out-Label | Label received from downstream neighbor for route. |
Out-Intf | Short name of the physical interface through which traffic goes to the protected link. |
In label | Displays the ingress (incoming interface) label for this segment. |
In intf | Installed as a result of configuring an interface. |
Nexthop | Displays the IP address of the next hop. |
Num ILMs | Number of ILMs in the session. |
Swap Entries | Number of packets in the entry. |
Pop Entries | Number of POP entries. |
show mpls in-segment-table
Use this command to display detailed information about all entries in the Incoming Label Map (also known as in-segment) table.
Command Syntax
show mpls in-segment-table
Parameters
None
Command Mode
Exec mode and Privileged Exec mode
Applicability
This command was introduced before OcNOS version 1.3.
Example
#show mpls in-segment-table
Owner: RSVP,#of pops: 1, fec: 192.168.0.5/32
RX bytes:0, pkts:0, TX bytes:0, Swapped pkts:0, Popped pkts:0
LSP Type: ELSP_CONFIG
Class_Exp mapping:
CLASS DSCP_value EXP_value
be 000000 0
Cross connect ix: 1, in intf: xe1 in label: 52480 out-segment ix: 1
Owner: RSVP, Persistent: No, Admin Status: Up, Oper Status: Up
Out-segment with ix: 1, owner: RSVP, out intf: xe2, out label: 52480
Nexthop addr: 20.30.0.3 cross connect ix: 1, op code: Swap
Cross connect ix: 1, in intf: xe1 in label: 52480 out-segment ix: 2
Owner: RSVP, Persistent: No, Admin Status: Up, Oper Status: Up
Out-segment with ix: 2, owner: RSVP, out intf: xe2, out label: 52481
Nexthop addr: 30.30.0.3 cross connect ix: 1, op code: Swap
#
Table 1-14 explains the show command output fields.
Table 1-14: show mpls in-segment-table output field
Field | Description |
---|
FEC | Displays the Forward Equivalency Class (FEC) for this entry. |
RX bytes | Size of hello packets received from the neighbor. |
Pkts | Number packet in the interface. |
TX bytes | Size of the packets that transmitted to the neighbor. |
Swapped pkts | Number of swapped packets in session. |
Popped pkts | Number of popped packets in the interface. |
LSP-Type | LSP type associated with each interface being protected. |
CLASS | Creates a class map to be used for matching traffic to a specified class, and enters class-map configuration mode. |
DSCP value | The value of the DSCP and DSCP classifier is used for routing Layer 3 packets. |
EXP value | Sets the value of the MPLS EXP field on all imposed label entries. |
Cross-connect ix | Displays the table index for the cross-connect. |
Out-Label | Label received from downstream neighbor for route. |
Out-Intf | Short name of the physical interface through which traffic goes to the protected link. |
In label | Displays the ingress (incoming interface) label for this segment. |
In intf | Installed as a result of configuring an interface. |
Nexthop | Displays the IP address of the next hop. |
Out-segment ix | Displays the outbound segment index. |
Persistent | Displays whether the tunnel is persistent – Yes or No. |
Admin Status | Indicates whether the user can administratively disable a peer while still preserving its configuration. Up = Yes, Down = No. |
Oper Status | Displays the current status of the cross-connect segment – Up or Down. |
Op code | PUSH = Replace the top label with another and then push one or more additional labels onto the label stack. SET = Set the next hop label. |
show mpls l2-circuit
Use this command to view MPLS-TP L2 circuit parameters.
Command Syntax
show mpls l2-circuit (detail|)
show mpls l2-circuit NAME (detail|)
Parameters
detail
Show detailed information
NAME
The name of the virtual circuit
Command Mode
Exec mode and Privileged Exec mode
Applicability
This command was introduced before OcNOS version 1.3.
Example
#show mpls l2-circuit detail
MPLS Layer-2 Virtual Circuit: vc1, id: 1 PW-INDEX: 1 service-tpid: 8100
Endpoint: 1.1.1.1
Control Word: 0
MPLS Layer-2 Virtual Circuit Group: none
Bound to interface: xe41
Virtual Circuit Type: Ethernet VLAN
Virtual Circuit is configured as Primary
Virtual Circuit is configured as Active
Virtual Circuit is active
Service-template : C1
Match criteria : 10-14, 16-20
Table 1-15 explains the show command output fields.
Table 1-15: show mpls l2-circuit output field
Field | Description |
---|
MPLS Layer-2 Virtual Circuit | The MPLS virtual circuit on the egress PE router or switch and the specified neighbor, testing the integrity of the Layer 2 circuit between the ingress and egress PE routers or switches. |
Endpoint | Endpoint address. |
Control Word | Number of control words. |
MPLS Layer-2 Virtual Circuit Group | The MPLS virtual circuit group on the egress PE router or switch and the specified neighbor, testing the integrity of the Layer 2 circuit between the ingress and egress PE routers or switches. |
Bound to interface | A bound service is the server in a client-server interface. |
Virtual Circuit Type | Type of virtual circuit in the interface. |
Service-template | Service Templates provides a powerful mechanism to configure advanced service-related options. |
Match criteria | The match criteria under which redistribution is allowed for the current route-map. |
show mpls l2-circuit statistics
Use this command to display MPLS traffic statistics for l2 circuit.
Command Syntax
show mpls l2-circuit NAME statistics (access-port|network-port|)
Parameters
NAME
Name of L2 circuit
access-port
Displays the access port statistics
network-port
Displays the network port statistics
Command Mode
Exec mode and Privileged Exec mode
Applicability
This command was introduced before OcNOS version 1.3.
Example
#show mpls l2-circuit t1 statistics
MPLS Layer-2 Virtual Circuit: t1, id 100 # Virtual circuit name and ID
Access port statistics:
RX: Input packets : 1000
Input bytes : 120000
TX: Output packets : 0
Output bytes : 0
Network port statistics:
RX: Input packets : 0
Input bytes : 0
TX: Output packets : 1000
Output bytes : 120000
Table 1-16 explains the show command output fields.
Table 1-16: show mpls l2-circuit statistics output field
Field | Description |
---|
MPLS Layer-2 Virtual Circuit | The MPLS virtual circuit on the egress PE router or switch and the specified neighbor, testing the integrity of the Layer 2 circuit between the ingress and egress PE routers or switches. |
Virtual circuit name and ID | The MPLS virtual circuit identifier on the egress PE router or switch and the specified neighbor, testing the integrity of the Layer 2 circuit between the ingress and egress PE routers or switches. |
Access port statistics | Traffic statistics on Access port of VC/VPLS. |
Network port statistics | Traffic statistics on Provider port of VC/VPLS. |
RX | Number of received packets. |
Input packets | Number of hello packets received from the neighbor. |
Input bytes | Size of hello packets received from the neighbor. |
TX | Number of packets transmitted. |
Output packets | Number of hello packets sent to the neighbor. |
Output bytes | Size of hello packets sent to the neighbor. |
show mpls mapped-routes
Use this command to view MPLS mapped routes.
Use the no parameter with this command to reset this configuration.
Command Syntax
show mpls mapped-routes
Parameters
None
Command Mode
Exec mode
Applicability
This command was introduced before OcNOS version 1.3.
Example
#show mpls mapped-routes
Mapped-route IPv4 FEC MPLS-TP Tunnel
14.1.2.3/32 N/A NH4
Table 1-17 explains the show command output fields.
Table 1-17: show mpls mapped-routes output field
Field | Description |
---|
Mapped-route | Map the route of the interface. |
IPv4 | IPv4 address of the neighbor interface. |
FEC | Displays the Forward Equivalency Class (FEC) for this entry. |
MPLS-TP Tunnel | MPLS-TP tunnel can be provisioned between two arbitrary nodes in an MPLS-TP enabled network. |
show mpls out-segment-table
Use this command to display detailed information of out-segment entries (also known as NHLFE) table.
Command Syntax
show mpls out-segment-table
Parameters
None
Command Mode
Exec mode and Privileged Exec mode
Applicability
This command was introduced before OcNOS version 1.3.
Example
#show mpls out-segment-table
Out-segment with ix: 1, owner: RSVP, out intf: xe1, out label: 52480
Nexthop addr: 20.30.0.3 cross connect ix: 1, op code: Swap
TX bytes:0, pkts:0, error pkts:0, discard pkts:0
Out-segment with ix: 2, owner: RSVP, out intf: xe2, out label: 52481
Nexthop addr: 30.30.0.3 cross connect ix: 1, op code: Swap
TX bytes:0, pkts:0, error pkts:0, discard pkts:0Zx
Table 1-18 explains the show command output fields.
Table 1-18: show mpls out-segment-table output field
Field | Description |
---|
Out-segment ix | Displays the outbound segment index. |
Out-Label | Label received from downstream neighbor for route. |
Out-Intf | Short name of the physical interface through which traffic goes to the protected link. |
Nexthop addr | Displays the IP address of the next hop. |
Cross-connect ix | Displays the table index for the cross-connect. |
Op code | PUSH = Replace the top label with another and then push one or more additional labels onto the label stack. SET = Set the next hop label. |
Pkts | Number packet in the interface. |
TX bytes | Size of the packets that transmitted to the neighbor. |
Error pkts | Number of error packets. |
Discard pkts | Number of packets discarded in the interface. |
show mpls vrf
Use this command to display detailed information of all the configured VRF entries. Specify the name of the VRF to display information about a specific VRF entry.
Command Syntax
show mpls vrf-table
show mpls vrf-table VRFNAME (count|)
Parameters
VRFNAME
Display the MPLS VRF table by its configured name
count
Display the MPLS VRF FTN’s count
Command Mode
Exec mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
#show mpls vrf new_vrf count
---------------------------------------------
Num VRF-FTNs : 1 [UP: 1, INSTALLED: 1]
---------------------------------------------
---------------------------------------------
Num VRF-FTNs : 0 [UP: 0]
---------------------------------------------
Table 1-19 explains the show command output fields.
Table 1-19: show vrf-table output fields
Field | Description |
---|
Num VRF-FTNs | Number of FEC-to-NHLFE map counters in VRF protocol. |
Num VRF-FTNs | Number of VRF FEC-to-NHLFE map counters in protocol. |
show mpls vrf-forwarding-table vrf
This CLI can be used to display a tabular output of the VRF forwarding entries received from the remote PE via MPBGP.
Command Syntax
show mpls vrf-forwarding-table vrf <VRFNAME>
Parameters
VRFNAME
Display the MPLS VRF table by its configured name
Command Mode
Exec mode
Applicability
This command was introduced in OcNOS-SP version 4.1.
Examples
OcNos#show mpls vrf-forwarding-table vrf BEVrf
Owner FEC FTN-ID Oper-Status Out-Label Tunnel-id NHLFE-id Out-Intf Nexthop
BGP 10.143.73.1/32 1 Up 24320 0 19 xe25 10.143.73.1
BGP 10.143.73.10/32 6 Up 25600 0 30 xe4 10.143.73.10
BGP 10.143.169.26/31 2 Up 24320 0 19 xe25 10.143.73.1
BGP 10.143.170.26/31 3 Up 24324 0 28 xe4 10.143.73.6
Table 1-20 explains the show command output fields.
Table 1-20: show mpls vrf-forwarding-table vrf output fileds
Field | Description |
---|
Owner | Displays the creator of this entry, typically a protocol such as BGP. |
FEC | Displays the Forward Equivalency Class (FEC) for this entry. |
FTN-ID | FEC-to-NHLFE identification. |
Oper-Status | Displays the current status of the entry – Up or Down. It will be “UP” if the vrf entry is installed in the forwarder and it will be in “DOWN“ state if the vrf entry is not installed in the forwarder. |
Out-Label | Displays the egress label for this FTN. |
Tunnel-id | Tunnel identification to which packets of this FTN are going. |
NHLFE-id | Next Hop Label Forwarding Entry identification (also known as out-segment entry identification). |
Out-Intf | Name of the physical interface through which traffic goes. |
Nexthop | Displays the IP address of the next hop. |
show running-config interface mpls
Use this command to show the running system status and configuration for an MPLS interface.
Command Syntax
show running-config interface IFNAME mpls
Parameters
IFNAME
Display information for this interface name
Command Mode
Privileged Exec mode and Configure mode
Applicability
This command was introduced before OcNOS version 1.3.
Example
#show running-config interface xe1 mpls
#
show running-config mpls
Use this command to show any Multi-Protocol Label Switching (MPLS) related running configuration.
Command Syntax
show running-config mpls
Parameters
None
Command Mode
Privileged Exec mode
Applicability
This command was introduced before OcNOS version 1.3.
Example
>enable
#show running-config mpls
!
mpls propagate-ttl
!
!
!
#
show running-config service-template
Use this command to show service-template related running configuration.
Command Syntax
show running-config service-template
Parameters
None
Command Mode
Privileged Exec mode
Applicability
This command was introduced in OcNOS-SP version 4.2.
Examples
OcNOS#sho running-config service-template
!
service-template s2
match outer-vlan 200
!
service-template s1
match outer-vlan 100
!
service-template s3
match outer-vlan 300
!
service-template s4
match outer-vlan 400
!
show running-config vc
Use this command to show any Virtual Private Wire Service (VPWS) related running configuration.
Command Syntax
show running-config vc
Parameters
None
Command Mode
Privileged Exec mode
Applicability
This command was introduced in OcNOS-SP version 4.2.
Examples
OcNOS#show running-config vc
!
mpls l2-circuit vc1 1 2.2.2.2
!
mpls l2-circuit vc2 3 2.2.2.2
tunnel-select-policy p1
!
!
interface xe2
mpls-l2-circuit vc1 service-template s1 primary
mpls-l2-circuit vc2 service-template s3 primary
!
show running-config vpls
Use this command to show any Virtual Private LAN Service (VPLS) related running configuration.
Command Syntax
show running-config vpls
Parameters
None
Command Mode
Privileged Exec mode
Applicability
This command was introduced in OcNOS-SP version 4.2.
Examples
#show running-config vpls
!
mpls vpls vpls1 2
signaling ldp
vpls-type vlan
vpls-peer 2.2.2.2
exit-signaling
exit-vpls
!
mpls vpls vpls2 4
signaling ldp
vpls-type vlan
vpls-peer 2.2.2.2 tunnel-select-policy p1
exit-signaling
exit-vpls
!
!
interface xe2
mpls-vpls vpls1 service-template s2
mpls-vpls vpls2 service-template s4
!
show service-template
Use this command to display information of all or particular service templates.
Command Syntax
show service-template (detail|)
show service-template NAME
Parameters
detail
Show detailed information
NAME
Name of customer service template
Command Mode
Exec mode
Applicability
This command was introduced in OcNOS version 1.3.3.
Examples
#show service-template detail
Service-template : C2
Services mapped : -
Match criteria : 9/8
Service-template : C1
Services mapped : -
Match criteria : 100
Service-template : C3
Services mapped : -
Match criteria : 2-5
#show service-template C1
Service-template : C1
Services mapped : -
Match criteria : 100
Table 1-21 explains the show command output fields.
Table 1-21: show service template output fields
Field | Description |
---|
Service-template | Creates a service template and enters service template configuration mode. |
Services mapped | Used to match the type of services. |
Match criteria | Used to approve the identification result or dismiss it. |
srlg-disjoint
Use this command to set how to avoid the SRLGs (Shared Risk Link Groups) of a protected primary.
A fast-reroute/secondary path for an LSP that is disjoint from the primary ensures that a single point of failure on a particular link does not bring down both the primary and secondary paths in the LSP.
Note: The SRLG option configured in RSVP-TRUNK mode (see the
secondary-priority srlg-disjoint command) takes higher preference than the option configured in RSVP router mode (this command).
Use the no form of this command to not avoid the SRLGs of a protected interface.
Command Syntax
srlg-disjoint (forced|preferred)
no srlg-disjoint
Parameters
forced
The router does not create the secondary/backup tunnel unless it avoids SRLGs of the primary-path/protected-interface.
preferred
With two explicit paths, the first explicit path tries to avoid the SRLGs of the primary-path/ protected interface. If that does not work, the secondary/backup tunnel uses the second path (which ignores SRLGs).
Command Mode
Router RSVP mode
Example
#configure terminal
(config)#router rsvp
(config-rsvp)# srlg-disjoint forced
trace mpls
Use this command to trace the route traversed by a specified echo request packet in an MPLS protocol. Trace requests can be configured for LDP, RSVP, L2 VC, VPLS, and L3 VPN label switched paths.
trace mpls (6pe default X:X::X:X/M|ldp A.B.C.D/M|rsvp (tunnel-name NAME|egress A.B.C.D)|l3vpn VRFNAME A.B.C.D/M|ipv4 A.B.C.D/M) ({reply-mode (2)|flags|destination A.B.C.D|source A.B.C.D|timeout <1-500>|force-explicit-null|detail}|)
Parameters
6pe
FEC type is 6pe
default
VPN Instance Name (default)
X:X::X:X/M
6pe prefix address
ldp
FEC type is LDP
A.B.C.D/M
LDP prefix address
rsvp
FEC type is RSVP
tunnel-name
RSVP tunnel name
NAME
Tunnel name string
egress
RSVP tunnel egress
A.B.C.D
RSVP tunnel egress address
l3vpn
FEC type is MPLS VPN (L3-VPN)
VRFNAME
VPN instance name
A.B.C.D./M
VPN prefix
ipv4
FEC type generic; use for static/SNMP label switched paths
A.B.C.D/M
IPv4 prefix address
X:X::X:X/M
VPNv6 prefix
reply-mode
Reply mode, one of
2
Reply via UDP/IP packet (default)
flags
Validate FEC stack
destination
Destination address
A.B.C.D
IPv4 address of the destination
source
Source address
A.B.C.D
IPv4 address of the source
timeout
Time to wait before rejecting the probe as a failure, in seconds
<1-500>
Timeout value
force-explicit-null
Force Explicit NULL label
detail
Print detailed output of the trace probe
Defaults
Default timeout value is 60 seconds.
Command Mode
Privileged Exec mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
#trace mpls ipv4 10.10.0.0/24 reply-mode 2 flags destination 127.1.2.3 source 10.10.0.1 timeout 65 detail force-explicit-null
#trace mpls l3vpn vrfa 10.10.0.0/24 reply-mode 2 flags destination 127.1.2.3 source 10.10.0.1 timeout 65 detail force-explicit-null
#trace mpls ldp 10.10.0.0/24 reply-mode 2 flags destination 127.1.2.3 source 10.10.0.1 timeout 65 detail force-explicit-null
#trace mpls rsvp egress 1.2.3.5 reply-mode 2 flags destination 127.1.2.3 source 10.10.0.1 timeout 65 detail force-explicit-null
#trace mpls rsvp tunnel-name tun1 reply-mode 2 flags destination 127.1.2.3 source 10.10.0.1 timeout 65 detail force-explicit-null
tunnel-id
Use this command to configure tunnel identifier for the MPLS transport tunnel to be used for the MPLS layer-2 virtual circuit.
Use the no parameter with this command to delete tunnel identifier from the MPLS layer-2 virtual circuit.
Command Syntax:
tunnel-id <1-5000>
no tunnel-id
Parameters
<1-5000>
Identifying value for Tunnel-id
Default
By default, tunnel-id is disabled
Command Mode
Configure Pseudowire mode
Applicability
This command was introduced before OcNOS version 1.X
Example
#configure terminal
(config)#mpls l2-circuit mycircuit 45678 1.2.3.4
(config-pseudowire)#tunnel-id 22
tunnel-name
Use this command to configure tunnel name for the MPLS transport tunnel to be used for the MPLS layer-2 virtual circuit.
Use the no parameter with this command to delete tunnel name from the MPLS layer-2 virtual circuit.
Command Syntax:
tunnel-name NAME
no tunnel-name
Parameters
NAME
Identifying name for MPLS Tunnel
Default
By default, tunnel-name is disabled
Command Mode
Configure Pseudowire mode
Applicability
This command was introduced before OcNOS version 1.X
Example
#configure terminal
(config)#mpls l2-circuit mycircuit 45678 1.2.3.4
(config-pseudowire)#tunnel-name pe1-to-pe2
tunnel-select-policy
Use this command to configure tunnel selection policy name for the MPLS transport tunnel to be used for the MPLS layer-2 virtual circuit.
Use the no parameter with this command to delete tunnel selection policy name from the MPLS layer-2 virtual circuit.
Command Syntax
tunnel-select-policy POLICYNAME
no tunnel-select-policy
Parameters
POLICYNAME
Selection policy name for MPLS Tunnel
Default
By default, tunnel-select-policy is disabled
Command Mode
Configure Pseudowire mode
Applicability
This command was introduced before OcNOS version 1.X
Example
#configure terminal
(config)#mpls l2-circuit mycircuit 45678 1.2.3.4
(config-pseudowire)#tunnel-select-policy policy1
vccv cv-type
Use this command to configure the VCCV control verification for MPLS layer-2 virtual circuit.
Use the no parameter with this command to disable control verification from MPLS layer-2 virtual circuit.
Command Syntax:
vccv cv-type (type-1|type-2|type-3|type-4)
no vccv cv-type (type-1|type-2|type-3|type-4)
Parameters
type-1
BFD IP/UDP-encapsulated for PW Fault Detection only
type-2
BFD IP/UDP-encapsulated for PW Fault Detection and AC/PW Fault Status Signalling
type-3
BFD PW-ACH-encapsulated for PW Fault Detection only
type-4
BFD PW-ACH-encapsulated for PW Fault Detection and AC/PW Fault Status Signalling
Default
By default, vccv is disabled
Command Mode
Configure Pseudowire mode
Applicability
This command was introduced before OcNOS version 1.X
Example
#configure terminal
(config)#mpls l2-circuit mycircuit 45678 1.2.3.4
(config-pseudowire)# vccv cv-type type-1