DYNAMIC (PAT) - NAT #2

 

DYNAMIC (PAT) - NAT

Alat dan Bahan :

  • Laptop / PC
  • Cisco Packet Tracer
          Static NAT adalah sebuah metode NAT yang dimiliki oleh perangkat cisco dengan system kerja mengaplikasikan banyak IP Private ke dalam satu IP Public saja.

Perhatikan Topologi berikut : 


    Pada lab kali menggunakan 2 router, 1 switch, 1 server, dan 2 PC . Konsepnya akan membuat router dan server seolah – olah internet, serta kedua 2 PC atau seluruh Client agar dapat terhubung ke internet.

KONFIGURASI SWITCH 

Switch(config)#int fa 0/1 

Switch(config-if)#switchport mode trunk



KONFIGURASI IP ADDRESS 

Pada Router - 0 :

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


Pada Router - 1 :

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

Postingan populer dari blog ini

EIGRP WITH DISTRIBUTE LIST - EIGRP #1

NAMED ACCESS LIST - ACESS LIST #5

WALLED GARDEN IP LIST - NETWORK MANAGEMENT MIKROTIK #11