Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| networking:cisco:overload-nat [2026/02/05 00:09] – [Some acction] ilyasa | networking:cisco:overload-nat [2026/02/05 00:14] (current) – [Testing] ilyasa | ||
|---|---|---|---|
| Line 39: | Line 39: | ||
| ===== 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** | ||
| + | {{ : | ||