To display the MPLS label imposition configuration, perform one of the following tasks:
Command |
Purpose |
show feature | grep segment-routing
|
Displays the status of MPLS label imposition.
|
show feature-set
|
Displays the status of the MPLS feature set.
|
show forwarding mpls label
label
|
Displays MPLS label forwarding statistics for a particular label.
|
show mpls label range
|
Displays the label range that is configured for MPLS label imposition.
|
show mpls static binding {all | ipv4}
|
Displays the configured static prefix or label bindings.
|
show mpls switching [detail]
|
Displays MPLS label switching information.
|
show running-config mpls static
|
Displays the running static MPLS configuration.
|
This example shows sample output for the show forwarding mpls label 8100 command:
slot 1
=======
--------+-----------+-------------------+----------------+-------------+----------------------
Local|Prefix|FEC |Next-Hop |Interface | Out Label |Table Id |(Prefix/Tunnel id)|Label
--------+-----------+-------------------+----------------+------------+----------------------
8100 |0x1 |25.25.0.0/16 |12.12.1.2 |Po121 |3131 SWAP | | | 17
" |0x1 |25.25.0.0/16 |12.12.2.2 |Eth1/51 |3131 SWAP | | | 17
" |0x1 |25.25.0.0/16 |12.12.3.2 |Vlan122 |3131 SWAP | | | 17
" |0x1 |25.25.0.0/16 |12.12.4.2 |Vlan123 |3131 SWAP | | | 17
This example shows sample output for the show mpls static binding all command:
LI_TEST1 25.25.0.0/16: (vrf: default) Incoming label: 8100
LSP Type: POLICY
Outgoing labels:
(path 1) 12.12.1.2 3131,17
(path 2) 12.12.2.2 3131,17
(path 3) 12.12.3.2 3131,17
(path 4) 12.12.4.2 3131,17
LI_TEST2 (vrf: default) Incoming label: 8200
LSP Type: XC
Outgoing labels:
(path 1) 12.12.3.2 3132,16
(path 2) 12.12.4.2 3132,16
(path 3) 12.12.1.2 3132,16
(path 4) 12.12.2.2 3132,16
This example shows sample output for the show mpls switching command:
Legend:
(P)=Protected, (F)=FRR active, (*)=more labels in stack.
Local Out-Label FEC Out-Interface Next-Hop
8200 3132 Label 8200 12.12.3.2 *
8200 3132 Label 8200 12.12.4.2 *
8200 3132 Label 8200 12.12.1.2 *
8200 3132 Label 8200 12.12.2.2 *
Local Out-Label FEC Out-Interface Next-Hop
8100 3131 Pol 25.25.0.0/16 12.12.1.2 *
8100 3131 Pol 25.25.0.0/16 12.12.2.2 *
8100 3131 Pol 25.25.0.0/16 12.12.3.2 *
8100 3131 Pol 25.25.0.0/16 12.12.4.2 *
This example shows sample output for the show running-config mpls static command:
mpls static configuration
address-family ipv4 unicast
lsp LI_TEST2
in-label 8100 allocate policy 25.25.0.0 255.255.0.0
forward
path 1 next-hop 12.12.1.2 out-label-stack 3131 17
path 2 next-hop 12.12.2.2 out-label-stack 3131 17
path 3 next-hop 12.12.3.2 out-label-stack 3131 17
path 4 next-hop 12.12.4.2 out-label-stack 3131 17
This example shows sample output for the show running-config mpls static all command.
switch# show running-config mpls static all
!Command: show running-config mpls static all
!Time: Mon Aug 21 14:59:46 2017
version 7.0(3)I7(1)
logging level mpls static 5
mpls static configuration
address-family ipv4 unicast
lsp 9_label_stack_LPM
in-label 72000 allocate policy 71.200.11.0 255.255.255.0
forward
path 1 next-hop 27.1.32.4 out-label-stack 21901 29701 27401 24501 25801
lsp 9_label_stack_LPM_01
in-label 72001 allocate policy 72.201.1.1 255.255.255.255
lsp DRV-01
in-label 71011 allocate policy 71.111.21.0 255.255.255.0
forward
path 1 next-hop 27.1.31.4 out-label-stack implicit-null
lsp DRV-02
in-label 71012 allocate policy 71.111.22.0 255.255.255.0
forward
path 1 next-hop 8.8.8.8 out-label-stack 28901
lsp DRV-03
switch# show forwarding mpls label 72000
slot 1
=======
--------+-----------+-------------------+----------------+-------------+-------
Local |Prefix |FEC |Next-Hop |Interface |Out
Label |Table Id |(Prefix/Tunnel id) | | |Label
--------+-----------+-------------------+----------------+-------------+-------
72000 |0x1 |71.200.11.0/24 |27.1.32.4 |Eth1/21 |21901 SWAP
| | | | | 29701
| | | | | 27401
| | | | | 24501
| | | | | 25801