cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
233
Views
0
Helpful
1
Replies

Routing prefrence. Static or VPN?

nathan.carroll
Level 1
Level 1

I'm sure this will be a simple question to answer, but which takes preference, a static route or a VPN ?. I have had issues as of late trying to route 10.0.0.0/8 back through my network without killing the 4 connected vpns on a 10.199.0.0 networks. If i do a work around and don't overlap the VPN it works fine.

Does anyone know any other way i can have a 10.0.0.0/8 route without killing my vpns by overlapping ?

1 Reply 1

milan.kulik
Level 10
Level 10

Hi,

the answer is:

"Longest match wins."

I.e., it should be no problem on a Cisco router to route 10.199.0.0/16 to one next-hop A and 10.0.0.0/8 to another next-hop B.

As longest match wins, everything should work fine, the whole 10.0.0.0/8 would be routerd to B with the exception of 10.199.0.0/16 routed to A.

I've met some non-Cisco devices which did not accept this rule, but never had a problem with this on Cisco.

BR,

Milan

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Review Cisco Networking products for a $25 gift card