networking:cisco:stp

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:stp [2026/02/04 00:07] – [Topologi] ilyasanetworking:cisco:stp [2026/02/04 00:23] (current) – [Testing] ilyasa
Line 44: Line 44:
     * Alternate Port [A]     * Alternate Port [A]
  
 +<hidden Proses Pencarian>
   * **SW1**   * **SW1**
 <code> <code>
Line 154: Line 155:
 Gi0/1               Altn BLK 4         128.2    P2p  Gi0/1               Altn BLK 4         128.2    P2p 
 </code> </code>
 +</hidden>
 +{{ :networking:cisco:cisco_stp2.png?nolink |}}
 +
 +Untuk mendapatkan jalur switching yang efisien SW4 bukan root birdge yang benar. 
 +Maka perlu untuk dikonfigurasi sebagai berikut
 +  - Konfigurasi SW1 Menjadi Root Switch
 +  - Konfigurasi SW2 Menjadi Backup root
 +  - Aktifkan RSTP
 +  - Setelahnya, untuk memastikan lakukan mapping port lagi.
 ===== Konfigurasi ===== ===== Konfigurasi =====
-  * **Step 1 : Pembuatan VLANs**+  * **SW1**
 <code> <code>
-Switch(config)#vlan 10 +SW1(config)#spanning-tree vlan 1 root primary  
-Switch(config-vlan)#name BIRU +SW1(config)#spanning-tree mode rapid-pvst 
-Switch(config-vlan)#exit+</code>
  
-Switch(config)#vlan 20 +  * **SW2** 
-Switch(config-vlan)#name MAGENTA +<code> 
-Switch(config-vlan)#exit+SW2(config)#spanning-tree vlan 1 root secondary  
 +SW2(config)#spanning-tree mode rapid-pvst
 </code> </code>
-  * **Step 2 : Assign VLANs ke Ports**+ 
 +  * **SW3**
 <code> <code>
-Switch(config)#interface f0/1 +SW3(config)#spanning-tree mode rapid-pvst 
-Switch(config-if)#switchport mode access  +</code> 
-Switch(config-if)#switchport access vlan 10 +  * **SW4** 
-Switch(config-if)#exit+<code> 
 +SW4(config)#spanning-tree mode rapid-pvst 
 +</code> 
 +  * **SW5** 
 +<code> 
 +SW5(config)#spanning-tree mode rapid-pvst 
 +</code> 
 +===== Testing ===== 
 +<hidden Hasil Configurasi> 
 +  * **SW1** 
 +<code> 
 +SW1#show spanning-tree 
 +VLAN0001 
 +  Spanning tree enabled protocol rstp 
 +  Root ID    Priority    24577 
 +             Address     5029.fd00.4400 
 +             This bridge is the root 
 +             Hello Time   2 sec  Max Age 20 sec  Forward Delay 15 sec
  
