Skip navigation
Cisco Learning Home > Certifications > CCIE Routing & Switching > Discussions

_Communities

This Question is Answered 2 Helpful Answers available (2 pts)
657 Views 1 Reply Latest reply: Apr 23, 2012 1:04 PM by borzol CCNP (CCIE R&S candidate) RSS

Currently Being Moderated

ospf debugging

Apr 23, 2012 12:08 PM

Sampath Weerasinghe - CCIE 203 posts since
Oct 3, 2009

If you want to monitor additions to the ospf database, which debug command is best?

 

-Sam

 

Rack1R2#debug ip ospf ?

  adj             OSPF adjacency events

  database-timer  OSPF database timer

  events          OSPF events

  flood           OSPF flooding

  hello           OSPF hello events

  lsa-generation  OSPF lsa generation

  mpls            OSPF MPLS

  nsf             OSPF non-stop forwarding events

  packet          OSPF packets

  retransmission  OSPF retransmission events

  spf             OSPF spf

  tree            OSPF database tree

  • borzol CCNP (CCIE R&S candidate) 276 posts since
    Apr 6, 2012
    Currently Being Moderated
    Re: ospf debugging

    hi,

    debug ip ospf spf will show you the changes of ospf DB.

     

    R1 --- R2

    you see the output when I put lo0 interface (ip add 3.3.3.3/32) into up state.

     

    R2#

    *Mar  1 00:05:31.251: OSPF: Detect change in LSA type 1, LSID 1.1.1.2, from 1.1.1.2 area 0

    *Mar  1 00:05:31.251: OSPF: Schedule SPF in area 0

          Change in LS ID 1.1.1.2, LSA type R, , spf-type Full

    R2#

    *Mar  1 00:05:35.499: OSPF: Do not schedule partial SPF - type 3 id 3.3.3.3 adv rtr 1.1.1.2, INTRA/INTER spf scheduled

    *Mar  1 00:05:36.255: OSPF: running SPF for area 0, SPF-type Full

    *Mar  1 00:05:36.255: OSPF: Initializing to run spf

    *Mar  1 00:05:36.255:  OSPF - spf_intra() - rebuilding the tree

    *Mar  1 00:05:36.255:  It is a router LSA 1.1.1.1. Link Count 1

    *Mar  1 00:05:36.255:   Processing link 0, id 1.1.1.2, link data 1.1.1.1, type 2

    *Mar  1 00:05:36.255:    Add better path to LSA ID 1.1.1.2, gateway 1.1.1.1, dist 10

    *Mar  1 00:05:36.255: OSPF: putting LSA on the clist LSID 1.1.1.2, Type 2, Adv Rtr. 1.1.1.2

    *Mar  1 00:05:36.255:    Add path: next-hop 1.1.1.1, interface FastEthernet0/0

    *Mar  1 00:05:36.255: OSPF: downheap LSA on the clist LSID 1.1.1.2, Type 2, Adv Rtr. 1.1.1.2,

                                  from index 1 to index 1

    *Mar  1 00:05:36.259: OSPF: delete lsa id 1.1.1.2, type 2, adv rtr 1.1.1.2 from delete list

    *Mar  1 00:05:36.259: OSPF: insert route list LS ID 1.1.1.2, typ

    R2#e 2, adv rtr 1.1.1.2

    *Mar  1 00:05:36.259:  It is a network LSA 1.1.1.2. Router Count 2

    *Mar  1 00:05:36.259:   Processing router id 1.1.1.2

    *Mar  1 00:05:36.263:    Add better path to LSA ID 1.1.1.2, gateway 1.1.1.2, dist 10

    *Mar  1 00:05:36.263: OSPF: putting LSA on the clist LSID 1.1.1.2, Type 1, Adv Rtr. 1.1.1.2

    *Mar  1 00:05:36.263:    Add path: next-hop 1.1.1.2, interface FastEthernet0/0

    *Mar  1 00:05:36.263:   Processing router id 1.1.1.1

    *Mar  1 00:05:36.267:   New newdist 10 olddist 0

    *Mar  1 00:05:36.267: OSPF: downheap LSA on the clist LSID 1.1.1.2, Type 1, Adv Rtr. 1.1.1.2,

                                  from index 1 to index 1

    *Mar  1 00:05:36.267: OSPF: Add ABR Router Route to 1.1.1.2 via 1.1.1.2. Metric: 10. Area 0

    *Mar  1 00:05:36.267: OSPF: Schedule SPF in area 0

          Change in LS ID 1.1.1.2, LSA type SN, , spf-type Prefix Recalculation

    *Mar  1 00:05:36.267: OSPF: insert route list LS ID 1.1.1.2, type 1, adv rtr 1.1.1.2

    *Mar  1 00:05:36.267:  It is a router LSA 1.1.1.2. Link

    R2# Count 1

    *Mar  1 00:05:36.267:   Processing link 0, id 1.1.1.2, link data 1.1.1.2, type 2

    *Mar  1 00:05:36.267:   Ignore newdist 20 olddist 10

    *Mar  1 00:05:36.267: OSPF: Adding Stub nets

    *Mar  1 00:05:36.271: OSPF: Entered old delete routine

    *Mar  1 00:05:36.271: OSPF: ospf_gen_asbr_sum_all_areas

    *Mar  1 00:05:36.271: OSPF: running spf for summaries area 0

    *Mar  1 00:05:36.271: OSPF: Start processing Summary LSA 3.3.3.3, mask 255.255.255.255, adv 1.1.1.2, age 1, seq 0x80000001 (Area 0) type 3

    *Mar  1 00:05:36.271:    Add better path to LSA ID 3.3.3.3, gateway 0.0.0.0, dist 11

    *Mar  1 00:05:36.271:    Add path: next-hop 1.1.1.2, interface FastEthernet0/0

    *Mar  1 00:05:36.271:    Add Summary Route to 3.3.3.3/255.255.255.255. Metric: 11, Next Hop: 1.1.1.2

    *Mar  1 00:05:36.271: OSPF: insert route list LS ID 3.3.3.3, type 3, adv rtr 1.1.1.2

    *Mar  1 00:05:36.275: OSPF: sum_delete_old_routes area 0

    *Mar  1 00:05:36.275: OSPF: Started Building Type 5 External Routes

    *Mar  1 00:

    R2#05:36.275: OSPF: ex_delete_old_routes

    *Mar  1 00:05:36.275: OSPF: Started Building Type 7 External Routes

    *Mar  1 00:05:36.275: OSPF: ex_delete_old_routes

    R2#sh ip os dat

    R2#sh ip os database

     

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

     

                    Router Link States (Area 0)

     

    Link ID         ADV Router      Age         Seq#       Checksum Link count

    1.1.1.1         1.1.1.1         116         0x80000004 0x009A7B 1

    1.1.1.2         1.1.1.2         17          0x80000005 0x009977 1

     

                    Net Link States (Area 0)

     

    Link ID         ADV Router      Age         Seq#       Checksum

    1.1.1.2         1.1.1.2         117         0x80000001 0x008F9A

     

                    Summary Net Link States (Area 0)

     

    Link ID         ADV Router      Age         Seq#       Checksum

    3.3.3.3         1.1.1.2         12          0x80000001 0x00E446

    R2#sh deb

    R2#sh debugging

    IP routing:

      OSPF spf events debugging is on

      OSPF spf intra events debugging is on

      OSPF spf inter events debugging is on

      OSPF spf external events debugging is on

     

    rgds,

    Z

Actions

More Like This

  • Retrieving data ...

Bookmarked By (0)