NAT adalah (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.
Contoh Kasus :
IP PUBLIC : 202.100.100.100
Router 0 : Gig0/0 10.10.10.1/30
Gig0/1 192.168.10.1/24
Gig0/1 192.168.10.1/24
Router 1 : Gig0/0
10.10.10.2/30
Gig0/1 192.168.20.1/24
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
Konfigurasi pada
Router0
Router0>enable
Router0#conf ter
Enter configuration commands, one per line. End with CNTL/Z.
Router0(config)#interface gigabitEthernet 0/0
Router0(config-if)#ip address 10.10.10.1 255.255.255.252
Router0(config-if)#no sh
Router0#conf ter
Enter configuration commands, one per line. End with CNTL/Z.
Router0(config)#interface gigabitEthernet 0/0
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)#interface gigabitEthernet 0/1
Router0(config-if)#ip address 192.168.10.1 255.255.255.0
Router0(config-if)#no sh
Router0#conf ter
Enter configuration commands, one per line. End with CNTL/Z.
Router0(config)#interface gigabitEthernet 0/1
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
Konfigurasi pada Router1
Router1>enable
Router1#conf ter
Enter configuration commands, one per line. End with CNTL/Z.
Router1(config)#interface gigabitEthernet 0/0
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)#interface gigabitEthernet 0/1
Router1(config-if)#ip address 192.168.20.1 255.255.255.0
Router1(config-if)#no sh
Router1(config-if)#exit
Konfigurasi pada Router1
Router1>enable
Router1#conf ter
Enter configuration commands, one per line. End with CNTL/Z.
Router1(config)#interface gigabitEthernet 0/0
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)#interface gigabitEthernet 0/1
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)#interface gi 0/1
Router1(config-if)#ip nat inside
Router1(config-if)#exit
Router1(config)#interface gigabitEthernet 0/0
Router1(config-if)#ip nat outside
Router1(config-if)#exit
Router1(config)#ip nat inside source static 192.168.20.2 202.100.100.100
Router1(config)#
Hasil Ping PC0 ke IP PUBLIC 202.100.100.100
Router1(config)#interface gi 0/1
Router1(config-if)#ip nat inside
Router1(config-if)#exit
Router1(config)#interface gigabitEthernet 0/0
Router1(config-if)#ip nat outside
Router1(config-if)#exit
Router1(config)#ip nat inside source static 192.168.20.2 202.100.100.100
Router1(config)#
Hasil Ping PC0 ke IP PUBLIC 202.100.100.100
Show ip NAT Translation
Hasil Ping PC1 ke IP PUBLIC 202.100.100.100
Show ip NAT Translation
Tidak ada komentar:
Posting Komentar