pix: route statement

Answered Question
Jul 25th, 2007
User Badges:

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?



Correct Answer by vmilanov about 9 years 11 months ago

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,

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 5 (1 ratings)
Loading.
Correct Answer
vmilanov Wed, 07/25/2007 - 11:34
User Badges:

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,

Actions

This Discussion