-Switch(config)#interface f0/+  Bridge ID  Priority    24577  (priority 24576 sys-id-ext 1) 
-Switch(config-if)#switchport mode access  +             Address     5029.fd00.4400 
-Switch(config-if)#switchport access vlan 10 +             Hello Time   sec  Max Age 20 sec  Forward Delay 15 sec 
-Switch(config-if)#exit+             Aging Time  300 sec 
 + 
 +Interface           Role Sts Cost      Prio.Nbr Type 
 +------------------- ---- --- --------- -------- -------------------------------- 
 +Gi0/0               Desg FWD 4         128.1    P2p 
 +Gi0/1               Desg FWD 4         128.2    P2p 
 +Gi0/2               Desg FWD 4         128.3    P2p 
 +Gi0/3               Desg FWD 4         128.4    P2p
 </code> </code>
 +  * **SW2**
 +<code>
 +SW2#show spanning-tree
 +VLAN0001
 +  Spanning tree enabled protocol rstp
 +  Root ID    Priority    24577
 +             Address     5029.fd00.4400
 +             Cost        4
 +             Port        1 (GigabitEthernet0/0)
 +             Hello Time   2 sec  Max Age 20 sec  Forward Delay 15 sec
 +
 +  Bridge ID  Priority    28673  (priority 28672 sys-id-ext 1)
 +             Address     50fc.1600.4700
 +             Hello Time   2 sec  Max Age 20 sec  Forward Delay 15 sec
 +             Aging Time  15  sec
 +
 +Interface           Role Sts Cost      Prio.Nbr Type
 +------------------- ---- --- --------- -------- --------------------------------
 +Gi0/0               Root FWD 4         128.1    P2p
 +Gi0/1               Desg FWD 4         128.2    P2p
 +Gi0/2               Desg FWD 4         128.3    P2p
 +Gi0/3               Desg FWD 4         128.4    P2p
 +</code>
 +  * **SW3**
 +<code>
 +SW3#show spanning-tree
 +VLAN0001
 +  Spanning tree enabled protocol rstp
 +  Root ID    Priority    24577
 +             Address     5029.fd00.4400
 +             Cost        4
 +             Port        1 (GigabitEthernet0/0)
 +             Hello Time   2 sec  Max Age 20 sec  Forward Delay 15 sec
 +
 +  Bridge ID  Priority    32769  (priority 32768 sys-id-ext 1)
 +             Address     50b9.d400.4600
 +             Hello Time   2 sec  Max Age 20 sec  Forward Delay 15 sec
 +             Aging Time  300 sec
 +
 +Interface           Role Sts Cost      Prio.Nbr Type
 +------------------- ---- --- --------- -------- --------------------------------
 +Gi0/0               Root FWD 4         128.1    P2p
 +Gi0/1               Altn BLK 4         128.2    P2p
 +</code>
 +  * **SW4**
 +<code>
 +SW4#show spanning-tree
 +VLAN0001
 +  Spanning tree enabled protocol rstp
 +  Root ID    Priority    24577
 +             Address     5029.fd00.4400
 +             Cost        4
 +             Port        2 (GigabitEthernet0/1)
 +             Hello Time   2 sec  Max Age 20 sec  Forward Delay 15 sec
 +
 +  Bridge ID  Priority    32769  (priority 32768 sys-id-ext 1)
 +             Address     5010.df00.4500
 +             Hello Time   2 sec  Max Age 20 sec  Forward Delay 15 sec
 +             Aging Time  300 sec
 +
 +Interface           Role Sts Cost      Prio.Nbr Type
 +------------------- ---- --- --------- -------- --------------------------------
 +Gi0/0               Altn BLK 4         128.1    P2p
 +Gi0/1               Root FWD 4         128.2    P2p
 +</code>
 +  * **SW5**
 +<code>
 +SW5#show spanning-tree
 +VLAN0001
 +  Spanning tree enabled protocol rstp
 +  Root ID    Priority    24577
 +             Address     5029.fd00.4400
 +             Cost        4
 +             Port        1 (GigabitEthernet0/0)
 +             Hello Time   2 sec  Max Age 20 sec  Forward Delay 15 sec
 +
 +  Bridge ID  Priority    32769  (priority 32768 sys-id-ext 1)
 +             Address     5040.b700.4800
 +             Hello Time   2 sec  Max Age 20 sec  Forward Delay 15 sec
 +             Aging Time  300 sec
 +
 +Interface           Role Sts Cost      Prio.Nbr Type
 +------------------- ---- --- --------- -------- --------------------------------
 +Gi0/0               Root FWD 4         128.1    P2p
 +Gi0/1               Altn BLK 4         128.2    P2p
 +</code>
 +</hidden>
 +
 +{{ :networking:cisco:cisco_stp3.png?nolink |}}
  
-===== Testing ===== 
  • networking/cisco/stp.1770138435.txt.gz
  • Last modified: 2026/02/04 00:07
  • by ilyasa