Solved

Cisco OSPF distance command issues!

Posted on 2009-04-13
4
801 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 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

Portable, direct connect server access

The ATEN CV211 connects a laptop directly to any server allowing you instant access to perform data maintenance and local operations, for quick troubleshooting, updating, service and repair.

Question has a verified solution.

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

In the world of WAN, QoS is a pretty important topic for most, if not all, networks. Some WAN technologies have QoS mechanisms built in, but others, such as some L2 WAN's, don't have QoS control in the provider cloud.
How to set-up an On Demand, IPSec, Site to SIte, VPN from a Draytek Vigor Router to a Cyberoam UTM Appliance. A concise guide to the settings required on both devices
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
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.…

631 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