Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| networking:cisco:vlan [2026/02/02 12:58] – [Syntax] ilyasa | networking:cisco:vlan [2026/02/02 23:16] (current) – [Topologi] ilyasa | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | |||
| {{indexmenu_n> | {{indexmenu_n> | ||
| ====== Cisco : VLAN ====== | ====== Cisco : VLAN ====== | ||
| VLAN (Virtual Local Area Network) adalah sebuah metode untuk membagi satu jaringan komputer fisik menjadi beberapa jaringan virtual yang terpisah. Hal ini memungkinkan Anda untuk mengelompokkan komputer berdasarkan fungsi, departemen, atau proyek—tanpa harus mengubah kabel fisik yang sudah ada. | VLAN (Virtual Local Area Network) adalah sebuah metode untuk membagi satu jaringan komputer fisik menjadi beberapa jaringan virtual yang terpisah. Hal ini memungkinkan Anda untuk mengelompokkan komputer berdasarkan fungsi, departemen, atau proyek—tanpa harus mengubah kabel fisik yang sudah ada. | ||
| - | ==== Syntax ==== | + | ===== Syntax |
| - | === Membuat VLAN === | + | ==== Membuat VLAN ==== |
| ^ Command ^ Description ^ | ^ Command ^ Description ^ | ||
| | '' | | '' | ||
| Line 17: | Line 16: | ||
| name VLAN-Management | name VLAN-Management | ||
| </ | </ | ||
| - | === Assigning VLAN ke Interfaces === | + | ==== Assigning VLAN ke Interfaces |
| Setelah VLAN dibuat, port switch dapat ditetapkan ke VLAN tertentu. | Setelah VLAN dibuat, port switch dapat ditetapkan ke VLAN tertentu. | ||
| Line 37: | Line 36: | ||
| </ | </ | ||
| - | === Menghapus VLAN === | + | ==== Menghapus VLAN ==== |
| ^ Command ^ Description ^ | ^ Command ^ Description ^ | ||
| | '' | | '' | ||
| | '' | | '' | ||
| - | === Menghapus VLAN dari Interface=== | + | ==== Menghapus VLAN dari Interface |
| ^ Command ^ Description ^ | ^ Command ^ Description ^ | ||
| | '' | | '' | ||
| Line 50: | Line 49: | ||
| - | ==== Topologi ==== | + | ===== Topologi ===== |
| + | {{ : | ||
| + | " | ||
| + | Goalsnya adalah untuk memisahkan Devices sesuai VLAN pada topology | ||
| + | * VLAN 10 - PC1,PC2 | ||
| + | * VLAN 20 - PC3,PC4 | ||
| + | ===== Konfigurasi ===== | ||
| + | * **Step 1 : Pembuatan VLANs** | ||
| + | < | ||
| + | Switch(config)# | ||
| + | Switch(config-vlan)# | ||
| + | Switch(config-vlan)# | ||
| - | ==== Konfigurasi ==== | + | Switch(config)# |
| + | Switch(config-vlan)# | ||
| + | Switch(config-vlan)# | ||
| + | </ | ||
| + | * **Step 2 : Assign VLANs ke Ports** | ||
| + | < | ||
| + | Switch(config)# | ||
| + | Switch(config-if)# | ||
| + | Switch(config-if)# | ||
| + | Switch(config-if)# | ||
| - | === Router C2691 === | + | Switch(config)# |
| + | Switch(config-if)# | ||
| + | Switch(config-if)# | ||
| + | Switch(config-if)# | ||
| + | </ | ||
| + | Dapat dapat juga menggukan '' | ||
| + | < | ||
| + | Switch(config)# | ||
| + | Switch(config-if-range)# | ||
| + | Switch(config-if-range)# | ||
| + | </ | ||
| + | * **Step 3 : Check VLAN Summary** | ||
| + | < | ||
| + | Switch#show vlan brief | ||
| + | </ | ||
| + | Sample Output: | ||
| + | < | ||
| + | VLAN Name | ||
| + | ---- -------------------------------- --------- ------------------------------- | ||
| + | 1 default | ||
| + | 10 | ||
| + | 20 | ||
| + | 1002 fddi-default | ||
| + | 1003 token-ring-default | ||
| + | 1004 fddinet-default | ||
| + | 1005 trnet-default | ||
| + | </ | ||
| - | < | + | ===== Testing ===== |
| - | // Masuk Global Configration mode | + | |
| - | C2691> enable | + | |
| - | C2691# configure terminal | + | |
| - | C2691(config)# | + | |
| - | //setup ip interface gateaway | + | |
| - | C2691(config)# | + | |
| - | C2691(config-if)# | + | |
| - | // Setup DHCP Server | ||
| - | C2691(config-if)# | ||
| - | C2691(dhcp-config)# | ||
| - | C2691(dhcp-config)# | ||
| - | C2691(dhcp-config)# | ||
| - | C2691(config)# | ||
| - | </ | ||
| - | === PCs === | + | * **PC1 -> PC2, |
| + | < | ||
| + | C:\>ping 192.168.0.2 | ||
| - | < | + | Pinging |
| - | // PC1 | + | |
| - | PC1> ip dhcp | + | |
| - | DDORA IP 192.168.0.101/24 GW 192.168.0.1 | + | |
| - | // PC2 | + | |
| - | PC2> ip dhcp | + | Reply from 192.168.0.2: |
| - | DORA IP 192.168.0.102/24 GW 192.168.0.1 | + | Reply from 192.168.0.2: |
| - | // PC3 | + | Reply from 192.168.0.2: |
| - | PC3> ip dhcp | + | Reply from 192.168.0.2: |
| - | DORA IP 192.168.0.103/24 GW 192.168.0.1 | + | |
| + | Ping statistics for 192.168.0.2: | ||
| + | Packets: Sent = 4, Received = 4, Lost = 0 (0% loss), | ||
| + | Approximate round trip times in milli-seconds: | ||
| + | Minimum = 0ms, Maximum = 0ms, Average = 0ms | ||
| + | |||
| + | C:\>ping 192.168.0.3 | ||
| + | |||
| + | Pinging | ||
| + | |||
| + | Request timed out. | ||
| + | Request timed out. | ||
| + | Request timed out. | ||
| + | Request timed out. | ||
| + | |||
| + | Ping statistics for 192.168.0.3: | ||
| + | | ||
| + | |||
| + | C:\>ping 192.168.0.4 | ||
| + | |||
| + | Pinging | ||
| + | |||
| + | Request timed out. | ||
| + | Request timed out. | ||
| + | Request timed out. | ||
| + | Request timed out. | ||
| + | |||
| + | Ping statistics for 192.168.0.4: | ||
| + | Packets: Sent = 4, Received = 0, Lost = 4 (100% loss), | ||
| </ | </ | ||
| - | ==== Cheatsheet ==== | + | * **PC3 > PC1, |
| - | < | + | < |
| - | ip dhcp excluded-address | + | C: |
| - | ip dhcp pool LAN | + | |
| - | | + | Pinging |
| - | | + | |
| - | exit | + | Request timed out. |
| + | Request timed out. | ||
| + | Request timed out. | ||
| + | Request timed out. | ||
| + | |||
| + | Ping statistics for 192.168.0.1: | ||
| + | Packets: Sent = 4, Received = 0, Lost = 4 (100% loss), | ||
| + | |||
| + | C:\>ping 192.168.0.2 | ||
| + | |||
| + | Pinging | ||
| + | |||
| + | Request timed out. | ||
| + | Request timed out. | ||
| + | Request timed out. | ||
| + | Request timed out. | ||
| + | |||
| + | Ping statistics for 192.168.0.2: | ||
| + | Packets: Sent = 4, Received = 0, Lost = 4 (100% loss), | ||
| + | |||
| + | C:\>ping 192.168.0.4 | ||
| + | |||
| + | Pinging 192.168.0.4 with 32 bytes of data: | ||
| + | |||
| + | Reply from 192.168.0.4: | ||
| + | Reply from 192.168.0.4: | ||
| + | Reply from 192.168.0.4: | ||
| + | Reply from 192.168.0.4: | ||
| + | |||
| + | Ping statistics for 192.168.0.4: | ||
| + | Packets: Sent = 4, Received = 4, Lost = 0 (0% loss), | ||
| + | Approximate round trip times in milli-seconds: | ||
| + | | ||
| </ | </ | ||
| + | |||