J
J
jidckii2016-08-05 08:14:23
Computer networks
jidckii, 2016-08-05 08:14:23

When a link goes down, do all OSPF routes disappear?

Hello.
I am learning OSPF. In Cisco packet tracert, I built the following scheme: I
1470373901024.png
brought ospf to area 0 for all nodes.
But as soon as I break the connection between two routers, all ospf routes disappear on both.
Is this a package tracer bug, or have I configured something wrong?
Here's what happens when I break the connection between router0 and router1, log from router1 :

00:46:23: %OSPF-5-ADJCHG: Process 1, Nbr 172.16.0.1 on GigabitEthernet0/1 from FULL to DOWN, Neighbor Down: Interface down or detached

Router#
Router#
Router#sh ip rou
Router#sh ip route 
Codes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGP
       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
       E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
       i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
       * - candidate default, U - per-user static route, o - ODR
       P - periodic downloaded static route

Gateway of last resort is not set

     10.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C       10.10.2.0/30 is directly connected, GigabitEthernet0/2
L       10.10.2.1/32 is directly connected, GigabitEthernet0/2
     172.16.0.0/32 is subnetted, 1 subnets
C       172.16.0.2/32 is directly connected, Loopback0
     192.168.1.0/24 is variably subnetted, 2 subnets, 2 masks
C       192.168.1.0/24 is directly connected, GigabitEthernet0/0
L       192.168.1.1/32 is directly connected, GigabitEthernet0/0

Router#
%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/1, changed state to up

Router#sh ip route 
Codes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGP
       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
       E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
       i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
       * - candidate default, U - per-user static route, o - ODR
       P - periodic downloaded static route

Gateway of last resort is not set

     10.0.0.0/8 is variably subnetted, 6 subnets, 2 masks
O       10.10.0.0/30 [110/3] via 10.10.2.2, 00:00:05, GigabitEthernet0/2
C       10.10.1.0/30 is directly connected, GigabitEthernet0/1
L       10.10.1.2/32 is directly connected, GigabitEthernet0/1
C       10.10.2.0/30 is directly connected, GigabitEthernet0/2
L       10.10.2.1/32 is directly connected, GigabitEthernet0/2
O       10.10.3.0/30 [110/2] via 10.10.2.2, 00:00:05, GigabitEthernet0/2
     172.16.0.0/32 is subnetted, 1 subnets
C       172.16.0.2/32 is directly connected, Loopback0
O    192.168.0.0/24 [110/4] via 10.10.2.2, 00:00:05, GigabitEthernet0/2
     192.168.1.0/24 is variably subnetted, 2 subnets, 2 masks
C       192.168.1.0/24 is directly connected, GigabitEthernet0/0
L       192.168.1.1/32 is directly connected, GigabitEthernet0/0
O    192.168.2.0/24 [110/2] via 10.10.2.2, 00:00:05, GigabitEthernet0/2
O    192.168.3.0/24 [110/3] via 10.10.2.2, 00:00:05, GigabitEthernet0/2

Router#
00:48:10: %OSPF-5-ADJCHG: Process 1, Nbr 172.16.0.1 on GigabitEthernet0/1 from LOADING to FULL, Loading Done

Ranking config router 0:
Router#sh run 
Building configuration...

Current configuration : 933 bytes
!
version 15.1
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname Router
!
!
!
!
!
!
!
!
ip cef
no ipv6 cef
!
!
!
!
license udi pid CISCO2911/K9 sn FTX1524KBUV
!
!
!
!
!
!
!
!
!
!
!
spanning-tree mode pvst
!
!
!
!
!
!
interface Loopback0
 ip address 172.16.0.1 255.255.255.255
!
interface GigabitEthernet0/0
 ip address 192.168.0.1 255.255.255.0
 duplex auto
 speed auto
!
interface GigabitEthernet0/1
 ip address 10.10.0.1 255.255.255.252
 duplex auto
 speed auto
