DYNAMIC (PAT) - NAT #2
DYNAMIC (PAT) - NAT
Alat dan Bahan :
- Laptop / PC
- Cisco Packet Tracer
Switch(config)#int fa 0/1
Switch(config-if)#switchport mode trunk
Router(config)#int fa 0/1
Router(config-if)#ip address 192.168.10.1 255.255.0 --> IP to Client
Router(config-if)#no shutdown
Router(config)#int fa 0/0
Router(config-if)#ip address 10.10.10.1 255.255.255.0 --> IP Gateway
Router(config-if)#no shutdown
Router(config)#int fa 0/0
Router(config-if)#ip address 10.10.10.2 255.255.255.0 --> IP Gateway
Router(config-if)#no shutdown
Router(config)#int fa 0/1
Router(config-if)#ip address 20.20.20.1 255.255.255.0 --> IP Gateway
Router(config-if)#no shutdown
Untuk konfigurasi selanjutnya adalah melakukan sebuah konfigurasi Default Route
DEFAULT ROUTE
Router(config)#ip route 0.0.0.0 0.0.0.0 10.10.10.2
KONFIGURASI ACCESS LIST
Router(config)#access-list 1 permit any --> Enable Access List
KONFIGURASI NAT
Router(config)#ip nat inside source list 1 interface fastEthernet 0/0 overload --> Enable Dynamic NAT
Router(config)#int fa 0/1
Router(config-if)#ip nat inside --> Interface kedalam
Router(config)#int fa 0/0
Router(config-if)#ip nat outside --> Interface keluar
CHECK PING :
PADA PC - 0 :
C:\>ping 20.20.20.2
Pinging 20.20.20.2 with 32 bytes of data:
Reply from 20.20.20.2: bytes=32 time<1ms TTL=126
Reply from 20.20.20.2: bytes=32 time<1ms TTL=126
Reply from 20.20.20.2: bytes=32 time=1ms TTL=126
Reply from 20.20.20.2: bytes=32 time<1ms TTL=126
Ping statistics for 20.20.20.2:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 1ms, Average = 0ms
PADA PC-1 :
C:\>ping 20.20.20.2
Pinging 20.20.20.2 with 32 bytes of data:
Reply from 20.20.20.2: bytes=32 time<1ms TTL=126
Reply from 20.20.20.2: bytes=32 time<1ms TTL=126
Reply from 20.20.20.2: bytes=32 time=1ms TTL=126
Reply from 20.20.20.2: bytes=32 time<1ms TTL=126
Ping statistics for 20.20.20.2:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 1ms, Average = 0ms
Komentar
Posting Komentar