Solved

OSPF Creates routing loop between sites

Posted on 2014-11-07
2
227 Views
Last Modified: 2014-11-10
We have just upgraded our core network with some nice new Cisco hardware. The configs from the old have been moved across successfully and have caused no problems thus far.

Our issue appears when we create a static route on Core 1 which points towards Core 2's internet gateway.
Example of static route:

ip route 192.168.100.0 255.255.255.0 172.16.0.254

Instead of Core 2 learning that route it picks up a route pointing back to Core 1 creating a nice routing loop. I was aiming for Core 2 to fire that IP out of its default route (which is 172.16.0.254) where 192.168.100.X resides.

This is the output from sh ip route 192.168.100.1 on Core 2:

Routing entry for 192.168.100.0/24
  Known via "ospf 1", distance 110, metric 20, type extern 2, forward metric 1
  Last update from 192.168.255.253 on Vlan18, 00:00:11 ago
  Routing Descriptor Blocks:
  * 192.168.255.253, from 192.168.255.253, 00:00:11 ago, via Vlan18
      Route metric is 20, traffic share count is 1


The following is the OSPF config of both Core 2, Core 1 had a router-id of 192.168.255.253:

router ospf 1
 router-id 192.168.255.254
 log-adjacency-changes
 redistribute static subnets
 network 10.30.0.0 0.0.1.255 area 0
 network 10.30.30.0 0.0.1.255 area 0
 network 10.32.0.0 0.0.1.255 area 0
 network 10.32.30.0 0.0.1.255 area 0
 network 10.0.0.0 0.255.255.255 area 0
 network 172.16.0.0 0.0.255.255 area 0
 network 192.168.30.0 0.0.0.255 area 0
 network 192.168.31.0 0.0.0.255 area 0
 network 192.168.32.0 0.0.0.255 area 0
 network 192.168.34.0 0.0.1.255 area 0
 network 192.168.36.0 0.0.1.255 area 0
 network 192.168.201.0 0.0.0.255 area 0
 network 192.168.255.0 0.0.0.3 area 0
 network 192.168.255.0 0.0.0.255 area 0
 default-information originate


Any ideas would be greatly appreciated.
0
Comment
Question by:jrb139
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 46

Accepted Solution

by:
Craig Beck earned 500 total points
ID: 40429070
You'll need to add a static to Core2 also.

Core2 has learned that route via Core1 and it doesn't have a more specific route in its own routing table to that subnet, so it will send traffic back to Core1 as that's where it thinks it needs to go to.  The problem is that routing updates don't include the actual gateway address - they include the subnet only and the sending router's interface IP is used as the gateway, so you redistributing static routes isn't doing what you think it's doing.

When a route is received it is basically an announcement from the sending router that it can reach the specified destination.  The interface IP of the sending router is therefore the gateway address for that route.  If a similar route is received from a different router its IP address is also a candidate to route traffic for that subnet and that's how we end up with more than one route sometimes.
0
 

Author Closing Comment

by:jrb139
ID: 40432170
Thanks, that explains it then! A really well explained and easy to understand answer.
Cheers!
0

Featured Post

Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This tutorial will go through the steps required to write a script that will back up the configuration settings of a HP-ProCurve switch. You will need to get the following things to follow this tutorial: Telnet Scripting Tool e.g. TST10.exe …
David Varnum recently wrote up his impressions of PRTG, based on a presentation by my colleague Christian at Tech Field Day at VMworld in Barcelona. Thanks David, for your detailed and honest evaluation!
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…

729 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question