Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. If you'd prefer to explore, try our test area to get started. And see here for current known issues.

New Member

OSPF routing issue

Hi networkers,

This is a scenario I'm sure some of you guys have encountered.

I have two routers. Each one has a link to the telco provider. One is 10M (line1) and the other is 2M (line2). R1 is connected to line1, and R2 is connected to line2. They are backbone area routers.

The issue is the following: most of the LANs of our branches are learned through R2. But some routes are learned through R1.

I first thought it's a matter of OSPF costs. Both my routers are connected to the telco, so I thought that R2, when it computes routes to branches, finds that it's preferable to reach them through ISP PE2 (connected on line2) than through R1 (which has a better WAN bandwidth).

Telco told me to configure "filters" as they said :-), I thought of distribute lists and route-maps.

  • WAN Routing and Switching
6 REPLIES
New Member

Re: OSPF routing issue

Hi wass.aouadi,

You can start checking the OSPF DB via "sh ip ospf database" on both R1 and R2. Especially R1, check whether it receives both from R2 and from ISP and compare it.

rgds, dsu

New Member

Re: OSPF routing issue

Here are the "show ip ospf database" files

New Member

Re: OSPF routing issue

What about

sh ip ospf database summary 10.101.0.0

sh ip ospf database summary 10.101.0.32

sh ip ospf database external 10.101.0.0

sh ip ospf database external 10.101.0.32

on both R1 and R2

New Member

Re: OSPF routing issue

David,

here they are.

New Member

Re: OSPF routing issue

Issue: R1 will prefer 10.101.0.32 from 192.168.100.9 over 192.168.100.1 due to its intra-area path.

To Do:

1. You can make 192.168.100.9 not to advertise 10.101.0.32, or

2. you can filter LSA3 on R1 and R2 from appearing.

New Member

Re: OSPF routing issue

I did some shut/no shut on R1 and R2 interfaces. Here's what I noticed:

  • when both line1 and line2 are up, R1 builds and prefers inter-area routes
  • when line1 is down, the only way R1 builds routes is by learning LSAs from R2
  • when line1 is up and line2 is down, R1 builds routes based on External type 2 LSAs, and R2 builds its routes after learning LSAs from R1.

So I noticed that OSPF process prefers inter-area LSAs over External LSA.

the questions here are:

  1. how can I make OSPF prefer External LSAs for those routes? is it on the Service Provider side because they are doing redistribution of OSPF into/out of BGP?
  2. and if I do that, will it impact OSPF routes learned by R2 when line1 gets down?
263
Views
9
Helpful
6
Replies
This widget could not be displayed.