Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Cisco OSPF distance command issues!

Posted on 2009-04-13
4
Medium Priority
?
810 Views
Last Modified: 2012-05-06
I am running a single DMVPN with dual hubs.... everythign works except the fact that I am trying to get the spoke routers to prefer one hub over the using the "distance 111 192.168.0.1 0.0.0.0 53"   from what I understand this command is supposed to change the adminstrative distance for routes in the access-list 53 where the "via" is 192.168.0.1 to 111... but this is not working for me the AD is not being changed can anybody please give me a description of how this command works...?

Google searches turn a lot of contradictions...
0
Comment
Question by:justinl525
[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
  • 2
4 Comments
 
LVL 6

Expert Comment

by:cosmicfox
ID: 24133462
Why are you trying to change the AD, you could just change the OSPF cost on the link. with "ip ospf 1 cost" command.
0
 
LVL 1

Author Comment

by:justinl525
ID: 24140806
That will cause both of the route's metrics to  change and I only want 1 of the routes metrics to change... both of the next hop routers to the subnet in question are reachable via the same interface (in this case a Tunnel interface). So, I change the tun0 interface's ospf cost it will apply to both route's and I will be right back to where I was.  2 routes and the router load balancing them...
I went ahead and opened a ticket with Cisco also and so far they are able to recreate the problem but dont know for sure why it is happening....
0
 
LVL 6

Accepted Solution

by:
cosmicfox earned 2000 total points
ID: 24141418
The ospf cost could be done on your hub router. That would affect all of the spoke routers that use that hub.
0
 
LVL 1

Author Closing Comment

by:justinl525
ID: 31570221
Dude!!! you are right.... sorry man! my brain got freakin stuck because the powers that be, I think, (sobbing and in the fetal position) are trying to see if they can kill a man with more projects than he can handle :-(
I got stuck on thinking only relative to the spoke....

I later decided that it could be done for the interfaces on the hub that were connected to the prefixes that I wanted to modify and it worked like a charm.

I used the   ip ospf cost 10 command on the interface that are on the secondary hub connected to the subnets in question so  that the ospf metric would be higher for the router and therefore the spokes would not prefer it as the next hop.

Just so anyone reading knows... The distance [AD] [neighbor] [mask] [acl]
is a valid command for this scenario however Cisco has confirmed that there is a bug in this command for this particular scenario:

CSCsk29338
Conditions:
When two equal cost routes to the same prefix are learned from different neighbors, the distance command may not take work for certain neighbors.

Workaround:
Symptom:
OSPF distance command does not take effect for certain neighbors.
Seen on

Conditions:
When two equal cost routes to the same prefix are learned from different neighbors, the distance command may not take work for certain neighbors.

Work around is to use ip ospf cost.
0

Featured Post

Survive A High-Traffic Event with Percona

Your application or website rely on your database to deliver information about products and services to your customers. You can’t afford to have your database lose performance, lose availability or become unresponsive – even for just a few minutes.

Question has a verified solution.

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

Data center, now-a-days, is referred as the home of all the advanced technologies. In-fact, most of the businesses are now establishing their entire organizational structure around the IT capabilities.
In this article, we’ll look at how to deploy ProxySQL.
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…

715 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