Val:~$ whoami

I am Val Glinskiy, network engineer specializing in data center networks. TIME magazine selected me as Person of the Year in 2006.

Search This Blog

Saturday, November 19, 2011

Hidden OSPF command

I was testing some OSPF features and wanted to check routes learned via OSPF. Before going into LSA database, I checked RIB, but the output format was not what I was expecting:

           OSPF Router with ID (1.1.1.1) (Process ID 1)


    Area BACKBONE(0)


    Intra-area Route List
*   1.1.1.1/32, Intra, cost 1, area 0, Connected
      via 1.1.1.1, Loopback0
*   11.11.11.11/32, Intra, cost 1, area 0, Connected
      via 11.11.11.11, Loopback11

    Intra-area Router Path List
i 4.4.4.4 [564] via 192.168.12.2, Serial1/0.12, ABR, Area 0, SPF 11

    Inter-area Route List
*>  4.4.4.4/32, Inter, cost 565, area 0
      via 192.168.12.2, Serial1/0.12

    Area 1

    Intra-area Route List
*>  192.168.24.0/24, Intra, cost 564, area 1
      via 192.168.12.2, Serial1/0.12


So, I checked what I typed in the command line. It was "R1#sho ip ospf route" instead of "show ip route ospf". However, "route" does not show up as an option for "show ip ospf" command:
R1#sho ip ospf ?
  <1-65535>            Process ID number
  border-routers       Border and Boundary Router Information
  database             Database summary
  flood-list           Link state flood list
  interface            Interface information
  max-metric           Max-metric origination information
  mpls                 MPLS related information
  neighbor             Neighbor list
  request-list         Link state request list
  retransmission-list  Link state retransmission list
  rib                  Routing Information Base (RIB)
  sham-links           Sham link information
  statistics           Various OSPF Statistics
  summary-address      Summary-address redistribution Information
  timers               OSPF timers information
  traffic              Traffic related statistics
  virtual-links        Virtual link information
  |                    Output modifiers
 R1#sho ip ospf route ?
% Unrecognized command

I am running 12.4(15)T14 on the router. This is very useful command and output is easier to interpret than "show ip ospf database". Why does Cisco keep it hidden? 


No comments:

Post a Comment