Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Community Member

Routing prefrence. Static or VPN?

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

Re: Routing prefrence. Static or VPN?

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

89
Views
0
Helpful
1
Replies
CreatePlease to create content