Saturday, May 21, 2011

show ip ospf route undocumented command in IOS

This command i think introduced in NX-OS series but IOS also support this but not documented seems to be:
I have checked in the following version:
R2#show ver
Cisco IOS Software, 3700 Software (C3725-ADVENTERPRISEK9-M), Version 12.4(15)T7, RELEASE SOFTWARE (fc3)
Not supported command ??

R2#show ip ospf ro?  
% Unrecognized command
R2# show ip ospf route

            OSPF Router with ID (192.168.30.10) (Process ID 10)

    Area BACKBONE(0)

    Intra-area Route List
*   192.168.20.0/30, Intra, cost 64, area 0, Connected
      via 192.168.20.1, Serial0/1

    Intra-area Router Path List
i 192.168.20.2 [64] via 192.168.20.2, Serial0/1, ABR, Area 0, SPF 4

    Inter-area Route List
*>  192.168.10.64/26, Inter, cost 138, area 0
      via 192.168.20.2, Serial0/1
*>  192.168.10.32/28, Inter, cost 129, area 0
      via 192.168.20.2, Serial0/1
*>  192.168.10.0/27, Inter, cost 128, area 0
      via 192.168.20.2, Serial0/1

    Inter-area Router Path List
I 192.168.10.33 [128] via 192.168.20.2, Serial0/1, ASBR, Area 0, SPF 4

    Area 1

    Intra-area Route List
*>  192.168.30.0/29, Intra, cost 74, area 1
      via 192.168.30.9, Serial0/0
*   192.168.30.8/29, Intra, cost 64, area 1, Connected
      via 192.168.30.10, Serial0/0

    External Route List
*>  100.100.100.0/24, Ext2, cost 20, tag 0
      via 192.168.20.2, Serial0/1
This is similar to show ip route ospf but it has nice area separation . Also lists the ABR , ASBR rather than checking "show ip ospf border-routers" this command list in the route as
Intra-area Router Path List,Inter-area Router Path List,
vs
R2#show ip route ospf
     192.168.30.0/29 is subnetted, 2 subnets
O       192.168.30.0 [110/74] via 192.168.30.9, 00:17:26, Serial0/0
     192.168.10.0/24 is variably subnetted, 3 subnets, 3 masks
O IA    192.168.10.64/26 [110/138] via 192.168.20.2, 00:08:30, Serial0/1
O IA    192.168.10.32/28 [110/129] via 192.168.20.2, 00:12:08, Serial0/1
O IA    192.168.10.0/27 [110/128] via 192.168.20.2, 00:16:10, Serial0/1