Dynamic NAT and PAT configuration: ip nat pool, access-list and overload
Sign in to read this lesson
Dynamic NAT is built in four steps - the interfaces are set as inside/outside, a pool is created with ip nat pool NAT-HAVUZ 203.0.113.100 203.0.113.110 prefix-length 24, access-list 1 selects the inside network to translate, and ip nat inside source list 1 pool NAT-HAVUZ joins them. In the lab PC1 is translated to 203.0.113.100 and PC2 to 203.0.113.101. For PAT you enter ip nat inside source list 1 interface gigabitEthernet 0/1 overload: both hosts go out as 203.0.113.1 and are told apart in the NAT table by different port numbers.
What you will learn
ip nat pool NAT-HAVUZ 203.0.113.100 203.0.113.110 prefix-length 24: the pool of public addresses for translation (it can also be written withnetmask).access-list 1 permit 10.50.0.0 0.0.0.255: selects which inside hosts are translated.ip nat inside source list 1 pool NAT-HAVUZ: joins the ACL and the pool.- With dynamic NAT each host gets its own address from the pool (1:1). When the pool runs out, new hosts are not translated. Simple entries time out after 24 hours by default; to remove them at once use
clear ip nat translation *. - PAT:
ip nat inside source list 1 interface gigabitEthernet 0/1 overload. The keyword overload enables PAT; all hosts go out with the outside interface's address. - In the PAT table each connection appears as an IP:port pair: the same inside global IP, different port numbers.
The lesson has 5 key points, an explanation and 5 questions. It opens with a package.