cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
411
Views
20
Helpful
4
Replies

Static Route Q

danny9797
Level 1
Level 1

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 4

Harold Ritter
Cisco Employee
Cisco Employee

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

Edison Ortiz
Hall of Fame
Hall of Fame

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

chris.lepa
Level 1
Level 1

longest prefix match! Most specific routes are used.

*beats dead horse*

thank you very much guys.

Review Cisco Networking products for a $25 gift card