Method | Configuration Process | Command Examples |
Static NAT | Configure static mappings (mapping inside local addresses to outside local addresses) | Router(config)#ip nat inside source static 192.168.1.1 203.44.55.1 |
Identify inside and outside interfaces | Router(config)#interface ethernet0 Router(config-if)#ip nat inside Router(config-if)#interface serial0 Router(config-if)#ip nat outside |
|
Dynamic NAT | Define an inside global address pool | Router(config)#ip nat pool mary 203.44.55.1 203.44.55.254 netmask 255.255.255.250 |
Identify allowed translated inside local addresses | Router(config)#access-list 1 permit 192.168.1.1 0.0.0.255 | |
Associate the allowed list with the pool | Router(config)#ip nat inside source list 1 pool mary | |
Identify inside and outside interfaces | Router(config)#interface ethernet0 Router(config-if)#ip nat inside Router(config-if)#interface serial0 Router(config-if)#ip nat outside |
|
Overloaded with PAT | Identify allowed translated inside local addresses | Router(config)#access-list 1 permit 192.168.1.1 0.0.0.255 |
Associate the allowed list with the inside interface and identify the translation type as overloaded | Router(config)#ip nat inside source list 1 interface serial0 overload | |
Identify inside and outside interfaces | Router(config)#interface ethernet0 Router(config-if)#ip nat inside Router(config-if)#interface serial0 Router(config-if)#ip nat outside |
interface FastEthernet0/0 ip address 85.238.XX.XX 255.255.255.252 ip nat outside interface FastEthernet0/1 ip address 192.168.5.1 255.255.255.0 ip nat inside access-list 1 permit 192.168.5.0 0.0.0.255 ip nat inside source list 1 interface FastEthernet0/0 overload ----------------sh ip nat translation - to vew table
192.168.1.2 85.238.xx.xx INSIDE local global ========================================== ========================================== ========================================== Source Destination OUTSIDE local global