[nsp] Not using "redist sta sub" in OSPF

Mark Drayton mark.drayton@izrsolutions.com
Fri, 9 Aug 2002 10:30:47 +0100


Hi

I've been reading Cisco's "IOS Essentials" paper
(http://www.cisco.com/public/cons/isp/essentials/IOS_Essentials_2-9.pdf)
which mentions you rarely need to redistribute anything into an IGP. It
recommends using "network x.x.x.x" over redist (static|connected).

I have a few static routes pointing at frame relay subifs that I'd like
to get into OSPF, without using "redist sta sub" as that redistributes
all the static routes I have.

interface Loopback0
 ip address 192.168.1.240 255.255.255.255
!
interface Serial2/0
 no ip address
 encapsulation frame-relay
 framing g751
 dsu bandwidth 34010
 frame-relay lmi-type ansi
!
interface Serial2/0.101 point-to-point
 ip unnumbered Loopback0
 frame-relay interface-dlci 101 IETF
!
router ospf 100
 router-id 192.168.1.240
 log-adjacency-changes
 redistribute static subnets
 passive-interface Serial2/0
 passive-interface Serial2/0.101
 passive-interface Loopback0
 network 192.168.1.0 0.0.0.255 area 0
 network 192.168.20.0 0.0.0.255 area 0 ! doesn't work
!
ip route 192.168.20.16 255.255.255.240 Serial2/0.101

I tried using "network 192.168.20.0 0.0.0.255 area 0" but that doesn't
work (not a surprise after consulting documentation). Is there a better
way to do this?

Cheers,

-- 

Mark Drayton
izR Solutions Ltd
Tel: +44 08707 447799