Sunday, September 14, 2014

MPLS command line interface (troubleshooting)

show mpls ip binding
show mpls ldp binding
show mpls ldp binding local
show mpls ldp binding x.x.x.x
show mpls forwarding-table x.x.x.x
show mpls forwarding-table vrf x.x.x.x
show mpls ldp neighbor 
show ip cef
show vrf
show ip route vrf xxx
ip route vrf xxx 10.10.10.0 255.255.255.0 192.168.1.1

telnet 1.1.1.1 vrf/ xxx
traceroute vrf xxx 10.10.10.10
ping vrf xxx 1.1.1.1

ping mpls ipv4 x.x.x.x/yy
traceroute mpls ipv4 x.x.x.x 255.255.255.255

show ip bgp neighbors
show bgp vpnv4 unicast vrf
...

remarks
xxx = vrf instance (1.1.1.1:abc {or} 101:abc)
x.x.x.x = destination ip address
yy = CIDR

Example:

R1-PE# ping vrf 101:ACME 192.168.202.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.202.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 76/104/124 ms

=====================================================

R1-PE# traceroute vrf 101:ACME 192.168.202.2
Type escape sequence to abort.
Tracing the route to 192.168.202.2
VRF info: (vrf in name/id, vrf out name/id)
  1 10.14.0.2 [MPLS: Labels 201/508 Exp 0] 108 msec 80 msec 96 msec
  2 10.23.0.3 [MPLS: Labels 302/508 Exp 0] 92 msec 84 msec 84 msec
  3 10.34.0.4 [MPLS: Labels 402/508 Exp 0] 76 msec 112 msec 80 msec
  4 192.168.202.1 112 msec 80 msec 120 msec
  5 192.168.202.2 128 msec 144 msec 156 msec

=====================================================

R1-PE#show ip route vrf 101:ACME

Routing Table: 101:ACME

      172.16.0.0/16 is variably subnetted, 3 subnets, 2 masks
C        172.16.101.0/30 is directly connected, FastEthernet2/0
L        172.16.101.1/32 is directly connected, FastEthernet2/0
O        172.16.111.2/32 [110/2] via 172.16.101.2, 00:04:25, FastEthernet2/0
      192.168.111.0/32 is subnetted, 1 subnets
B        192.168.111.2 [200/1] via 5.5.5.5, 00:03:58
      192.168.202.0/30 is subnetted, 1 subnets
B        192.168.202.0 [200/0] via 5.5.5.5, 00:03:58



No comments:

Post a Comment