IP Range with OSPF

From: VAUTRIN Olivier (olivier.vautrin@xxxxxxxx)
Date: Fri Nov 02 2001 - 20:00:58 GMT-3


   
Hello Everybody,

I have a problem with the command "area # range..." with OSPF:

I have this configuration:

A----B----C

A is in Area 2
C is in Area 0

A is connected to the Eth0 on my conf
C is connected to my serial0

I am using the command "area 0 range 170.10.7.0 255.255.255.0"

But when I look at the Routing table of A, I get:

routerA#r
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, * - candidate
default
       U - per-user static route, o - ODR

Gateway of last resort is not set

     170.10.0.0/16 is variably subnetted, 10 subnets, 4 masks
C 170.10.128.0/26 is directly connected, Ethernet0
I 170.10.1.0/24 [100/8576] via 170.10.2.1, 00:00:11, Serial1
C 170.10.2.0/24 is directly connected, Serial1
C 170.10.3.0/24 is directly connected, Serial0
R 170.10.4.0/24 [120/1] via 170.10.3.3, 00:00:11, Serial0
C 170.10.5.0/24 is directly connected, Loopback0
O 170.10.7.0/28 [110/74] via 170.10.128.5, 00:37:09, Ethernet0
<----------????? (I would like to see /24!)
O 170.10.8.0/24 [110/1636] via 170.10.128.5, 00:37:09, Ethernet0
R 170.10.8.2/32 [120/1] via 170.10.3.3, 00:00:11, Serial0
O 170.10.9.5/32 [110/11] via 170.10.128.5, 00:39:06, Ethernet0
C 192.19.15.0/24 is directly connected, Ethernet0
RouterA#

Any ideas?

Cheers,
Olivier Vautrin.

I am using version:
RouterB#sh ver
Cisco Internetwork Operating System Software
IOS (tm) 2500 Software (C2500-JS-L), Version 11.2(26a), RELEASE SOFTWARE
(fc1)
Copyright (c) 1986-2001 by cisco Systems, Inc.
Compiled Thu 07-Jun-01 08:27 by leccese
Image text-base: 0x03040454, data-base: 0x00001000

Here is the configuration of my router B:

RouterB#sh run
RouterB#sh running-config
Building configuration...

Current configuration:
!
version 11.2
no service password-encryption
no service udp-small-servers
no service tcp-small-servers
!
hostname RouterB
!
enable secret 5 $1$Aftb$i8EXJYT93xVhw5/bQSiXY1
!
ip subnet-zero
no ip domain-lookup
!
interface Loopback0
 ip address 170.10.9.5 255.255.255.0
!
interface Ethernet0
 ip address 170.10.128.5 255.255.255.192
!
interface Serial0
 ip address 170.10.7.5 255.255.255.240
 encapsulation frame-relay
 no fair-queue
!
interface Serial1
 no ip address
 shutdown
!
router ospf 1
 network 170.10.7.5 0.0.0.0 area 0
 network 170.10.128.5 0.0.0.0 area 2
 network 170.10.9.5 0.0.0.0 area 2
 neighbor 170.10.7.3
 neighbor 170.10.7.2
 area 0 range 170.10.7.0 255.255.255.0
 area 2 virtual-link 170.10.5.4
!
ip classless
!
alias exec c conf t
alias exec r show ip route
alias exec s show run
alias exec b sho ip int brief
!
line con 0
 exec-timeout 0 0
 password c
 logging synchronous
line aux 0
 exec-timeout 0 0
 password c
 logging synchronous
line vty 0 4
 exec-timeout 0 0
 password c
 logging synchronous
 login
!
end



This archive was generated by hypermail 2.1.4 : Fri Jun 21 2002 - 06:45:02 GMT-3