shorten the MPLS IOS commands

when it comes to mpls + vrf we can observe some lengthly commands..

R3#show bgp vpnv4 unicast vrf CusA
BGP table version is 7, local router ID is 192.168.254.3
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
              r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete

   Network          Next Hop            Metric LocPrf Weight Path
Route Distinguisher: 65001:100 (default for vrf CusA)
*> 192.168.200.0    192.168.100.1            0             0 65100 i
*>i192.168.210.0    192.168.254.8            0    100      0 65101 i

how to shorten these commands as usual we can use aliases

eg:

alias exec shbgpvrf show bgp vpnv4 unicast vrf

R3#shbgpvrf CusA
BGP table version is 7, local router ID is 192.168.254.3
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
              r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete

   Network          Next Hop            Metric LocPrf Weight Path
Route Distinguisher: 65001:100 (default for vrf CusA)
*> 192.168.200.0    192.168.100.1            0             0 65100 i
*>i192.168.210.0    192.168.254.8            0    100      0 65101 i

eg2: alias exec shvrf show ip route vrf


R3#shvrf CusA

Routing Table: CusA
Codes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGP
       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area 
       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
       E1 - OSPF external type 1, E2 - OSPF external type 2
       i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
       ia - IS-IS inter area, * - candidate default, U - per-user static route
       o - ODR, P - periodic downloaded static route, + - replicated route

Gateway of last resort is not set

      192.168.100.0/24 is variably subnetted, 2 subnets, 2 masks
C        192.168.100.0/30 is directly connected, Ethernet0/0
L        192.168.100.2/32 is directly connected, Ethernet0/0
B     192.168.200.0/24 [20/0] via 192.168.100.1, 00:10:08
B     192.168.210.0/24 [200/0] via 192.168.254.8, 00:08:42

Comments

Popular posts from this blog

PPTP Server as Cisco for Mikrotik Client

l2tpv3 configuration reference

proxy arp