www.howtonetwork.org

CCNA & CCNP Certifcation Training

  • About
  • Contact
  • FAQ
  • Join
  • Home
  • CCNA
    • ICND1
    • ICND2
    • 101 CCNA LABS
  • CCNP
    • ROUTE
    • SWITCH
    • TSHOOT
    • 101 CCNP LABS
  • CompTIA
    • Security+
    • Network+
  • Design
    • CCDA
    • CCDP
You are here: Home / 101 CCNA LABS / IP Routing Solutions / Lab 54 Solution: Debugging OSPF Adjacencies

Lab 54 Solution: Debugging OSPF Adjacencies

Task 1:

For reference information on configuring hostnames, please refer to:

Lab 21 Configuration and Verification Task 1

Lab 35 Configuration and Verification Task 1

Task 2:

Sw1#config t

Enter configuration commands, one per line.  End with CNTL/Z.

Sw1(config)#vtp mode transparent

Setting device to VTP TRANSPARENT mode.

Sw1(config)#vlan 4010

Sw1(config-vlan)#name OSPF_VLAN

Sw1(config-vlan)#exit

Sw1(config)#

Sw1(config)#interface fastethernet0/2

Sw1(config-if)#switchport mode access

Sw1(config-if)#switchport access vlan 4010

Sw1(config-if)#no shut

Sw1(config-if)#exit

Sw1(config)#interface fastethernet0/2

Sw1(config-if)#switchport mode access

Sw1(config-if)#switchport access vlan 4010

Sw1(config-if)#no shut

Sw1(config-if)#end

Sw1#

Sw1#show vlan brief

VLAN Name Status Ports
—- ——————————– ——— ——————————-
1 default active Fa0/1, Fa0/4
Fa0/5, Fa0/6, Fa0/7, Fa0/8
Fa0/9, Fa0/10, Fa0/11, Fa0/12
Fa0/13, Fa0/14, Fa0/15, Fa0/16
Fa0/17, Fa0/18, Fa0/19, Fa0/20
Fa0/21, Fa0/22, Fa0/23, Fa0/24
Gi0/1, Gi0/2
1002 fddi-default active
1003 token-ring-default active
1004 fddinet-default active
1005 trnet-default active
4010 OSPF_VLAN active Fa0/2, Fa0/3

Sw1#

For reference information on configuring IP interfaces, please refer to:

Lab 3 Configuration and Verification Task 5

Lab 31 Configuration and Verification Task 3

Task 3:

R1#conf t

Enter configuration commands, one per line.  End with CNTL/Z.

R1(config)#router ospf 1

R1(config-router)#network 192.168.20.0 0.0.0.3 area 0

R1(config-router)#end

R1#

R2#conf t

Enter configuration commands, one per line.  End with CNTL/Z.

R2(config)#router ospf 2

R2(config-router)#network 192.168.20.0 0.0.0.3 area 0

R2(config-router)#^Z

*Mar  1 02:10:48.305: %OSPF-5-ADJCHG: Process 2, Nbr 192.168.20.1 on FastEthernet0/0 from LOADING to FULL, Loading Done

R2#

R2#show ip ospf interface fastethernet 0/0

FastEthernet0/0 is up, line protocol is up

Internet Address 192.168.20.2/30, Area 0

Process ID 2, Router ID 10.1.1.2, Network Type BROADCAST, Cost: 1

Transmit Delay is 1 sec, State BDR, Priority 1

Designated Router (ID) 192.168.20.1, Interface address 192.168.20.1

Backup Designated router (ID) 10.1.1.2, Interface address 192.168.20.2

Timer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit 5

oob-resync timeout 40

Hello due in 00:00:00

Index 2/2, flood queue length 0

Next 0x0(0)/0x0(0)

Last flood scan length is 1, maximum is 4

Last flood scan time is 0 msec, maximum is 4 msec

Neighbor Count is 1, Adjacent neighbor count is 1

Adjacent with neighbor 192.168.20.1  (Designated Router)

Suppress hello for 0 neighbor(s)

Task 4:

R2#debug ip ospf adj

OSPF adjacency events debugging is on

R2#clear ip ospf process

Reset ALL OSPF processes? [no]: yes

*Mar  1 02:13:21.660: OSPF: Elect BDR 0.0.0.0

