Locations of visitors to this page Perfect dream will never let you sleep in peace...untill you make it real: ospf commands

Sunday, April 10, 2011

ospf commands

sh ip protocol


Router#sh ip pro
Routing Protocol is "ospf 100"
  Outgoing update filter list for all interfaces is not set
  Incoming update filter list for all interfaces is not set
  Router ID 1.1.1.1
  Number of areas in this router is 1. 1 normal 0 stub 0 nssa
  Maximum path: 4
  Routing for Networks:
    1.1.0.0 0.0.255.255 area 100
    10.0.0.0 0.255.255.255 area 100
 Reference bandwidth unit is 100 mbps
  Routing Information Sources:
    Gateway         Distance      Last Update
    2.2.2.2              110      00:00:19
  Distance: (default is 110)


sh ip ospf  or sh ip ospf process ID --->shows how many times SPF has been calculated. More the number lesser the stability of the network.


Router#sh ip ospf                                                  
 Routing Process "ospf 100" with ID 1.1.1.1
 Start time: 00:01:25.328, Time elapsed: 00:41:49.764
 Supports only single TOS(TOS0) routes
 Supports opaque LSA
 Supports Link-local Signaling (LLS)
 Supports area transit capability
 Router is not originating router-LSAs with maximum metric
 Initial SPF schedule delay 5000 msecs
 Minimum hold time between two consecutive SPFs 10000 msecs
 Maximum wait time between two consecutive SPFs 10000 msecs
 Incremental-SPF disabled
 Minimum LSA interval 5 secs
 Minimum LSA arrival 1000 msecs
 LSA group pacing timer 240 secs
 Interface flood pacing timer 33 msecs
 Retransmission pacing timer 66 msecs
 Number of external LSA 0. Checksum Sum 0x000000
 Number of opaque AS LSA 0. Checksum Sum 0x000000
 Number of DCbitless external and opaque AS LSA 0
 Number of DoNotAge external and opaque AS LSA 0
 Number of areas in this router is 1. 1 normal 0 stub 0 nssa
 Number of areas transit capable is 0
 External flood list length 0
    Area 100
        Number of interfaces in this area is 2 (1 loopback)
        Area has no authentication
        SPF algorithm last executed 00:01:20.384 ago
        SPF algorithm executed 4 times
        Area ranges are
        Number of LSA 3. Checksum Sum 0x01587C
        Number of opaque link LSA 0. Checksum Sum 0x000000
        Number of DCbitless LSA 0
        Number of indication LSA 0
        Number of DoNotAge LSA 0
        Flood list length 0



sh ip ospf database --> shows number of connected neighbors discovered by hello packets


Router#sh ip ospf database

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

                Router Link States (Area 100)

Link ID         ADV Router      Age         Seq#       Checksum Link count
1.1.1.1         1.1.1.1         169         0x80000004 0x0025C1 2
2.2.2.2         2.2.2.2         168         0x80000003 0x003B9F 2

                Net Link States (Area 100)

Link ID         ADV Router      Age         Seq#       Checksum
10.10.1.1       1.1.1.1         169         0x80000001 0x00F71C



sh ip ospf interface--->

 Router#sh ip ospf interface f0/0
FastEthernet0/0 is up, line protocol is up --->state of the link
  Internet Address 10.10.1.1/24, Area 100 --->interface IP and area in which the interface is
  Process ID 100, Router ID 1.1.1.1, Network Type BROADCAST, Cost: 1----> cost of the link
  Transmit Delay is 1 sec, State DR, Priority 1 -->TD is amount of time taken in sending update to the neighbor, state is DR,BDR,Waiting,DROther. Priority is another parameter in hello packet of OPSF
  Designated Router (ID) 1.1.1.1, Interface address 10.10.1.1
  No backup designated router on this network
  Timer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit 5--->shows hello packet varialbles
    oob-resync timeout 40
    Hello due in 00:00:02
  Supports Link-local Signaling (LLS)
  Index 2/2, flood queue length 0
  Next 0x0(0)/0x0(0)
  Last flood scan length is 0, maximum is 0
  Last flood scan time is 0 msec, maximum is 0 msec
  Neighbor Count is 0, Adjacent neighbor count is 0
  Suppress hello for 0 neighbor(s)

Sh ip ospf neigh


Router#sh ip ospf neighbor

Neighbor ID     Pri   State           Dead Time   Address         Interface
2.2.2.2           1   FULL/BDR        00:00:33    10.10.1.2       FastEthernet0/0

it shows about neighbor states and physical interface with which the neigbor is connected


Router#sh ip ospf neighbor 2.2.2.2
 Neighbor 2.2.2.2, interface address 10.10.1.2
    In the area 100 via interface FastEthernet0/0
    Neighbor priority is 1, State is FULL, 6 state changes  -----> INIT, 2 WAY, EXSTART, EXCHANGE, LOADING, FULL,DOWN,ATTEMPT
    DR is 10.10.1.1 BDR is 10.10.1.2
    Options is 0x52
    LLS Options is 0x1 (LR)
    Dead timer due in 00:00:35
    Neighbor is up for 00:12:22
    Index 1/1, retransmission queue length 0, number of retransmission 0
    First 0x0(0)/0x0(0) Next 0x0(0)/0x0(0)
    Last retransmission scan length is 0, maximum is 0
    Last retransmission scan time is 0 msec, maximum is 0 msec



No comments:

Post a Comment