WAN Access Technology-NAT Intranet and external network address translation (1)

Source: Internet
Author: User

WAN Access Technology-NAT Intranet and external network address translation (1)

This blog post is from Bkjia blog ^_^ Hua. If you have any questions, go to the blog page for an interactive discussion!

Blog: http://lining.blog.51cto.com/7879843/1396044

NAT basic IP address conversion Principle

In general, the NAT address translation process is the conversion process between the "local address" and "Global Address", whether the packets are sent from the internal network to the external network, or from the external network to the internal network. The difference is that the network corresponding to the local address and global address is different, and the source and destination addresses of data packets are different. Next, we will use an experiment to implement NAT translation, and use a local host to access external servers and implement DNS conversion.

Tutorial ideas:

As a local host, pc0 and pc1 have their own local ip addresses. when accessing servers on the public network, you must first convert these two local ip addresses into major ip addresses for public network communication, currently, their internal Global ip addresses are 192.168.1.1 and 192.168.1.2, and their destination ip addresses are 192.168.2.1 and 192.168.2.2. For other configurations, see the procedure.

The experiment topology is as follows:

Note:

1) Select a route with an expansion slot and add a serial slot

2) There is a serial DCE line with a clock when connecting the line. Connect the end first and use the end as the DCE end. The clock frequency is required.

Tutorial steps:

1) configure the device address and enable the routing Port

PC0

PC1

R0:

Router> en

Router # conft

Enterconfiguration commands, one per line. End with CNTL/Z.

Router (config) # intf0/0

Router (config-if) # ipadd 10.0.0.1 255.255.255.0

Router (config-if) # nosh

% LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up

% LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up

Router (config-if) # ints1/0

Router (config-if) # ex

Router (config) # ints1/0

Router (config-if) # ipadd 172.16.1.1 255.255.255.0

Router (config-if) # clockrate 1200 (because of our online R0)


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.