Konfigurasi NAT Cisco Router: Perbedaan antara revisi

Dari Catatan Pak Samsul
Loncat ke navigasi Loncat ke pencarian
kTidak ada ringkasan suntingan
Baris 5: Baris 5:
===Static NAT Configuration===
===Static NAT Configuration===
  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]'''
  router(config)#interface interface-id
  router(config)#interface '''interface-id'''
  router(config-if)#ip nat inside
  router(config-if)#ip nat inside
  router(config-if)#interface interface-id
  router(config-if)#interface '''interface-id'''
  router(config-if)#ip nat outside
  router(config-if)#ip nat outside
  router(config-if)#end
  router(config-if)#end
Baris 15: Baris 15:
===Dynamic NAT Configuration===
===Dynamic NAT Configuration===
  router#configure terminal
  router#configure terminal
  router(config)#ip nat pool pool-name start-ip end-ip {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 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'''
  router(config-if)#ip nat inside
  router(config-if)#ip nat inside
  router(config-if)#interface interface-id
  router(config-if)#interface '''interface-id'''
  router(config-if)#ip nat outside
  router(config-if)#ip nat outside
  router(config-if)#end
  router(config-if)#end
Baris 27: Baris 27:
===TCP Load Balancing Configuration===
===TCP Load Balancing Configuration===
  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'''
  router(config)#access-list access-list-number permit source [source-wildcard]
  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)#ip nat inside destination-list access-list-number pool p'''ool-name'''
  router(config)#interface interface-id
  router(config)#interface '''interface-id'''
  router(config-if)#ip nat inside
  router(config-if)#ip nat inside
  router(config-if)#interface interface-id
  router(config-if)#interface i'''nterface-id'''
  router(config-if)#ip nat outside
  router(config-if)#ip nat outside
  router(config-if)#end
  router(config-if)#end

Revisi per 27 Agustus 2023 14.53


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

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
Topologi Static NAT

Dynamic NAT Configuration

router#configure terminal
router(config)#ip nat pool pool-name start-ip end-ip {netmask netmask | prefix-length prefix-length}
router(config)#access-list 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
Topologo Dynamic NAT

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
Topologi TCP Load Balancing Configuration