I haven't found this explained in any of the study guides. Consider this scenario.
ip address inside 10.1.0.1 255.255.0.0
ip address dmz 10.2.0.1 255.255.0.0
ip address outside 172.16.1.1 255.255.255.0
! all internal traffic uses PAT to get outside
nat (inside) 1 0 0
global (outside) 1 interface
! internal net 10.1.x.x uses no nat to dmz net 10.2.x.x
access-list dmznat permit ip 10.1.0.0 255.255.255.0 10.2.0.0 255.255.255.0
nat (inside) 0 access-list dmznat
! internal hosts in 10.1.1.x subnet PAT to public addr 172.16.1.3
nat (inside) 2 10.1.1.0 255.255.255.0
global (outside) 2 172.16.1.3 255.255.255.255
My question is: What determines the order in which NAT is applied? Is it applied in numerical order (0,1,2), or does the Pix apply the most specific nat while using nat 0 to override all others (0,2,1)?
Thanks.
ip address inside 10.1.0.1 255.255.0.0
ip address dmz 10.2.0.1 255.255.0.0
ip address outside 172.16.1.1 255.255.255.0
! all internal traffic uses PAT to get outside
nat (inside) 1 0 0
global (outside) 1 interface
! internal net 10.1.x.x uses no nat to dmz net 10.2.x.x
access-list dmznat permit ip 10.1.0.0 255.255.255.0 10.2.0.0 255.255.255.0
nat (inside) 0 access-list dmznat
! internal hosts in 10.1.1.x subnet PAT to public addr 172.16.1.3
nat (inside) 2 10.1.1.0 255.255.255.0
global (outside) 2 172.16.1.3 255.255.255.255
My question is: What determines the order in which NAT is applied? Is it applied in numerical order (0,1,2), or does the Pix apply the most specific nat while using nat 0 to override all others (0,2,1)?
Thanks.