Static NAT, dynamic NAT

Source: Internet
Author: User

Static Nat, dynamic nat

Experimental topology :

Experimental purpose: Familiar with network address Translation protocol

Mastering the configuration of static NAT and dynamic NAT

Analyzing the differences between static NAT and dynamic NAT

Use the show command to check the operation of NAT

Experimental requirements: Configure static NAT and dynamic NAT by topology diagram

Experimental steps:

Step 1 do the underlying configuration as above topology and verify connectivity between neighboring devices

Step 2 Configure a default route to the Internet on NAT

NAT (config) #ip Route 0.0.0.0 0.0.0.0 200.200.100.2

Because the internal host is converted to the public IPof the 200.200.100.128/25 Network when it communicates with the Internet , configure one on the ISP to static routing of 200.200.100.128/25 networks

ISP (config) #ip Route 200.200.100.128 255.255.255.128 200.200.100.1

Step 3 Create a standard access control list that defines all internal users

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

Step 4 static Nat is a one-to-none, that is, an internal host corresponds to a public address in an address pool, so the configuration of the static NAT is as follows

Nat (config) #ip nat inside source static 192.168.1.2 200.200.100.129

Nat (config) #ip nat inside source static 192.168.1.5 200.200.100.130

Step 5 because static Nat Mughal all the internal hosts to configure address translation, a simple workaround is presented, which is to configure the address pool, which is the dynamic Nat

Nat (config) #ip Nat Pool public 200.200.100.129 200.200.100.254 netmask 255.255.255.128

Nat (Cinfig) #ip nat inside source list 1 pool public

Step 6 Specify the internal and external interfaces of the NAT

NAT (config) #int f0/0

Nat (CONFIG-IF) #ip nat inside

NAT (config) #int s0/0

Nat (CONFIG-IF) #ip Nat outside

Common View Commands:

Router#show IP NAT Translations

Show NAT translation table

Router#show IP NAT Statistics

Show current NAT Status

Router#clear IP Nat translations*

Clear all NAT conversions before timing out

Static NAT, dynamic NAT

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.