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:04] – [Topologi] ilyasanetworking:cisco:stp [2026/02/04 00:23] (current) – [Testing] ilyasa
Line 43: Line 43:
     * Designated Port [D]     * Designated Port [D]
     * Alternate Port [A]     * Alternate Port [A]
-===== Konfigurasi ===== + 
-  * **Step 1 : Pembuatan VLANs**+<hidden Proses Pencarian> 
 +  * **SW1**
 <code> <code>
-Switch(config)#vlan 10 +SW1#show spanning-tree  
-Switch(config-vlan)#name BIRU +VLAN0001 
-Switch(config-vlan)#exit+  Spanning tree enabled protocol ieee 
 +  Root ID    Priority    32769 
 +             Address     5010.df00.4500 
 +             Cost        4 
 +             Port        3 (GigabitEthernet0/2
 +             Hello Time   2 sec  Max Age 20 sec  Forward Delay 15 sec
  
-Switch(config)#vlan 20 +  Bridge ID  Priority    32769  (priority 32768 sys-id-ext 1) 
-Switch(config-vlan)#name MAGENTA +             Address     5029.fd00.4400 
-Switch(config-vlan)#exit+             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               Desg FWD 4         128.1    P2p  
 +Gi0/1               Desg FWD 4         128.2    P2p  
 +Gi0/2               Root FWD 4         128.3    P2p  
 +Gi0/3               Desg FWD 4         128.4    P2p 
 </code> </code>
-  * **Step 2 : Assign VLANs ke Ports**+  * **SW2**
 <code> <code>
-Switch(config)#interface f0/1 +SW2#show spanning-tree  
-Switch(config-if)#switchport mode access  +VLAN0001 
-Switch(config-if)#switchport access vlan 10 +  Spanning tree enabled protocol ieee 
-Switch(config-if)#exit+  Root ID    Priority    32769 
 +             Address     5010.df00.4500 
 +             Cost        4 
 +             Port        3 (GigabitEthernet0/2
 +             Hello Time   2 sec  Max Age 20 sec  Forward Delay 15 sec
  
-Switch(config)#interface f0/+  Bridge ID  Priority    32769  (priority 32768 sys-id-ext 1) 
-Switch(config-if)#switchport mode access  +             Address     50fc.1600.4700 
-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               Altn BLK 4         128.1    P2p  
 +Gi0/1               Desg FWD 4         128.2    P2p  
 +Gi0/2               Root FWD 4         128.3    P2p  
 +Gi0/3               Desg FWD 4         128.4    P2p 
 </code> </code>
 +  * **SW3**
 +<code>
 +SW3#show spanning-tree 
 +VLAN0001
 +  Spanning tree enabled protocol ieee
 +  Root ID    Priority    32769
 +             Address     5010.df00.4500
 +             Cost        8
 +             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 ieee
 +  Root ID    Priority    32769
 +             Address     5010.df00.4500
 +             This bridge is the root
 +             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               Desg FWD 4         128.1    P2p 
 +Gi0/1               Desg FWD 4         128.2    P2p 
 +</code>
 +  * **SW5**
 +<code>
 +SW5#show spanning-tree 
 +
 +VLAN0001
 +  Spanning tree enabled protocol ieee
 +  Root ID    Priority    32769
 +             Address     5010.df00.4500
 +             Cost        8
 +             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_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 =====
 +  * **SW1**
 +<code>
 +SW1(config)#spanning-tree vlan 1 root primary 
 +SW1(config)#spanning-tree mode rapid-pvst
 +</code>
 +
 +  * **SW2**
 +<code>
 +SW2(config)#spanning-tree vlan 1 root secondary 
 +SW2(config)#spanning-tree mode rapid-pvst
 +</code>
 +
 +  * **SW3**
 +<code>
 +SW3(config)#spanning-tree mode rapid-pvst
 +</code>
 +  * **SW4**
 +<code>
 +SW4(config)#spanning-tree mode rapid-pvst
 +</code>
 +  * **SW5**
 +<code>
 +SW5(config)#spanning-tree mode rapid-pvst
 +</code>
 ===== Testing ===== ===== 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
 +
 +  Bridge ID  Priority    24577  (priority 24576 sys-id-ext 1)
 +             Address     5029.fd00.4400
 +             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               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>
 +  * **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 |}}
 +
  • networking/cisco/stp.1770138263.txt.gz
  • Last modified: 2026/02/04 00:04
  • by ilyasa