cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
402
Views
0
Helpful
3
Replies

OSPF routing query

vishalpatil86
Level 1
Level 1

Dear All,

I have configured OSPF in packet tracer.

Please find the diagram and below configuration -

for R1 -

interface Loopback0

ip address 1.1.1.1 255.0.0.0

!

interface FastEthernet0/0

no ip address

duplex auto

speed auto

shutdown

!

interface FastEthernet0/1

ip address 4.0.0.1 255.0.0.0

duplex auto

speed auto

!

interface Serial0/2/0

ip address 5.0.0.1 255.0.0.0

clock rate 2000000

!

interface Serial0/2/1

no ip address

clock rate 2000000

shutdown

!

interface Vlan1

no ip address

shutdown

!

router ospf 2

log-adjacency-changes

area 1 virtual-link 3.3.3.3

network 4.0.0.0 0.255.255.255 area 0

network 5.0.0.0 0.255.255.255 area 1

!

ip classless

interface Loopback0

ip address 2.2.2.2 255.0.0.0

!

interface FastEthernet0/0

no ip address

duplex auto

speed auto

shutdown

!

interface FastEthernet0/1

no ip address

duplex auto

speed auto

shutdown

!

interface Serial0/2/0

ip address 5.0.0.2 255.0.0.0

!

interface Serial0/2/1

ip address 6.0.0.2 255.0.0.0

clock rate 2000000

!

interface Vlan1

no ip address

shutdown

!

router ospf 2

log-adjacency-changes

network 6.0.0.0 0.255.255.255 area 1

network 5.0.0.0 0.255.255.255 area 1

interface Loopback0

ip address 3.3.3.3 255.0.0.0

!

interface FastEthernet0/0

no ip address

duplex auto

speed auto

shutdown

!

interface FastEthernet0/1

ip address 12.0.0.3 255.0.0.0

duplex auto

speed auto

!

interface Serial0/2/0

no ip address

clock rate 2000000

!

interface Serial0/2/1

ip address 6.0.0.3 255.0.0.0

!

interface Vlan1

no ip address

shutdown

!

router ospf 2

log-adjacency-changes

area 1 virtual-link 1.1.1.1

network 6.0.0.0 0.255.255.255 area 1

network 12.0.0.0 0.255.255.255 area 2

Router#sh ip route
Codes: C - connected, S - static, I - IGRP, 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

C    1.0.0.0/8 is directly connected, Loopback0
C    4.0.0.0/8 is directly connected, FastEthernet0/1
C    5.0.0.0/8 is directly connected, Serial0/2/0
O    6.0.0.0/8 [110/128] via 5.0.0.2, 00:00:14, Serial0/2/0

                 

interface Loopback0
ip address 1.1.1.1 255.0.0.0
!
interface FastEthernet0/0
no ip address
duplex auto
speed auto
shutdown
!
interface FastEthernet0/1
ip address 4.0.0.1 255.0.0.0
duplex auto
speed auto
!
interface Serial0/2/0
ip address 5.0.0.1 255.0.0.0
clock rate 2000000
!
interface Serial0/2/1
no ip address
clock rate 2000000
shutdown
!
interface Vlan1
no ip address
shutdown
!
router ospf 2
log-adjacency-changes
area 1 virtual-link 3.3.3.3
network 4.0.0.0 0.255.255.255 area 0
network 5.0.0.0 0.255.255.255 area 1
!
ip classless

for R2 -

interface Loopback0
ip address 2.2.2.2 255.0.0.0
!
interface FastEthernet0/0
no ip address
duplex auto
speed auto
shutdown
!
interface FastEthernet0/1
no ip address
duplex auto
speed auto
shutdown
!
interface Serial0/2/0
ip address 5.0.0.2 255.0.0.0
!
interface Serial0/2/1
ip address 6.0.0.2 255.0.0.0
clock rate 2000000
!
interface Vlan1
no ip address
shutdown
!
router ospf 2
log-adjacency-changes
network 6.0.0.0 0.255.255.255 area 1
network 5.0.0.0 0.255.255.255 area 1

for R3 -

interface Loopback0
ip address 3.3.3.3 255.0.0.0
!
interface FastEthernet0/0
no ip address
duplex auto
speed auto
shutdown
!
interface FastEthernet0/1
ip address 12.0.0.3 255.0.0.0
duplex auto
speed auto
!
interface Serial0/2/0
no ip address
clock rate 2000000
!
interface Serial0/2/1
ip address 6.0.0.3 255.0.0.0
!
interface Vlan1
no ip address
shutdown
!
router ospf 2
log-adjacency-changes
area 1 virtual-link 1.1.1.1
network 6.0.0.0 0.255.255.255 area 1
network 12.0.0.0 0.255.255.255 area 2

ospf routing -

for R1

Router#sh ip route
Codes: C - connected, S - static, I - IGRP, 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

C    1.0.0.0/8 is directly connected, Loopback0
C    4.0.0.0/8 is directly connected, FastEthernet0/1
C    5.0.0.0/8 is directly connected, Serial0/2/0
O    6.0.0.0/8 [110/128] via 5.0.0.2, 00:00:14, Serial0/2/0

O IA 12.0.0.0/8 [110/129] via 5.0.0.2, 00:08:24, Serial0/2/0

for R2

Router#sh ip ro
Router#sh ip route
Codes: C - connected, S - static, I - IGRP, 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

C    2.0.0.0/8 is directly connected, Loopback0
O IA 4.0.0.0/8 [110/65] via 5.0.0.1, 00:00:30, Serial0/2/0
C    5.0.0.0/8 is directly connected, Serial0/2/0
C    6.0.0.0/8 is directly connected, Serial0/2/1
O IA 12.0.0.0/8 [110/65] via 6.0.0.3, 00:00:30, Serial0/2/1

for R3

Router#sh ip route
Codes: C - connected, S - static, I - IGRP, 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

C    3.0.0.0/8 is directly connected, Loopback0
O    4.0.0.0/8 [110/129] via 6.0.0.2, 00:02:01, Serial0/2/1  -----> why it is showing as O instead of O IA?
O    5.0.0.0/8 [110/128] via 6.0.0.2, 00:02:26, Serial0/2/1
C    6.0.0.0/8 is directly connected, Serial0/2/1
C    12.0.0.0/8 is directly connected, FastEthernet0/1

3 Replies 3

cadet alain
VIP Alumni
VIP Alumni

Hi,

there's no diagram  but

router ospf 2

log-adjacency-changes

area 1 virtual-link 3.3.3.3

network 4.0.0.0 0.255.255.255 area 0 <<<<<<

network 5.0.0.0 0.255.255.255 area 1

Regards

Alain

Don't forget to rate helpful posts.

Don't forget to rate helpful posts.

To supplement the response from Alain, remember that R3 has established a virtual link to R1. So R3 is virtually connected to area 0 and area 0 routes will be considered intra-area routes (O) and not inter-area routes (O IA).

HTH

Rick

HTH

Rick

I agree with Richard.

And this can be seen in the below link which explain the similar behaviour:

http://www.cisco.com/en/US/tech/tk365/technologies_configuration_example09186a00801ec9ee.shtml

HTH

Regards

Inayath