NAT configuration instance for cisco router with port ing

Source: Internet
Author: User

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"

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.