Solved

Cisco OSPF distance command issues!

Posted on 2009-04-13
4
767 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
  • 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 500 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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

As dyndns has reduced the capabilities of the free service, I looked around for other free providers of Dynamic DNS service. After testing several I decided to move my DNS hosting to Hurricane Electric as then domains that require dynamic hostnam…
Problem Description:   Couple of months ago we upgraded the ADSL line at our branch office from Home to Business line. The purpose of transforming the service to have static public IP’s. We were in need for public IP’s to publish our web resour…
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…
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…

707 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now