Static NAT and dynamic NAT synthesis experiment

Source: Internet
Author: User

Experimental Purpose: The company uses 1 public addresses to connect to the extranet, and maps the intranet Web server to the public address, providing external access!

Experimental topology:

650) this.width=650; "Src=" Http://s3.51cto.com/wyfs02/M01/85/E0/wKioL1etRCCRnCa4AAB0s0X18eM872.jpg-wh_500x0-wm_3 -wmp_4-s_2397168649.jpg "title=" static NAT and dynamic NAT synthesis experiment. jpg "alt=" wkiol1etrccrnca4aab0s0x18em872.jpg-wh_50 "/>

Configuration:

Router R1

R1 (config) #interface serial2/0

R1 (config-if) #ip address 202.1.1.1 255.255.255.0

R1 (config-if) #clock rate 64000

R1 (config-if) #no shutdown

R1 (config-if) #ip Nat outside 

R1 (config-if) # interface fastethernet0/0

R1 (config-if) # IP address 192.168.1.1 255.255.255.0

R1 (config-if) #ip Nat inside 

R1 (config-if) #no shutdown 

R1 (config-if) #exit

r1 (config) #access-list 1 Permit 192.168.1.0 0.0.0.255

r1 (config) # IP nat inside source List 1 interface serial2/0 overload

R1 (config) #IP nat inside source static TCP 192.168.1.4 202.1.1.1 Server maps to an external network

Router R2

R2 (config) #interface serial2/0

R2 (config-if) #ip address 202.1.1.2 255.255.255.0

R2 (config-if) #no shutdown

R2 (config-if) #ip Nat outside

R2 (config-if) #interface fastethernet0/0

R2 (config-if) #ip address 192.168.2.1 255.255.255.0

R2 (config-if) #ip nat inside

R2 (config-if) #no shutdown

R2 (config-if) #exit

R2 (config) #access-list 1 Permit 192.168.2.0 0.0.0.255

R2 (config) #ip nat inside source List 1 interface serial2/0 overload

R2 (config) #ip nat inside source static TCP 192.168.2.4 Map Server to external network

Note: Consider security factors, you can access to the Web services to the end of the network on both sides of the intranet can not directly exchange visits.

This article is from the "Chen Chinese" blog, please be sure to keep this source http://chenhuawen.blog.51cto.com/1998230/1837230

Static NAT and dynamic NAT synthesis experiment

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.