1 Pertemuan 14 Scaling Networks with NAT and PAT
Discussion Topics Private addressing Introducing NAT and PAT Major NAT and PAT features Configuring NAT and PAT Verifying PAT configuration Troubleshooting NAT and PAT configuration Issues with NAT 2
Private Addressing
NAT A NAT-enabled device typically operates at the border of a stub network.
NAT Terms Inside Local Addresses – An IP address assigned to a host inside a network. This address is likely to be a RFC 1918 private address. Inside Global Address – A legitimate IP address assigned by the NIC or service provider that represents one or more inside local IP address to the outside world. Outside Local Address - The IP address of an outside host as it known to the hosts in the inside network. Outside Global Address - The IP address assigned to a host on the outside network. The owner of the host assigns this address.
NAT Features Static NAT is designed to allow one-to-one mapping of local and global addresses. Outside DA Inside Internet Inside Global IP Address Inside Local IP Address NAT Table DA
NAT Features Dynamic NAT is designed to map a private IP address to a public address. Outside Inside Internet Inside Global IP Address Inside Local IP Address NAT Table SA SA
PAT Features PAT uses unique source port numbers on the inside global IP address to distinguish between translations. SA :2333 Outside Inside Internet SA :1456 SA : : : : :1456 Inside Global IP Address Inside Local IP Address NAT Table : :80 Outside Global IP Address Outside Local IP Address SA :
NAT Benefits Eliminates re-assigning each host a new IP address when changing to a new ISP Eliminates the need to re-address all hosts that require external access, saving time and money Conserves addresses through application port-level multiplexing Protects network security
Configuring Static NAT Translations Static translation are entered directly into the configuration and are permanent in the translation table Router(config)#ip nat inside source static
Inside/Outside interface An interface on the router can be defined as inside or outside Translations occur only from inside to outside interfaces or vice versa—never between the same type of interface NAT Inside Interface Inside Network Outside Network ip nat inside ip nat outside Inside Host Outside Host Router(config-if)#ip nat inside Outside Interface
Configuring Static NAT
Dynamic Translations Dynamic translation specify the pool of global addresses that inside addresses can be translated into Router(config)#ip nat pool nat-pool netmask Dynamic translations use access lists to identify IP addresses that NAT should create translations for Router(config)#ip nat inside source list 1 pool nat-pool Router(config)#access-list 1 permit
Configuring Dynamic NAT
Configuring PAT Establishes overload translation, specifying the IP address to be overloaded as that assigned to an outside interface Router(config)#ip nat inside source list 1 interface serial0/0 overload Establishes overload translation, specifying the IP address to be overloaded as that assigned to a pool name Router(config)# ip nat pool nat-pool netmask Router(config)#ip nat inside source list 1 pool nat-pool2 overload
Configuring PAT
Clearing the NAT Translation Table Clears all dynamic address translation entries Router#clear ip nat translation *
Verifying NAT and PAT Configuration
Troubleshooting NAT and PAT
Issues With NAT