NAT configuration instance for cisco router with port ing
If the ISP provides many IP addresses, you can use NAT to map an external address to each server. However, if it is not the case (for example, if it is only two times), there are four servers in the Intranet that need to provide external services, one for Intranet address translation and the other for providing services on the Internet.
Interface fastethernet0/0 (intranet Interface)
Ip address 192.168.1.1 255.255.255.0
Duplex auto
Speed auto
Ip nat inside
No shutdown
Interface fastethernet0/1 (Internet Interface)
Ip address 211.82.220.129 255.255.255.248
Duplex auto
Speed auto
Ip nat outside
No shutdown
Access-list 1 permit 192.168.1.0 0.0.255 (specify the Intranet address range)
Ip nat inside source list1 interface fastethernet0/1 (Internet interface) overload
Ip route 0.0.0.0 0.0.0.0 211.82.220.132 (do the default route to the Internet)
The basic configuration of the required ACL is complete.
If the company has DDN to run, add the route.
If there are enough public IP addresses:
Ip nat inside source static tcp 192.168.1.2 80 202.99.220.130 80 (static ing)
Ip nat inside source static tcp 192.168.1.3 21 202.99.220.130 21
Ip nat inside source static tcp 192.168.1.4 25 202.99.220.130 25
Ip nat inside source static tcp 192.168.1.5 110 202.99.220.130 110
Author: "www.51cto.com"