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

Static Route Q

Hello all,

I have a quick scenario here.

The following routes are in a routing table:

ip route 10.20.2.2 255.255.255.255 S1

ip route 10.0.0.0 255.0.0.0 S0

Where would traffic traverse, from 10.20.2.2, would it go through S0 or S1?

Thanks

4 REPLIES
Cisco Employee

Re: Static Route Q

The longest match is always taken. In this case the longest match for traffic destined to 10.20.2.2 is the route via S1, therefore traffic would be forwarded via S1.

Hope this helps,

Harold Ritter
Sr. Technical Leader
CCIE 4168 (R&S, SP)
harold@cisco.com
México móvil: +52 1 55 8312 4915
Cisco México
Paseo de la Reforma 222
Piso 19
Cuauhtémoc, Juárez
Ciudad de México, 06600
México
Hall of Fame Super Bronze

Re: Static Route Q

It will exit the S1 interface since it has the longest match.

Community Member

Re: Static Route Q

longest prefix match! Most specific routes are used.

*beats dead horse*

Community Member

Re: Static Route Q

thank you very much guys.

126
Views
20
Helpful
4
Replies
CreatePlease to create content