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