10 NAT
Friday, October 8, 2021 7:12 AM
Network Address Translation Concepts
Static NAT
IP addresses statically mapped to each other.
NAT router simply configures a oneregistered address that is used on its behalf. -to-one mapping between the private address and the
Supporting a second IP host with static NAT requires a second static onesecond IP address in the public address range. -to-one mappingusing a
the router statically maps 10.1.1.2 to 200.1.1.2. Because the enterprise has a single registered Class C network, it can support at most 254 private IP addresses with NAT, with the usual two
reserved numbers (the network number and network broadcast address).
inside local for the private IP addresses in this example and inside global for the public IP addresses.
Dynamic NAT
Dynamic NAT sets up a pool of possible inside global addresses and defines matching criteria to determine which inside local IP addresses should be translated with NAT.
Overloading NAT with Port Address Translation
NAT Overload feature, also called Port Address Translation (PAT)
NAT Configuration and Troubleshooting
Static NAT Configuration
Each static mapping between a local (private) address and a global (public) address must be configured.
Those same interface subcommands tell NAT whether the interface is inside or outside.
Step 1. Use thebe in the inside part of the NAT design. ip nat inside command in interface configuration mode to configure interfaces to
Step 2. Use the be in the outside part of the NAT design. ip nat outside command in interface configuration mode to configure interfaces to
Step 3. Use theconfiguration mode to configure the static mappings. ip nat inside source static inside-local inside-global command in global
Dynamic NAT Configuration
Dynamic NAT still requires that each interface be identified as either an inside or outside interface
Dynamic NAT uses an access control list (ACL) to identify which inside local (private) IP addresses need to have their addresses translated, and it defines a pool of registered public IP addresses to
allocate.
Step 1. Use the be in the inside part of the NAT design (just like with static NAT). ip nat inside command in interface configuration mode to configure interfaces to
Step 2. Use the be in the outside part of the NAT design (just like with static NAT). ip nat outside command in interface configuration mode to configure interfaces to
Step 3. be performed.Configure an ACL that matches the packets entering inside interfaces for which NAT should
Step 4. Use the global configuration mode to configure the pool of public registered IP addresses. ip nat pool name first-address last-address netmask subnet-mask command in
Step 5. Use theconfiguration mode to enable dynamic NAT. Note the command references the ACL (step 3) and ip nat inside source list acl-number pool pool-name command in global
pool (step 4) per previous steps.
“misses,” as highlighted in the example. The first occurrence of this counter counts the number of times a new packet comes along, needing a NAT entry, and not finding one.
The second misses counter toward the end of the command output lists the number of misses in the pool. This counter increments only when dynamic NAT tries to allocate a new NAT table entry
and finds no available addresses
debug ip nat packet has its address translated for NAT.command. This debug command causes the router to issue a message every time a
NAT Overload (PAT) Configuration
If PAT uses a pool of inside global addresses, the configuration looks exactly like dynamic NAT, except the ip nat inside source list global command has an overload keyword added to the end. If
PAT just needs to use one inside global IP address, the router can use one of its interface IP addresses
configuration when using an interface IP address as the sole inside global IP address:
Step 1. As with dynamic and static NAT, configure theto identify inside interfaces. ip nat inside interface sub-command
Step 2. As with dynamic and static NAT, configure theto identify outside interfaces. ip nat outside interface subcommand
Step 3. As with dynamic NAT, interfaces. configure an ACL that matches the packets entering inside
Step 4. Configure the global configuration command, referring to the ACL created in step 3 and to the interface ip nat inside source list acl-number interface type/number overload
whose IP address will be used for translations.
NAT Troubleshooting
Reversed inside and outside
Static NAT: Check the address first and the inside global IP address second. ip nat inside source static command to ensure it lists the inside local
address first and the inside global IP address second.
Dynamic NAT (ACL): Ensure that the ACL configured to match packets sent by the inside hosts match that host’s packets before any NAT translation has occurred.
Dynamic NAT (pool): For dynamic NAT without PAT, ensure that the pool has enough IP addresses\
A large or growing value in the second misses counter in thecommand output can indicate this problem. Also, compare the configured pool to the list of show ip nat statistics
addresses in the NAT translation table the problem may be that the configuration intended to use PAT and is missing the overload (show ip nat translations ). Finally, if the pool is small,
keyword
PAT: It is easy to forget to add the overload option
perhaps NAT has been configured correctly, but the packets. an ACL exists on one of the interfaces, discarding
IOS processes ACLs before NATafter translating the addresses with NAT.. For packets exiting an interface, IOS processes any outbound ACL
User traffic required
IPv4 routing
4.0 IP Services
4.7 Explain the forwarding percongestion, policing, shaping -hop behavior (PHB) for QoS such as classification, marking, queuing,
QoSthan storing and forwarding a message. defines these actions as per-hop behaviors (PHBs),which isa formal term to refer to actions other