Cisco NAT setup

NAT setup

conf t
enter into configuration mode on the router
int fa0/0
ip nat outside
mark the interface for outside NAT
int fa0/1
ip nat inside
mark the interface for inside NAT
 exit
ip nat pool NewNat 192.168.1.2 192.168.1.254 netmask 255.255.255.0
 setup a NewNat named pool, including setup the start and end addresses.
access-list 1 permit 192.168.1.0 0.0.0.255
create an access list with ID 1 which allows internal network connections
ip nat inside source list 1 pool NewNat
apply the new policy
ip nat inside source list 1 pool NewNat overload
enable port address translation – it is useful if we use lots of ports in the internal network at large organization network
do sh ip nat statistics
list NAT information
ip nat inside source static tcp 192.168.1.2 8080 84.21.10.10 80
setup the 8080 tcp port forward to inside
do sh ip nat translations
list the NAT table translations
exit

Share with: