Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| networking:cisco:trunk [2026/02/02 23:15] – [Topologi] ilyasa | networking:cisco:trunk [2026/02/02 23:28] (current) – [Testing] ilyasa | ||
|---|---|---|---|
| Line 24: | Line 24: | ||
| {{ : | {{ : | ||
| Pada toplogy terdapat 2 jaringan yang berbeda yaitu BIRU : '' | Pada toplogy terdapat 2 jaringan yang berbeda yaitu BIRU : '' | ||
| + | * VLAN 10 - PC1, | ||
| + | * VLAN 20 - PC3, | ||
| ===== Konfigurasi ===== | ===== Konfigurasi ===== | ||
| - | | + | ===== Konfigurasi |
| + | | ||
| < | < | ||
| - | Switch(config)# | + | SW1(config)# |
| - | Switch(config-vlan)# | + | SW1(config-vlan)# |
| - | Switch(config-vlan)# | + | SW1(config-vlan)# |
| + | SW1(config)# | ||
| + | SW1(config-vlan)# | ||
| + | SW1(config-vlan)# | ||
| + | </ | ||
| + | < | ||
| + | SW2(config)# | ||
| + | SW2(config-vlan)# | ||
| + | SW2(config-vlan)# | ||
| + | SW2(config)# | ||
| + | SW2(config-vlan)# | ||
| + | SW2(config-vlan)# | ||
| + | </ | ||
| - | Switch(config)#vlan 20 | + | * **Step 2 : Mengatur ports sesuai VLAN.** |
| - | Switch(config-vlan)#name MAGENTA | + | < |
| - | Switch(config-vlan)# | + | SW1(config)#interface range f0/1-2 |
| + | SW1(config-if-range)#switchport mode access | ||
| + | SW1(config-if-range)# | ||
| + | SW1(config)#interface range f0/3-4 | ||
| + | SW1(config-if-range)# | ||
| + | SW1(config-if-range)# | ||
| </ | </ | ||
| - | * **Step 2 : Assign VLANs ke Ports** | ||
| < | < | ||
| - | Switch(config)# | + | SW2(config)# |
| - | Switch(config-if)# | + | SW2(config-if-range)# |
| - | Switch(config-if)# | + | SW2(config-if-range)# |
| - | Switch(config-if)# | + | SW2(config-if-range)#exit |
| + | SW2(config)# | ||
| + | SW2(config-if-range)# | ||
| + | SW2(config-if-range)# | ||
| + | </ | ||
| - | Switch(config)# | + | ===== Konfigurasi |
| - | Switch(config-if)# | + | * **Step 1 : Mengatur trunk pada sisi SW1.** |
| - | Switch(config-if)# | + | |
| - | Switch(config-if)# | + | < |
| + | SW1(config)# | ||
| + | SW1(config-if)# | ||
| + | SW1(config-if)# | ||
| + | Port Mode | ||
| + | Gig0/ | ||
| + | |||
| + | Port Vlans allowed on trunk | ||
| + | Gig0/ | ||
| + | |||
| + | Port Vlans allowed and active in management domain | ||
| + | Gig0/ | ||
| + | |||
| + | Port Vlans in spanning tree forwarding state and not pruned | ||
| + | Gig0/ | ||
| + | |||
| + | SW1(config-if)# | ||
| + | SW1(config-if)# | ||
| + | Port Mode | ||
| + | Gig0/ | ||
| + | |||
| + | Port Vlans allowed on trunk | ||
| + | Gig0/ | ||
| + | |||
| + | Port Vlans allowed and active in management domain | ||
| + | Gig0/ | ||
| + | |||
| + | Port Vlans in spanning tree forwarding state and not pruned | ||
| + | Gig0/ | ||
| + | |||
| + | SW1(config-if)# | ||
| + | </ | ||
| + | |||
| + | * **Step 2 : Mengatur trunk pada sisi SW2.** | ||
| + | |||
| + | < | ||
| + | SW2(config)# | ||
| + | SW2(config-if)# | ||
| + | SW2(config-if)# | ||
| + | SW2(config-if)# | ||
| </ | </ | ||
| ===== Testing ===== | ===== Testing ===== | ||
| + | * **PC1 -> PC6,PC8** | ||
| + | < | ||
| + | C:\>ping 192.168.1.4 | ||
| + | |||
| + | Pinging 192.168.1.4 with 32 bytes of data: | ||
| + | |||
| + | Reply from 192.168.1.4: | ||
| + | Reply from 192.168.1.4: | ||
| + | Reply from 192.168.1.4: | ||
| + | Reply from 192.168.1.4: | ||
| + | |||
| + | Ping statistics for 192.168.1.4: | ||
| + | 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.2.4 | ||
| + | |||
| + | Pinging 192.168.2.4 with 32 bytes of data: | ||
| + | |||
| + | Request timed out. | ||
| + | Request timed out. | ||
| + | Request timed out. | ||
| + | Request timed out. | ||
| + | |||
| + | Ping statistics for 192.168.2.4: | ||
| + | Packets: Sent = 4, Received = 0, Lost = 4 (100% loss), | ||
| + | </ | ||
| + | * **PC3 -> PC6,PC8** | ||
| + | < | ||
| + | C:\>ping 192.168.1.4 | ||
| + | |||
| + | Pinging 192.168.1.4 with 32 bytes of data: | ||
| + | |||
| + | Request timed out. | ||
| + | Request timed out. | ||
| + | Request timed out. | ||
| + | Request timed out. | ||
| + | |||
| + | Ping statistics for 192.168.1.4: | ||
| + | Packets: Sent = 4, Received = 0, Lost = 4 (100% loss), | ||
| + | |||
| + | C:\>ping 192.168.2.4 | ||
| + | |||
| + | Pinging 192.168.2.4 with 32 bytes of data: | ||
| + | |||
| + | Reply from 192.168.2.4: | ||
| + | Reply from 192.168.2.4: | ||
| + | Reply from 192.168.2.4: | ||
| + | Reply from 192.168.2.4: | ||
| + | |||
| + | Ping statistics for 192.168.2.4: | ||
| + | Packets: Sent = 4, Received = 4, Lost = 0 (0% loss), | ||
| + | Approximate round trip times in milli-seconds: | ||
| + | Minimum = 0ms, Maximum = 0ms, Average = 0ms | ||
| + | </ | ||