Konfigurasi NAT Cisco Router: Perbedaan antara revisi

Dari Catatan Pak Samsul
Loncat ke navigasi Loncat ke pencarian
kTidak ada ringkasan suntingan
 
(7 revisi perantara oleh pengguna yang sama tidak ditampilkan)
Baris 4: Baris 4:


===Static NAT Configuration===
===Static NAT Configuration===
[[Berkas:Fig1 wilkins basic-nat-concepts.jpg|jmpl|Topologi Static NAT|254x254px]]
  router#configure terminal
  router#configure terminal
  router(config)#ip nat inside source static '''local-ip''' '''global-ip [overload]'''
  router(config)#ip nat inside source static '''local-ip''' '''global-ip [overload]'''
Baris 11: Baris 12:
  router(config-if)#ip nat outside
  router(config-if)#ip nat outside
  router(config-if)#end
  router(config-if)#end
[[Berkas:Fig1 wilkins basic-nat-concepts.jpg|jmpl|Topologi Static NAT]]
 
Simpan pengaturan pada NVRAM
router#copy run start
 
Untuk melihat tabel NAT bisa menggunakan perintah berikut :  
router#show ip nat translation


===Dynamic NAT Configuration===
===Dynamic NAT Configuration===
[[Berkas:Fig2 wilkins basic-nat-concepts.jpg|jmpl|Topologi Dynamic NAT|254x254px]]
  router#configure terminal
  router#configure terminal
  router(config)#ip nat pool pool-name '''start-i'''p '''end-i'''p {netmask netmask | prefix-length prefix-length}
  router(config)#ip nat pool pool-name '''start-i'''p '''end-i'''p {netmask netmask | prefix-length prefix-length}
  router(config)#access-list access-list-number permit source '''[source-wildcard]'''
  router(config)#access-list -number permit source '''[source-wildcard]'''
  router(config)#ip nat inside source list access-list-number pool pool-name '''[overload]'''
  router(config)#ip nat inside source list access-list-number pool pool-name '''[overload]'''
  router(config)#interface '''interface-id'''
  router(config)#interface '''interface-id'''
Baris 23: Baris 30:
  router(config-if)#ip nat outside
  router(config-if)#ip nat outside
  router(config-if)#end
  router(config-if)#end
[[Berkas:Fig2 wilkins basic-nat-concepts.jpg|jmpl|Topologo Dynamic NAT]]
 
Simpan pengaturan pada NVRAM
router#copy run start
 
Untuk melihat tabel NAT bisa menggunakan perintah berikut :  
router#show ip nat translation


===TCP Load Balancing Configuration===
===TCP Load Balancing Configuration===
[[Berkas:Fig3 wilkins basic-nat-concepts.jpg|jmpl|''Topologi TCP Load Balancing Configuration''|253x253px]]
  router#configure terminal
  router#configure terminal
  router(config)#ip nat pool pool-name '''start-ip''' '''end-ip''' '''{netmask netmask | prefix-length prefix-length} type rotary'''
  router(config)#ip nat pool pool-name '''start-ip''' '''end-ip''' '''{netmask netmask | prefix-length prefix-length} type rotary'''
Baris 35: Baris 48:
  router(config-if)#ip nat outside
  router(config-if)#ip nat outside
  router(config-if)#end
  router(config-if)#end
[[Berkas:Fig3 wilkins basic-nat-concepts.jpg|jmpl|''Topologi TCP Load Balancing Configuration'']]
{{DEFAULTSORT:Konfigurasi_NAT_Sisco_Router}}


{{DEFAULTSORT:Konfigurasi_NAT_Sisco_Router}}
Simpan pengaturan pada NVRAM
router#copy run start

Revisi terkini sejak 28 Agustus 2023 15.20


Ada beberapa metode (dan perintah) yang digunakan untuk mengkonfigurasi NAT. Tiga metode tersebut di antaranya Static NAT , Dynamic NAT, dan satu lagi TCP Load Balancing.

Static NAT Configuration

Topologi Static NAT
router#configure terminal
router(config)#ip nat inside source static local-ip global-ip [overload]
router(config)#interface interface-id
router(config-if)#ip nat inside
router(config-if)#interface interface-id
router(config-if)#ip nat outside
router(config-if)#end

Simpan pengaturan pada NVRAM

router#copy run start

Untuk melihat tabel NAT bisa menggunakan perintah berikut :

router#show ip nat translation

Dynamic NAT Configuration

Topologi Dynamic NAT
router#configure terminal
router(config)#ip nat pool pool-name start-ip end-ip {netmask netmask | prefix-length prefix-length}
router(config)#access-list -number permit source [source-wildcard]
router(config)#ip nat inside source list access-list-number pool pool-name [overload]
router(config)#interface interface-id
router(config-if)#ip nat inside
router(config-if)#interface interface-id
router(config-if)#ip nat outside
router(config-if)#end

Simpan pengaturan pada NVRAM

router#copy run start

Untuk melihat tabel NAT bisa menggunakan perintah berikut :

router#show ip nat translation

TCP Load Balancing Configuration

Topologi TCP Load Balancing Configuration
router#configure terminal
router(config)#ip nat pool pool-name start-ip end-ip {netmask netmask | prefix-length prefix-length} type rotary
router(config)#access-list access-list-number permit source [source-wildcard]
router(config)#ip nat inside destination-list access-list-number pool pool-name
router(config)#interface interface-id
router(config-if)#ip nat inside
router(config-if)#interface interface-id
router(config-if)#ip nat outside
router(config-if)#end


Simpan pengaturan pada NVRAM

router#copy run start