NAT enables Intranet access to the Internet

Source: Internet
Author: User

 

1. Use static nat

Let r3 ping r2.

 

First, set it on r3 to simulate r3 as a PC.

 

 

 

Ip route 0.0.0.0 0.0.0.0 192.168.13.1

Then, Set

 

 

 

Int e0/1

Ip nat inside

Exit

 

Int e0/0

Ip nat outside

Exit

 

Ip nat inside source static 192.168.13.3 202.66.84.2

2. Use Dynamic NAT

 

Steps:

 

A. Create an external address pool

 

B. Create an internal access list

 

C. Conversion

 

First, simulate R3 and R4 to become a pc.

 

R3

 

!

Ip route 0.0.0.0 0.0.0.0 192.168.13.1

!

 

 

R4

 

!

Ip route 0.0.0.0 0.0.0.0 192.168.14.1

!

 

 

Then on R1

 

 

 

Ip nat pool SHANGWANG 202.66.84.3 202.66.84.10 netmask 255.255.255.0

 

Ip access-list standard BenDi

Permit 192.168.0.0 0.0.255.255

 

!

Interface Ethernet0/0

Ip address 202.66.84.1 255.255.255.0

Ip nat outside

Ip virtual-reassembly

Half-duplex

!

Interface Ethernet0/1

Ip address 192.168.13.1 255.255.255.0

Ip nat inside

Ip virtual-reassembly

Half-duplex

!

Interface Ethernet0/2

Ip address 192.168.14.1 255.255.255.0

Ip nat inside

Ip virtual-reassembly

Half-duplex

!

 

Ip nat inside source list BenDi pool SHANGWANG

 

This article is from the "Technical feast" blog

Related Article

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.