Switching Lab 5 : STP Features : Portfast

Switching Lab 5 : STP Features : Portfast

  • 17 September 2021
  • Network
  • Ditulis oleh Ajriya Muhammad Arkan
  • 110 Views

Switching Lab 5 : STP Features : Portfast

 







 LAB 5

Masih menggunakan topology yang sama dengan LAB 4. Portfast ini berfungsi ketika pc/router dicolok ke port switch langsung aktif/hijau portnya tanpa menunggu waktu 50 detik (blocking-listening-learning-forwarding).

Untuk pengetesannya yaitu sederhana adalah colokkan PC ke switch yang belum diset portfast dan yang sudah diset portfast. By default switch akan melalui prosses listening -> learning seperti berikut ini.

SW1

SW-1#debug spanning-tree events 
SW-1(config)#int e0/0 
SW-1(config-if)#shutdown 
*Des 9 12:05:41.821: %LINK-5-CHANGED: Interface Ethernet0/0, changed 
state to administratively down 
SW-1(config-if)#no shutdown 
*Des 9 12:05:48.316: STP: VLAN0010 Et0/0 -> listening 
*Des 9 12:06:03.317: STP: VLAN0010 Et0/0 -> learning 
*Des 9 12:06:26.431: STP: VLAN0010 Et0/0 -> forwarding 

 Konfigurasikan portfast pada SW-1

SW1

SW-1(config)#int e0/0 
SW-1(config-if)#spanning-tree portfast

Verifikasi 

SW1

SW-1#show spanning-tree int e0/0 detail 
Port 1 (Ethernet0/0) of VLAN0010 is designated forwarding 
 Port path cost 100, Port priority 128, Port Identifier 128.1. 
 Designated root has priority 32778, address aabb.cc00.0200 
 Designated bridge has priority 32778, address aabb.cc00.0200 
 Designated port id is 128.1, designated path cost 0  
Timers: message age 0, forward delay 0, hold 2 
 Number of transitions to forwarding state: 1 
 The port is in the portfast edge mode 
 Link type is point-to-point by default 
 BPDU: sent 1065, received 0 

BPDU masih tetap dikirimkan pada link Portfast. Pengetesannya, jalankan debug kemudian lepas kabel atau shut, no shut.

SW1

SW-1#debug spanning-tree events Spanning Tree 
event debugging is on 

SW-1(config)#int e0/0 

SW-1(config-if)#shutdown 
SW-1(config-if)# 
*Des 9 12:00:42.509: STP: VLAN0010 we are the spanning tree 
root SW-1(config-if)# 
*Des 9 12:00:44.514: %LINK-5-CHANGED: Interface Ethernet0/0, changed state 
to administratively down 
*Des 9 12:00:45.520: %LINEPROTO-5-UPDOWN: Line protocol on Interface 
Ethernet0/0, changed state to down 
SW-1(config-if)#no shutdown 
SW-1(config-if)#exit 
*Des 9 12:00:51.687: STP: VLAN0010 Et0/0 ->jump to forwarding fromblocking 


  • Tags:
  • -
  • Share: