Jumat, 28 Juli 2017

Mengonfigurasi NAT Static pada Cisco Packet Tracer





A. Pengertian

Apa itu NAT ?

NAT atau dalam Bahasa Inggris Network Address Translation adalah suatu metode untuk menghubungkan lebih dari satu komputer ke jaringan internet dengan menggunakan satu alamat IP. Banyaknya penggunaan metode ini disebabkan karena ketersediaan alamat IP yang terbatas, kebutuhan akan keamanan (security), dan kemudahan serta fleksibilitas dalam administrasi jaringan.


 B. Contoh Topology Static NAT

 

 Keterangan :


IP Publik : 202.100.100.100

Router 0 : Gig0/0 10.10.10.1/30
                 Gig0/1 192.168.10.1/24

Router 1 : Gig0/0 10.10.10.2/30
                 Gig0/1 192.168.20.1/24

Server    : 192.168.20.2/24
PC0         : 192.168.10.2/24
PC1         : 192.168.10.3/24

Ketikkan kodingan di bawah ini ke Router 0 :

Router0>enable
Router0#conf ter
Enter configuration commands, one per line.  End with CNTL/Z.
Router0(config)#int
Router0(config)#interface gi
Router0(config)#interface gigabitEthernet 0/0
Router0(config-if)#ip ad
Router0(config-if)#ip address 10.10.10.1 255.255.255.252
Router0(config-if)#no sh

Router0>enable
Router0#conf ter
Enter configuration commands, one per line.  End with CNTL/Z.
Router0(config)#int
Router0(config)#interface gi
Router0(config)#interface gigabitEthernet 0/1
Router0(config-if)#ip ad
Router0(config-if)#ip address 192.168.10.1 255.255.255.0
Router0(config-if)#no sh
Router0(config-if)#exit
Router0(config)#ip route 0.0.0.0 0.0.0.0 10.10.10.2




Ketikkan kodingan di bawah ini ke Router 1

Router1>enable
Router1#conf ter
Enter configuration commands, one per line.  End with CNTL/Z.
Router1(config)#int
Router1(config)#interface gi
Router1(config)#interface gigabitEthernet 0/0
Router1(config-if)#ip ad
Router1(config-if)#ip address 10.10.10.2 255.255.255.252
Router1(config-if)#no sh


Router1>enable
Router1#conf ter
Enter configuration commands, one per line.  End with CNTL/Z.
Router1(config)#int
Router1(config)#interface gi
Router1(config)#interface gigabitEthernet 0/1
Router1(config-if)#ip ad
Router1(config-if)#ip address 192.168.20.1 255.255.255.0
Router1(config-if)#no sh
Router1(config-if)#exit
Router1(config)#ip route 0.0.0.0 0.0.0.0 10.10.10.1
Router1(config)#int
Router1(config)#interface gi 0/1
Router1(config-if)#ip na
Router1(config-if)#ip nat ins
Router1(config-if)#ip nat inside 
Router1(config-if)#exit
Router1(config)#in
Router1(config)#interface gi
Router1(config)#interface gigabitEthernet 0/0 
Router1(config-if)#ip na
Router1(config-if)#ip nat out
Router1(config-if)#ip nat outside 
Router1(config-if)#exit
Router1(config)#ip na
Router1(config)#ip nat ins
Router1(config)#ip nat inside sour
Router1(config)#ip nat inside source st
Router1(config)#ip nat inside source static 192.168.20.2 202.100.100.100
Router1(config)#



Ping PC0 ke IP PUBLIK 202.100.100.100




Ketikkan Show IP NAT Translation pada Router 1


 

Ping PC 1 ke IP Publik 202.100.100.100

 

Show IP NAT Translation

 





Tidak ada komentar:

Posting Komentar