*Mar  1 02:13:21.660: OSPF: Elect DR 0.0.0.0

*Mar  1 02:13:21.660:        DR: none    BDR: none

*Mar  1 02:13:21.660: OSPF: Remember old DR 192.168.20.1 (id)

*Mar  1 02:13:21.721: OSPF: Interface FastEthernet0/0 going Up

*Mar  1 02:13:21.721: OSPF: i_up : interface is down

*Mar  1 02:13:21.725: OSPF: 2 Way Communication to 192.168.20.1 on FastEthernet0/0, state 2WAY

*Mar  1 02:13:21.725: OSPF: Backup seen Event before WAIT timer on FastEthernet0/0

*Mar  1 02:13:21.725: OSPF: DR/BDR election on FastEthernet0/0

*Mar  1 02:13:21.725: OSPF: Elect BDR 10.1.1.2

*Mar  1 02:13:21.729: OSPF: Elect DR 192.168.20.1

*Mar  1 02:13:21.729: OSPF: Elect BDR 10.1.1.2

*Mar  1 02:13:21.729: OSPF: Elect DR 192.168.20.1

*Mar  1 02:13:21.729:        DR: 192.168.20.1 (Id)   BDR: 10.1.1.2 (Id)

*Mar  1 02:13:21.729: OSPF: Send DBD to 192.168.20.1 on FastEthernet0/0 seq 0x1614 opt 0x52 flag 0x7 len 32

*Mar  1 02:13:21.733: OSPF: Rcv DBD from 192.168.20.1 on Ethernet0/0 seq 0xEB3 opt 0x52 flag 0x7 len 32  mtu 1500 state EXSTART

*Mar  1 02:13:21.737: OSPF: NBR Negotiation Done. We are the SLAVE

*Mar  1 02:13:21.737: OSPF: Send DBD to 192.168.20.1 on FastEthernet0/0 seq 0xEB3 opt 0x52 flag 0x0 len 32

*Mar  1 02:13:21.741: OSPF: Rcv DBD from 192.168.20.1 on FastEthernet0/0 seq 0xEB4 opt 0x52 flag 0x3 len 172  mtu 1500 state EXCHANGE

*Mar  1 02:13:21.741: OSPF: Send DBD to 192.168.20.1 on FastEthernet0/0 seq 0xEB4 opt 0x52 flag 0x0 len 32

*Mar  1 02:13:21.749: OSPF: Rcv DBD from 192.168.20.1 on FastEthernet0/0 seq 0xEB5 opt 0x52 flag 0x1 len 32  mtu 1500 state EXCHANGE

*Mar  1 02:13:21.749: OSPF: Exchange Done with 192.168.20.1 on FastEthernet0/0

*Mar  1 02:13:21.749: OSPF: Send LS REQ to 192.168.20.1 length 84 LSA count 7

*Mar  1 02:13:21.749: OSPF: Send DBD to 192.168.20.1 on FastEthernet0/0 seq 0xEB5 opt 0x52 flag 0x0 len 32

*Mar  1 02:13:21.753: OSPF: Rcv LS UPD from 192.168.20.1 on FastEthernet0/0 length 332 LSA count 7

*Mar  1 02:13:21.757: OSPF: Synchronized with 192.168.20.1 on FastEthernet0/0, state FULL

*Mar  1 02:13:21.757: %OSPF-5-ADJCHG: Process 2, Nbr 192.168.20.1 on FastEthernet0/0 from LOADING to FULL, Loading Done

*Mar  1 02:13:26.544: OSPF: Rcv LS UPD from 192.168.20.1 on FastEthernet0/0 length 64 LSA count 1

*Mar  1 02:13:27.001: OSPF: Rcv LS UPD from 192.168.20.1 on FastEthernet0/0 length 64 LSA count 1R2#undebug all

All possible debugging has been turned off

R2#

NOTE: From the output above, we can clearly see OSPF transition from the 2WAY state to the EXSTART state, to the EXCHANGE state, and finally to the FULL state. Because this is a Broadcast network type, a DR and BDR router are also elected. If this were a point-to-point, or point-to-multipoint network type, we would not see the DR and BDR election taking place.

 

Prev

Next

About Us

This is a free bonus site for members of www.howtonetwork.com

Copyright

The content on this copyright Reality Press Ltd.
Copyright Reality Press Ltd.