Cisco Systems route preference - ospf or static.

Bookmark this page:  YahooMyWeb Yahoo!  Google Google  Windows Live Favorites Windows Live  del.icio.us del.icio.us  digg digg  Add to Netscape Netscape
Subject Author Date
route preference - ospf or static. news8080@yahoo.com 10-12-06
Posted by news8080@yahoo.com on October 12, 2006, 4:07 pm
Please log in for more thread options
As I understand it, connected routes have 1 weight and OSPF routes have
110 weight. Now what happens in a case where I have a /24 ospf route
(e2) being learned on a device and I put a static route that is /23
(which should cover that /24 route that I learn via ospf) what takes
over then?

I have this setup but can't really screw with production environment to
try this or I'd do that before posting.

anyone?


Posted by John Agosta on October 12, 2006, 7:02 pm
Please log in for more thread options

> As I understand it, connected routes have 1 weight and OSPF routes have
> 110 weight. Now what happens in a case where I have a /24 ospf route
> (e2) being learned on a device and I put a static route that is /23
> (which should cover that /24 route that I learn via ospf) what takes
> over then?
>
> I have this setup but can't really screw with production environment to
> try this or I'd do that before posting.
>
> anyone?
>


Longest mask length ALWAYS wins.




Posted by news8080@yahoo.com on October 12, 2006, 7:05 pm
Please log in for more thread options

Thanks, is there any cisco documentation link you can send me on that?

John Agosta wrote:
> > As I understand it, connected routes have 1 weight and OSPF routes have
> > 110 weight. Now what happens in a case where I have a /24 ospf route
> > (e2) being learned on a device and I put a static route that is /23
> > (which should cover that /24 route that I learn via ospf) what takes
> > over then?
> >
> > I have this setup but can't really screw with production environment to
> > try this or I'd do that before posting.
> >
> > anyone?
> >
>
>
> Longest mask length ALWAYS wins.


Posted by on October 12, 2006, 8:21 pm
Please log in for more thread options

news8080@yahoo.com wrote:
> Thanks, is there any cisco documentation link you can send me on that?

Who needs Cisco documentation? That rule is one of the fundamental
rules of IP routing. Look it up in any book on routing.


Posted by Scooby on October 12, 2006, 9:56 pm
Please log in for more thread options
>
> news8080@yahoo.com wrote:
>> Thanks, is there any cisco documentation link you can send me on that?
>
> Who needs Cisco documentation? That rule is one of the fundamental
> rules of IP routing. Look it up in any book on routing.
>

Absolutely correct. But, just in case the OP is still looking...

http://www.cisco.com/en/US/tech/tk365/technologies_tech_note09186a0080094823.shtml

BTW - that took all of about 2 minutes to search Cisco's site and read the
key points of the article.



Similar ThreadsPosted
route preference - ospf or static. October 12, 2006, 4:07 pm
What is the default precedence: local-route, static-route, OSPF-route? August 4, 2008, 3:00 am
Static Route Redistribution over OSPF. March 14, 2006, 3:52 pm
BGP static route from ISP and redistribute into OSPF March 18, 2008, 10:40 pm
Redistributing a single static route in OSPF September 6, 2006, 2:37 pm
Virtual Tunnel Interface Flapping - Route Redistribution: static->RIP->OSPF July 12, 2007, 2:44 pm
Dynamic / Static NAT order of preference January 30, 2006, 4:51 pm
Need to route SMTP traffic through static interface (not default route) March 27, 2007, 5:19 pm
Can netwrok run static route and dynamic route the same time? December 1, 2005, 1:18 pm
OSPF E1/E2 route calculation August 18, 2006, 4:31 pm
route Maps with OSPF for set ip next-hop July 16, 2007, 9:30 am
OSPF before Connected route June 3, 2008, 4:16 pm
ospf and multiple static routes August 4, 2006, 1:39 pm
modifying route metric with ospf September 28, 2005, 1:22 pm
Announcing to BGP an OSPF route from area 0 August 15, 2008, 5:24 pm