Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| networking:cisco:overload-nat [2026/02/04 14:54] – created ilyasa | networking:cisco:overload-nat [2026/02/05 00:14] (current) – [Testing] ilyasa | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| {{indexmenu_n> | {{indexmenu_n> | ||
| - | ====== Cisco : PAT/ NAT Overload | + | ====== Cisco : PAT/ NAT Overload ====== |
| - | Desciption | + | PAT (Port Address Translation) |
| ===== Syntax ===== | ===== Syntax ===== | ||
| - | ==== Some acction | + | Untuk konfigurasi NAT overload ada terdapat 2 cara yaitu dengan 1 ip interface atau dengan pool ip (lebih dari 1 public). |
| - | ^ Command ^ Description ^ | + | |
| - | | '' | + | ==== Membuat access list untuk jaringan internal |
| - | | '' | + | |
| - | Contoh: | + | <code js> |
| + | access-list [acl_number] permit [source-ip] [wildcard-mask] | ||
| + | </ | ||
| + | |||
| + | ==== Definisikan pool (Apa bila anda mempunyai lebih dari 1 ip public) ==== | ||
| + | |||
| + | <code js> | ||
| + | ip nat inside source list [access-list-number] interface [outside-interface] overload | ||
| + | </ | ||
| + | |||
| + | ==== Konfigurasi NAT Overload pada interface ==== | ||
| + | |||
| + | <code js> | ||
| + | ip nat inside source list [access-list-number] interface | ||
| + | </ | ||
| + | |||
| + | ==== Konfigurasi NAT Overload dengan NAT pool ==== | ||
| + | |||
| + | <code js> | ||
| + | ip nat inside source list [access-list-number] pool [pool-name] overload | ||
| + | </ | ||
| + | |||
| + | Masih sama dengan NAT lainya anda harus menentukan interface inside dan outsite terlebih dahulu dengan: | ||
| < | < | ||
| - | vlan 10 | + | interface [interface] |
| - | name VLAN-10 | + | ip nat inside |
| - | vlan 20 | + | interface [interface] |
| - | name VLAN-20 | + | ip nat outside |
| - | vlan 99 | + | |
| - | name VLAN-Management | + | |
| </ | </ | ||
| ===== Topologi ===== | ===== Topologi ===== | ||
| - | Gambar topology | + | {{ : |
| - | Goals Topology | + | **Tujuan** : Buat Jaringan LAN dapat untuk mengakses internet |
| + | |||
| + | <hidden Proconfig> | ||
| + | * **R1: Preconfig** | ||
| + | <code js> | ||
| + | hostname R1 | ||
| + | ! | ||
| + | ip dhcp excluded-address 192.168.1.1 | ||
| + | ! | ||
| + | ip dhcp pool LAN | ||
| + | | ||
| + | | ||
| + | | ||
| + | ! | ||
| + | ! | ||
| + | interface FastEthernet0/ | ||
| + | ip address dhcp | ||
| + | no shutdown | ||
| + | ! | ||
| + | interface FastEthernet0/ | ||
| + | ip address 192.168.1.1 255.255.255.0 | ||
| + | no shutdown | ||
| + | ! | ||
| + | </ | ||
| + | * **R1: IP Dari ISP** | ||
| + | <code js> | ||
| + | R1#show ip interface brief | ||
| + | Interface | ||
| + | FastEthernet0/ | ||
| + | FastEthernet0/ | ||
| + | </ | ||
| + | </ | ||
| ===== Konfigurasi ===== | ===== Konfigurasi ===== | ||
| - | * **Step 1 : Pembuatan VLANs** | ||
| - | < | ||
| - | Switch(config)# | ||
| - | Switch(config-vlan)# | ||
| - | Switch(config-vlan)# | ||
| - | Switch(config)#vlan 20 | + | * **R1 : Tentukan Interface inside dan outsite** |
| - | Switch(config-vlan)#name MAGENTA | + | |
| - | Switch(config-vlan)#exit | + | <code js> |
| + | R1(config)#interface fastEthernet 0/0 | ||
| + | R1(config-if)#ip nat outside | ||
| + | R1(config)#interface fastEthernet 0/1 | ||
| + | R1(config-if)#ip nat inside | ||
| </ | </ | ||
| - | * **Step 2 : Assign VLANs ke Ports** | ||
| - | < | ||
| - | Switch(config)# | ||
| - | Switch(config-if)# | ||
| - | Switch(config-if)# | ||
| - | Switch(config-if)# | ||
| - | Switch(config)# | + | * **R1 : Membuat ACL untuk range ip internal** |
| - | Switch(config-if)# | + | |
| - | Switch(config-if)#switchport | + | <code js> |
| - | Switch(config-if)#exit | + | R1(config)# |
| </ | </ | ||
| + | * **R1 : Mempetakan ip pool yang telah dibuat ke ip private dgn dynamic nat** | ||
| + | |||
| + | <code js> | ||
| + | R1(config)# | ||
| + | </ | ||
| + | |||
| + | * **R1 : Apabila belum terseting automatis, Untuk memastikan dapat terhubung ke internet setinglah default gateaway** | ||
| + | |||
| + | <code js> | ||
| + | R1(config)# | ||
| + | </ | ||
| ===== Testing ===== | ===== Testing ===== | ||
| + | * **PC1: Akses Internet** | ||
| + | {{ : | ||
| + | * **PC2: Akses Internet** | ||
| + | {{ : | ||