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

pix: route statement

quick question...

if i have 2 route statements:

route outside 0.0.0.0 0.0.0.0 192.168.1.1

and another one

route outside 172.10.10.10 255.255.255.255 192.168.2.1...

will the first route take precedence over the second one?

1 ACCEPTED SOLUTION

Accepted Solutions
Community Member

Re: pix: route statement

The route with longer prefix match will take precedence, i.e. packets destined to the host 172.10.10.10 will use the 192.168.2.1 gateway. Packets toward other destinations will use the default gateway of 192.168.1.1.

This is because the route statement pointing to the 172.10.10.10/32 is more specific than the other one, which actualy is not specific at all, it points to any destination, not known to the system.

Hope I was helpful.

Regards,

2 REPLIES
Community Member

Re: pix: route statement

The route with longer prefix match will take precedence, i.e. packets destined to the host 172.10.10.10 will use the 192.168.2.1 gateway. Packets toward other destinations will use the default gateway of 192.168.1.1.

This is because the route statement pointing to the 172.10.10.10/32 is more specific than the other one, which actualy is not specific at all, it points to any destination, not known to the system.

Hope I was helpful.

Regards,

Community Member

Re: pix: route statement

great thanks...that answered my question!

108
Views
0
Helpful
2
Replies
CreatePlease to create content