Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Translation(NAT)
Introduction
• Network Address Translation(NAT) was introduced to overcome the
addressing problems that occurred with the rapid expansion of the
internet.
• Basically NAT allows a single network device (e.g router or firewall) to
act as an agent between private local area network and a public
network such a the internet.
• These purpose of this NAT device is to translate these source IP
address of the internal hosts into public routable IP address in order
to communicate with the internet.
WHAT IS NAT
NAT allows a host that does not have a valid registered IP address to
communicate with other host a through the internet.
• Dynamic NAT
Designed to map an unregistered IP address to a registered IP address
from a pool of registered IP address.
You don’t have to statically configure your router to map an inside to an
outside address as in a static NAT.
Port address translation PAT
This is kind of dynamic NAT that maps multiple private IP address to a
single public IP address (many to one ).by using different ports.
By using PAT is the technology that helps us not run out of public IP
address on the internet this the most popular of NAT
Port Address Translation LAB
R1# IP configuration
• Router#enable
• Router#configure
• Router(config)#interface fa 0/0
• Router(config-if)#ip addr 172.17.0.1 255.255.0.0
• Router(config-if)#no shutdown
• Router(config-if)#exit
• Router(config)#int s 0/0/0
• Router(config-if)#ip addr 200.10.20.2 255.255.255.0
• Router(config-if)#clock rate 128000
• Router(config-if)#no shutdown
• Router(config-if)#exit
R2# IP configuration
• Router(config)#int s0/0/0
• Router(config-if)#ip addr 200.10.20.1 255.255.255.0
• Router(config-if)#no shutdown
• Router(config-if)#exit
• Router(config)#int loopback 1
• Router(config-if)#ip addr 8.8.8.8 255.255.255.255
NAT configuration (PAT)
• NAT-ROUTER(config)#access-list 10 permit 172.17.0.0 0.0.255.255
• NAT-ROUTER(config)#ip nat inside source list 10 interface s 0/0/0
• NAT-ROUTER(config)#int s 0/0/0
• NAT-ROUTER(config-if)#ip nat outside
• NAT-ROUTER(config-if)#exit
• NAT-ROUTER(config)#int fa 0/0
• NAT-ROUTER(config-if)#ip nat inside
NAT veritification commands
• NAT-ROUTER#show ip nat translations