cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
212
Views
0
Helpful
1
Replies

OSPF redistribution with distance

bapatsubodh
Level 1
Level 1

Hi,

I am facing problem with redistribution in ospf from RIP.

Router under consideration (R1) is running RIP and OSPF. OSPF on serial 1 and RIP on serial 2. When OSPF neighbor is configured for RIP to ospf redistribution, naturally all routes are learned by OSPF with admin distance 110 (ospf external ).

Now while redistributing RIP into OSPF I made the distance of these routes as 140 ( more that RIP distance as 120).

On router R2 ( which has neighbor relatioship with R1)

router ospf 100

router 10.1.1.0 0.0.0.255 area 0 (fa0/0)

router 172.16.1.0 0.0.02 area 0 ( serial)

redistribute rip subnets

distance 140 0.0.0.0 255.255.255.255 60

access-list 60 permit 3.3.3.0 0.0.0.255

With this I was expecting that the distance learned subnet 3.3.3.0 /24 will be set to 140 and accordingly will be redistributed. but it didnt happen it still learn the path form OSPF. Finally I used route maps and filtered out (3.3.3.0 /24 ).

Please share the experience.

Thanks in advance.

Subodh

1 Reply 1

Laurent Aubert
Cisco Employee
Cisco Employee

Hi Suboth,

Distance 140 will apply only to OSPF received routes.

If I understood correctly, both R1 and R2 are connected to RIP and OSPF domain but only R2 is redistributing RIP into OSPF.

If this is the case, you should apply the distance command not on R2 but on R1 with the ACL matching the RIP subnets.

HTH

Laurent.

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Review Cisco Networking products for a $25 gift card