cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
298
Views
0
Helpful
2
Replies

pix: route statement

mrSS
Level 1
Level 1

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

vmilanov
Level 1
Level 1

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,

View solution in original post

2 Replies 2

vmilanov
Level 1
Level 1

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,

great thanks...that answered my question!