Display a summary of OSPF interfaces

When I was lab-testing the ideas for my article on EIGRP-to-OSPF migration, I had to check the OSPF interface cost ... and complained immensely at the amount of information produced by the show ip ospf interface command. Luckily I've double-checked before starting to write a Tcl script and realized that a brief keyword was added in IOS release 12.3, producing exactly the printout I was looking for.On my test router, the show ip ospf interfaces brief command produced this nicely-tabulated printout:

a1#show ip ospf interface brief
Interface PID Area IP Address/Mask Cost State Nbrs F/C
Lo0 1 0 172.16.0.11/32 1 LOOP 0/0
Se0/0/0.100 1 0 172.16.1.1/30 50 P2P 1/1
Fa0/0 1 0 10.0.0.5/24 1 BDR 1/1
Fa0/1 1 11 10.1.2.1/24 1 DR 0/0

The netmask-format of your line has to be set to bit-count for this command to work properly, otherwise the columns will be shifted to the right.

1 comment:

  1. I would like to know why my ospf tunnel 1602 cost (50) is different to a ospf serial cost running config (6), if this tunnel is configurated to work with this interface is this possible???

    ro#show ip ospf interface brief
    Interface PID Area IP Address/Mask Cost State Nbrs F/C
    Tu1610 1 0 0.0.0.0/0 50 P2P 0/0
    Lo5 1 0 10.48.8.5/32 1 LOOP 0/0
    Lo4 1 0 10.48.8.4/32 1 LOOP 0/0
    Lo3 1 0 10.48.8.3/32 1 LOOP 0/0
    Lo2 1 0 10.48.8.2/32 1 LOOP 0/0
    Lo1 1 0 10.48.8.1/32 1 LOOP 0/0
    Tu1603 1 0 0.0.0.0/0 50 DOWN 0/0
    Tu1602 1 0 0.0.0.0/0 50 P2P 0/0
    Tu1601 1 0 0.0.0.0/0 1 P2P 0/0
    Tu1600 1 0 0.0.0.0/0 50 P2P 0/0
    Lo0 1 0 10.48.0.8/32 1 LOOP 0/0
    PO4/0 1 0 10.1.232.6/30 6 P2P 1/1
    Se3/2:0 1 0 10.1.224.218/30 6 P2P 1/1
    Se3/1:0 1 0 10.1.225.150/30 6 P2P 1/1
    Se3/0:0 1 0 10.1.226.82/30 6 P2P 1/1
    Se1/7:0 1 0 10.1.224.238/30 6 P2P 1/1
    Se1/6:0 1 0 10.1.224.234/30 6 P2P 1/1
    Se1/5:0 1 0 10.1.225.246/30 6 P2P 1/1
    Se1/4:0 1 0 10.1.225.242/30 6 P2P 1/1
    Se1/3:0 1 0 10.1.225.126/30 6 P2P 1/1
    Se1/2:0 1 0 10.1.225.70/30 6 P2P 1/1
    Se1/1:0 1 0 10.1.225.46/30 6 P2P 1/1
    Se1/0:0 1 0 10.1.224.14/30 6 P2P 1/1

    ReplyDelete

You don't have to log in to post a comment, but please do provide your real name/URL. Anonymous comments might get deleted.

Ivan Pepelnjak, CCIE#1354, is the chief technology advisor for NIL Data Communications. He has been designing and implementing large-scale data communications networks as well as teaching and writing books about advanced technologies since 1990. See his full profile, contact him or follow @ioshints on Twitter.