- Community Home
- >
- Networking
- >
- Switching and Routing
- >
- Comware Based
- >
- Static Route Preferred over OSPF learned route
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-10-2017 08:09 AM
03-10-2017 08:09 AM
Static Route Preferred over OSPF learned route
Hi All,
I want to force all traffic down a specific route. My network is 4 sites connected via WAN.
We use OSPF to advertise routes. In the routing table all my company networks are listed as O_ASE 150 18
I have a default route 0.0.0.0/0 STATIC 60 0
My understanding is that if there is no specific route (OSPF Learned) in the routing table it will look to this default route?
But can I add in a default route to push all traffic out this interface rather than what is learned from OSPF?
Can I temporarily disable OSPF? (If I use undo command I will lose my OSPF config)
I need to send all traffic to a new interface as a DR test. So basically want to prefer this new Vlan Interface to existing OSPF routes.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-10-2017 09:02 AM
03-10-2017 09:02 AM
Re: Static Route Preferred over OSPF learned route
If I just manaully add in static routes for the networks will this preference override the OSPF learned route?
Example: (IP changed)
OSPF learned route:
192.168.1.0/24 O_ASE 150 18 192.168.10.6
Static Route:
192.168.1.0/24 STATIC 60 0 192.168.20.6
This could take some time as there is quite a lot of networks. So is there another way of accomplishing this?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-10-2017 09:37 AM
03-10-2017 09:37 AM
Re: Static Route Preferred over OSPF learned route
couple of rules (ordered)
-longest matching route wins: so 192.168.0.0.24 beats 192.168.0.0/16 beats 0.0.0.0
-For equal routes, administrative distance (AD here called preference) is tie-breaker. Lower is better. Normally, type of route sets AD.
-If preference is also equal, cost is last tie breaker.
So you can duplicate all routes already present for static routes, and make sure new routes all have lower preference
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-10-2017 11:07 AM
03-10-2017 11:07 AM
Re: Static Route Preferred over OSPF learned route
Thanks for the reply