Académique Documents
Professionnel Documents
Culture Documents
Objectives
Upon completing this lesson, you will be able to:
Describe the features and operation of NAT on Cisco routers
Use Cisco IOS commands to configure NAT, given a functioning router Use show commands to identify anomalies in the NAT configuration, given an operational router Use debug commands to identify events and anomalies in the NAT configuration, given an operational router
An IP address is either local or global. Local IP addresses are seen in the inside network.
Establishes static translation between an inside local address and an inside global address
Defines a standard IP access list permitting those inside local addresses that are to be translated
Router(config)#ip nat inside source list access-list-number pool name
Establishes dynamic source translation, specifying the access list defined in the prior step
Configuring Overloading
Router(config)#access-list access-list-number permit source source-wildcard
Defines a standard IP access list permitting those inside local addresses that are to be translated
Establishes dynamic source translation, specifying the access list defined in the prior step
Router#clear ip nat translation protocol inside global-ip global-port local-ip local-port [outside local-ip local-port global-ip global-port]
Clears an extended dynamic translation entry
Router#debug ip nat
NAT: s=192.168.1.95->172.31.233.209, d=172.31.2.132 [6825] NAT: s=172.31.2.132, d=172.31.233.209->192.168.1.95 [21852] NAT: s=192.168.1.95->172.31.233.209, d=172.31.1.161 [6826] NAT*: s=172.31.1.161, d=172.31.233.209->192.168.1.95 [23311] NAT*: s=192.168.1.95->172.31.233.209, d=172.31.1.161 [6827] NAT*: s=192.168.1.95->172.31.233.209, d=172.31.1.161 [6828] NAT*: s=172.31.1.161, d=172.31.233.209->192.168.1.95 [23313] NAT*: s=172.31.1.161, d=172.31.233.209->192.168.1.95 [23325]
Summary
Cisco IOS NAT allows an organization with unregistered private addresses to connect to the Internet by translating those addresses into globally registered IP addresses. You can translate your own IP addresses into globally unique IP addresses when communicating outside of your network. Overloading is a form of dynamic NAT that maps multiple unregistered IP addresses to a single registered IP address (many-to-one) by using different ports, known also as PAT. Once you have configured NAT, verify that it is operating as expected using the clear and show commands. Sometimes NAT is blamed for IP connectivity problems when there is actually a routing problem.