why we need nat
Network Address Translation (NAT) is one of the most essential components in the Internet’s architecture. It provides a way to share a single public IP address among many computers on the network.
NAT has been around for over 30 years, and it is still going strong, with no signs of slowing down.
Static NAT, Dynamic NAT and PAT are different types of network address translation.
Static NAT is a type of network address translation that maps one public IP address to one private IP address. This is typically used when you have a single computer on the internet.
Dynamic NAT is a type of network address translation that maps multiple public IP addresses to a single private IP address. This is typically used when you have more than one computer on the internet.
PAT (port-address translation) is a type of network address translation that maps multiple public IP addresses to multiple private IP addresses. This is typically used when you want your computers to share an internet connection but not be seen on the internet individually.
1. Create an address pool for the inside network.
2. Map the public IP address to the inside network addresses.
3. Configure any access control lists (ACL) or packet filters on the router interfaces as necessary.
ROUTER CONFIGURATION:
interface GigabitEthernet1
ip address 92.168.23.2 255.255.255.0
ip nat outside
!
interface GigabitEthernet2
ip address 192.168.12.2 255.255.255.0
ip nat inside
!
!
ip nat inside source static 192.168.12.1 92.168.23.2
NAT#show ip nat translations
Pro Inside global Inside local Outside local Outside global
--- 92.168.23.2 192.168.12.1 --- ---
icmp 92.168.23.2:1 192.168.12.1:1 92.168.23.3:1 92.168.23.3:1
icmp 92.168.23.2:0 192.168.12.1:0 92.168.23.3:0 92.168.23.3:0
Total number of translations: 3
If you would like to know more about this subject or others, leave a comment below with you questions for the folks at Functionkey, Inc.