Monitoring Layer 2 Services over MPLS
You can monitor layer 2 services over MPLS using the show mpls interface [ shim ] and the show mpls forwarding commands.
show mpls interface
show mpls interface shim
- Use to display status and configuration information about MPLS interfaces.
- When the keyword shim is specified instead of a particular interface, all shim interfaces are displayed. Otherwise, the specified interface is displayed.
- Field descriptions
- Interface - specifier and status of each interface
- base-LSP/remote-addr - identifies either the tunnel that is selected to forward the traffic, or the address of the router at the other end.
- group-id - group ID number for the interface
- vc-id - VC ID number for the interface
- state/in/out-label - status of the layer 2 over MPLS connection or the incoming/outgoing VC label
- mtu - maximum transmission unit for the interface
- Mpls Statistics
- pkts - number of packets received or sent
- hcPkts - number of high-capacity (64-bit) packets received or sent
- octets - number of octets received or sent
- hcOctets - number of high-capacity (64-bit) octets received or sent
- errors - number of packets that are dropped for some reason at receipt or before being sent
- discardPkts - number of packets that are discarded due to lack of buffer space at receipt or before being sent
host1:two#show mpls interface shim briefInterface base-LSP/remote-addr group-id vc-id state/in/out-labelserial4/1:1/1.1 tun mpls:1 0 1 20 45serial4/1:1/1.2 tun mpls:1 0 2 21 46serial4/1:1/1.3 tun mpls:1 0 3 22 47host1:two#show mpls interface shimserial4/1:1/1.1base LSP tun mpls:1 to 222.9.1.3group-id 0 vc-id 1 mtu 1600State UPIn Label 20 on stack0 pkts, 0 hcPkts, 0 octets0 hcOctets, 0 errors, 0 discardPktsOut Label 45 on tun mpls:10 pkts, 0 hcPkts, 0 octets0 hcOctets, 0 errors, 0 discardPktsshow mpls forwarding
- Use to display configuration and statistics for all label-switching paths (LSPs) or for specific LSPs configured on the label-switching router (LSR).
- Field descriptions
- name/id - interface specifier
- destination - destination ip address
- In label - label sent to upstream neighbor for route
- Out label - label received from downstream neighbor for route
- pkts - number of packets sent across tunnel
- hcPkts - number of high-capacity (64-bit) packets sent across tunnel
- octets - number of octets sent across tunnel
- hcOctets - number of high-capacity (64-bit) octets sent across tunnel
- errors - number of packets that are dropped for some reason before being sent
- discardPkts - number of packets that are discarded due to lack of buffer space before being sent
host1:two#show mpls forwarding briefname/id destination label/intfserial4/1:1/1.1 222.9.1.3 In 20Out 45 on tun mpls:1 nbr 222.9.1.3serial4/1:1/1.2 222.9.1.3 In 21Out 46 on tun mpls:1 nbr 222.9.1.3host1:two#show mpls forwardingserial4/1:1/1/1/1/1.1 to 222.9.1.3In label 200 pkts, 0 hcPkts, 0 octets0 hcOctets, 0 errors, 0 discardPktsOut label 45 on tun mpls:1 nbr 222.9.1.30 pkts, 0 hcPkts, 0 octets0 hcOctets, 0 errors, 0 discardPkts