STP PORTFAST - SWITCHTECH #5
STP PORTFAST - SWITCHTECH
Perhatikan topologi berikut ini,
Masih menggunakan topology yang sama. 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.
SW-1
SW-1#debug spanning-tree events
SW-1(config)#int e0/0
SW-1(config-if)#shutdown
*Feb 1 12:05:41.821: %LINK-5-CHANGED: Interface Ethernet0/0, changed state to administratively down
SW-1(config-if)#no shutdown
*Feb 1 12:05:48.316: STP: VLAN0010 Et0/0 -> listening
*Feb 1 12:06:03.317: STP: VLAN0010 Et0/0 -> learning
*Feb 1 12:06:26.431: STP: VLAN0010 Et0/0 -> forwarding
Konfigurasikan portfast pada SW-1
SW-1
SW-1(config)#int e0/0
SW-1(config-if)#spanning-tree portfast
Verifikasi SW-1
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.
SW-1
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)#
*Feb 1 12:00:42.509: STP: VLAN0010 we are the spanning tree root
SW-1(config-if)#
*Feb 1 12:00:44.514: %LINK-5-CHANGED: Interface Ethernet0/0, changed state to administratively down
*Feb 1 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 *Feb 1 12:00:51.687: STP: VLAN0010 Et0/0 -->jump to forwarding from blocking
Perhatikan pada lampu portnya tidak ada lagi lampu oranye, melainkan langsung hijau.
Komentar
Posting Komentar