Download as pdf or txt
Download as pdf or txt
You are on page 1of 2

Configuración de Router1 – NAT dinámico

interface FastEthernet0/0
ip address 192.168.1.1 255.255.255.0
ip nat inside
interface Serial0/0/0
ip address 200.123.234.25 255.255.255.240
ip nat outside
ip nat pool IP-Publicas 200.123.234.17 200.123.234.24 netmask 255.255.255.240
ip nat inside source list 1 pool IP-Publicas
access-list 1 permit 192.168.1.0 0.0.0.255

Configuración de Router2 – NAT estático


interface FastEthernet0/0
ip address 10.10.10.1 255.255.255.0
ip nat inside
interface Serial0/0/0
ip address 200.123.234.26 255.255.255.240
ip nat outside
ip nat inside source static 10.10.10.100 200.123.234.30

Pruebas de NAT
Ping desde PC0 a IP NAT de Web Server (200.123.234.30)
C:\>ping 200.123.234.30
Pinging 200.123.234.30 with 32 bytes of data:
Reply from 200.123.234.30: bytes=32 time=2ms TTL=126
Reply from 200.123.234.30: bytes=32 time=1ms TTL=126
Reply from 200.123.234.30: bytes=32 time=2ms TTL=126
Reply from 200.123.234.30: bytes=32 time=1ms TTL=126

Ping statistics for 200.123.234.30:


Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 1ms, Maximum = 2ms, Average = 1ms
Router1#sh ip nat translations
Pro Inside global Inside local Outside local Outside global
icmp 200.123.234.17:46 192.168.1.100:46 200.123.234.30:46 200.123.234.30:46
icmp 200.123.234.17:47 192.168.1.100:47 200.123.234.30:47 200.123.234.30:47
icmp 200.123.234.17:48 192.168.1.100:48 200.123.234.30:48 200.123.234.30:48
icmp 200.123.234.17:49 192.168.1.100:49 200.123.234.30:49 200.123.234.30:49

Prueba de servicio WEB desde PC0

Router1#sh ip nat translations


Pro Inside global Inside local Outside local Outside global
tcp 200.123.234.17:1032192.168.1.100:1032 200.123.234.30:80
200.123.234.30:80
Router2#sh ip nat translations
Pro Inside global Inside local Outside local Outside global
— 200.123.234.30 10.10.10.100 — —
tcp 200.123.234.30:80 10.10.10.100:80 200.123.234.17:1025200.123.234.17:1025
tcp 200.123.234.30:80 10.10.10.100:80 200.123.234.17:1026200.123.234.17:1026
tcp 200.123.234.30:80 10.10.10.100:80 200.123.234.17:1027200.123.234.17:1027
tcp 200.123.234.30:80 10.10.10.100:80 200.123.234.17:1028200.123.234.17:1028
tcp 200.123.234.30:80 10.10.10.100:80 200.123.234.17:1029200.123.234.17:1029
tcp 200.123.234.30:80 10.10.10.100:80 200.123.234.17:1030200.123.234.17:1030
tcp 200.123.234.30:80 10.10.10.100:80 200.123.234.17:1031200.123.234.17:1031
tcp 200.123.234.30:80 10.10.10.100:80 200.123.234.17:1032200.123.234.17:1032

You might also like