NAT personal summary

Source: Internet
Author: User

I. Introduction

The emergence of NAT is due to the depletion of global IP addresses.

Ii. Type

1. Intranet access

① Dynamic NAT

② Port multiplexing NAT

2. Intranet server ing

① One-to-one ing

② Port ing

3. TCP load balancing for Intranet servers

Iii. cisco Configuration

1. Intranet access

① Dynamic NAT

650) this. width = 650; "title =" net1.jpg "alt =" 220736144.jpg" src = "http://www.bkjia.com/uploads/allimg/131227/042Z1LH-0.jpg"/>

R3:

Intranet gateway ip Address: 192.168.1.254

Internet ip Address: 12.1.1.1

 

Interfacef0/0

Ip address 192.168.1.254 255.255.255.0

No shutdown

Ip natinside

Interface f0/1

Ip address12.1.1.1255.20.255.0

No shutdown

Ip natoutside

Access-list 1 permit 192.168.1.0 0.0.255

Ip nat pool out2internet 12.1.1.10 12.1.1.20 netmask 255.255.255.0

Ip nat inside source list 1 pool out2internet [overload]

② Port multiplexing

Different from dynamic NAT, the nat address pool is defined as the same as the starting and ending ip addresses of a single ip address. The overload parameter must be added at the end of the nat global configuration:

Ip nat inside source list 1 pool out2internet overload

2. Intranet server ing

① One-to-one ip address ing

650) this. width = 650; "title =" .jpg "alt =" 221819576.jpg" src = "http://www.bkjia.com/uploads/allimg/131227/042Z13I5-1.jpg"/>

Intranet Server ip Address: 192.168.1.1

Intranet gateway ip Address: 192.168.1.254

Ip address mapped to the Internet: 218.85.157.99

Interface f0/0

Ip address 192.168.1.254 255.255.255.0

No shutdown

Ip nat inside

Interface f0/1

Ip address 218.85.157.99 255.255.255.0

Ip nat outside

No shutdown

Ip nat inside source static 192.168.1.1 218.85.157.90

② Port ing. Here we use 80 web services as an example.

The IP address and interface configuration are consistent with the 1-to-1 ing.

Ip nat inside source tcp 192.168.1.1 80 218.85.157.90 80

3. TCP load balancing for Intranet servers

650) this. width = 650; "title =" tcp .jpg "alt =" 222512276.jpg" src = "http://www.bkjia.com/uploads/allimg/131227/042Z161W-2.jpg"/>

1) interface f0/0
Ip nat inside

Ip address 192.168.1.254 255.255.255.0

No shutdown
Int f1/0
Ip nat outside

Ip address 218.85.157.90 255.255.255.0

No shutdown

2) access-list 1 permit host 218.85.157.90 // defines the public network ACL and only the IP address of the interface)

3) ip nat pool cisco 192.168.1.1 192.168.1.2 netmask 255.255.255.0 typerotary // defines the address pool of Intranet Server Load balancer.

4) ip nat inside destination list 1 pool cisco

This article is from the keepalive blog, please be sure to keep this source http://jefferyyu.blog.51cto.com/2843635/1300269

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.