networking:cisco:overload-nat

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
networking:cisco:overload-nat [2026/02/05 00:10] – [Topologi] ilyasanetworking:cisco:overload-nat [2026/02/05 00:14] (current) – [Testing] ilyasa
Line 41: Line 41:
 {{ :networking:cisco:cisco_pat.png?nolink |}} {{ :networking:cisco:cisco_pat.png?nolink |}}
 **Tujuan** : Buat Jaringan LAN dapat untuk mengakses internet **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
 +   network 192.168.1.0 255.255.255.0
 +   default-router 192.168.1.1
 +   dns-server 8.8.8.8
 +!
 +!
 +interface FastEthernet0/0
 + ip address dhcp
 + no shutdown
 +!
 +interface FastEthernet0/1
 + ip address 192.168.1.1 255.255.255.0
 + no shutdown
 +!
 +</code>
 +* **R1: IP Dari ISP**
 +<code js>
 +R1#show ip interface brief
 +Interface                  IP-Address      OK? Method Status                Prot                         ocol
 +FastEthernet0/           192.168.2.38    YES DHCP   up                    up                
 +FastEthernet0/           192.168.1.1     YES manual up                    up  
 +</code>
 +</hidden>
 ===== Konfigurasi ===== ===== Konfigurasi =====
-  * **Step 1 : Pembuatan VLANs** 
-<code> 
-Switch(config)#vlan 10 
-Switch(config-vlan)#name BIRU 
-Switch(config-vlan)#exit 
  
-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
 </code> </code>
-  * **Step 2 : Assign VLANs ke Ports** 
-<code> 
-Switch(config)#interface f0/1 
-Switch(config-if)#switchport mode access  
-Switch(config-if)#switchport access vlan 10 
-Switch(config-if)#exit 
  
-Switch(config)#interface f0/2 +  * **R1 : Membuat ACL untuk range ip internal** 
-Switch(config-if)#switchport mode access  + 
-Switch(config-if)#switchport access vlan 10 +<code js> 
-Switch(config-if)#exit+R1(config)#access-list 1 permit 192.168.1.0 0.0.0.255
 </code> </code>
  
 +  * **R1 : Mempetakan ip pool yang telah dibuat ke ip private dgn dynamic nat**
 +
 +<code js>
 +R1(config)#ip nat inside source list 1 interface  overload
 +</code>
 +
 +  * **R1 : Apabila belum terseting automatis, Untuk memastikan dapat terhubung ke internet setinglah default gateaway**
 +
 +<code js>
 +R1(config)#ip route 0.0.0.0 0.0.0.0 fastEthernet 0/0
 +</code>
 ===== Testing ===== ===== Testing =====
 +  * **PC1: Akses Internet**
 +{{ :networking:cisco:cisco_pat-test1.png?nolink |}}
 +  * **PC2: Akses Internet**
 +{{ :networking:cisco:cisco_pat-test2.png?nolink |}}
  • networking/cisco/overload-nat.1770225008.txt.gz
  • Last modified: 2026/02/05 00:10
  • by ilyasa