Configuration du NAT dynamique (Network Address Translation),
R30
R30 (config)#interface Serial0/0/0
R30 (config-if)#ip address 12.0.0.1 255.255.255.252
R30 (config-if)#no shutdown
R30 (config-if)#exit
R30 (config)#interface FastEthernet0/0
R30 (config-if)#ip address 192.168.40.1 255.255.255.0
R30(config)#interface fastEthernet 0/0
R30(config-if)#ip nat inside
R30(config-if)#exit
R30(config)#interface serial 0/0/0
R30(config-if)#ip nat outside
R30(config-if)#exit
R30(config)#access-list 10 permit 192.168.40.0 0.0.0.255
R30(config)#ip nat inside source list 10 pool adam
R30(config)#ip nat pool adam 12.0.0.1 12.0.0.10 netmask 255.255.255.252
R30#show ip nat translations
Pro Inside global Inside local Outside local Outside global
icmp 12.0.0.1:1 192.168.40.2:1 12.0.0.2:1 12.0.0.2:1
Pour Le PAT
A la place de ip nat pool {nom_du_pool} {première-ip} {dernière-ip} netmask {masque_de_sous-reseau}
R30(config)#ip nat inside source list 10 interface serial 0/0/0 overload
Vider la table NAT
R30#clear ip nat translation
Affiche en temps réel toute les paquets translatés
R30#debug ip nat
IP NAT debugging is on