!
interface GigabitEthernet0/2
 ip address 10.10.1.1 255.255.255.252
 duplex auto
 speed auto
!
interface Vlan1
 no ip address
 shutdown
!
router ospf 1
 log-adjacency-changes
 network 192.168.0.0 0.0.0.255 area 0
 network 10.10.0.0 0.0.0.3 area 0
 network 10.10.1.0 0.0.0.3 area 0
!
ip classless
!
ip flow-export version 9
!
!
!
!
!
!
!
line con 0
!
line aux 0
!
line vty 0 4
 login
!
!
!
end

and here is router 1 :
Router#sh run
Building configuration...

Current configuration : 933 bytes
!
version 15.1
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname Router
!
!
!
!
!
!
!
!
ip cef
no ipv6 cef
!
!
!
!
license udi pid CISCO2911/K9 sn FTX152496YD
!
!
!
!
!
!
!
!
!
!
!
spanning-tree mode pvst
!
!
!
!
!
!
interface Loopback0
 ip address 172.16.0.2 255.255.255.255
!
interface GigabitEthernet0/0
 ip address 192.168.1.1 255.255.255.0
 duplex auto
 speed auto
!
interface GigabitEthernet0/1
 ip address 10.10.1.2 255.255.255.252
 duplex auto
 speed auto
!
interface GigabitEthernet0/2
 ip address 10.10.2.1 255.255.255.252
 duplex auto
 speed auto
!
interface Vlan1
 no ip address
 shutdown
!
router ospf 1
 log-adjacency-changes
 network 192.168.1.0 0.0.0.255 area 0
 network 10.10.1.0 0.0.0.3 area 0
 network 10.10.2.0 0.0.0.3 area 0
!
ip classless
!
ip flow-export version 9
!
!
!
!
!
!
!
line con 0
!
line aux 0
!
line vty 0 4
 login
!
!
!
end

I don’t see the point in posting the rest, since it’s the same, only the announcements are slightly different.
Now, if anything itself is a lab for cisco packet tracer 7.0
https://yadi.sk/d/ZosiUh66tw8FM

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexander, 2016-08-05
@ferrum90

For simplicity, break the link between R0 and R1. Next, see if there is an announcement of the network 192.168.0.0/24 first on R3, then on R2, then on R1. Based on the received data, find the "problem" router and check why it does not announce / does not accept the route

J
jidckii, 2016-08-05
@jidckii

RazorBlade :
Router(config-if)#shutdown
Router(config-if)#
%LINK-5-CHANGED: Interface GigabitEthernet0/1, changed state to administratively down
%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/1, changed state to down
00:01:40: %OSPF-5-ADJCHG: Process 1, Nbr 172.16.0.1 on GigabitEthernet0/1 from FULL to DOWN, Neighbor Down: Interface down or detached
Router#
%SYS-5-CONFIG_I: Configured from console by console
Router#
Router#sh ip os
Router#sh ip ospf n
Router#sh ip ospf neighbor
Neighbor ID Pri State Dead Time Address Interface
172.16.0.3 1 FULL/DR 00:00:37 10.10.2.2 GigabitEthernet0/2
Router#sh ip ospf data
Router#sh ip ospf database
OSPF Router with ID (172.16.0.2) (Process ID 1)
Router Link States (Area 0)
Link ID ADV Router Age Seq# Checksum Link count
172.16.0.4 172.16.0.4 83 0x80000006 0x00ab37 3
172.16.0.3 172.16.0.3 78 0x80000006 0x00dc06 3
172.16.0.1 172.16.0.1 23 0x80000007 0x0069C4 2
Net Link States (Area 0)
Link ID Adv Router Age SEQ # Checksum
10.10.0.2 172.16.0.4 83 0x80000001 0x00360B
10.10.3.2 172.16.0.4 83 0x80000002 0x001f1c
10.10.2.2 172.16.0.3 78 0x80000001 0x00221e

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question