TCP/UDP Port NAT Mapping---NAT forwarding instance (v)

Source: Internet
Author: User

650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M00/89/37/wKiom1gMm5GS5fk_AAA1b8e-Uhk685.png "title=" nat_5. PNG "alt=" Wkiom1gmm5gs5fk_aaa1b8e-uhk685.png "/> The experiment we're going to do is to map the local server address to the port address of the extranet. We use a Web page to determine if we have a successful configuration. Here we go. The server's HTTP (that is, the Web service) has not been opened

650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M00/89/37/wKiom1gMm0HCM1NPAAB8GAJvOEw692.png "title=" "width = "643" height= "516" border= "0" hspace= "0" vspace= "0" style= "width:643px;height:516px;" alt= " Wkiom1gmm0hcm1npaab8gajvoew692.png "/>

This is the open, you can write your own one or two-sentence test of the HTML code. We will delete the inside code, and then write on the hello!word! and then test the intranet can access (as long as the IP address can be accessed through the web)

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/89/35/wKioL1gMm4Kj8-EhAAAwuAyar_Q385.png "title=" web_1. PNG "alt=" Wkiol1gmm4kj8-ehaaawuayar_q385.png "/>

The result of course is to be able to display then we configure the routerThe following are the router configurations:

router>en
Router#config
Configuring from terminal, memory, or network [terminal]?
Enter configuration commands, one per line. End with cntl/z.
Router (config) #host R1
R1 (config) #in F0/1
R1 (config-if) #no sh

R1 (config-if) #
%link-5-changed:interface FASTETHERNET0/1, CHANGED state-to-up

%lineproto-5-updown:line protocol on Interface FASTETHERNET0/1, changed

R1 (config-if) #ip add 192.168.1.254 255.255.255.0
R1 (config-if) #ip nat inside
R1 (config-if) #e
R1 (config) #in f0/0
R1 (config-if) #no sh

R1 (config-if) #
%link-5-changed:interface fastethernet0/0, CHANGED state-to-up

%lineproto-5-updown:line protocol on Interface fastethernet0/0, changed

R1 (config-if) #ip add 55.55.55.5 255.255.255.0
R1 (config-if) #ip Nat outside
R1 (config-if) #e
R1 (config) #ip nat pool A 55.55.55.4 55.55.55.5 netmask 255.255.255.0
R1 (config) #access-list 1 Permit 192.168.1.1 0.0.0.255
R1 (config) #ip nat inside source list 1 pool A
R1 (config) #IP nat inside source static TCP 192.168.1.1 55.55.55.5
R1 (config) #end
r1#
%sys-5-config_i:configured from console by console

R1#w
Building configuration ...
[OK]
r1#

The red ones are the most important commands in this section and commands to understand.

After configuring the router we will use the external network of the PC to test can be displayed because we are talking about the intranet address map to the outside network, so we in the external network of the PC access needs to input is the map of the external network of IP Access results display of course, can be accessed

650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M00/89/35/wKioL1gMm6WwktLDAAAvorybwbw200.png "title=" web_2. PNG "alt=" Wkiol1gmm6wwktldaaavorybwbw200.png "/>

This article is from the "Jimmy-hu" blog, make sure to keep this source http://jimmy1688.blog.51cto.com/12174375/1864777

TCP/UDP Port NAT Mapping---NAT forwarding instance (v)

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.