Topics Covered
Command |
Purpose |
console# configure |
Enters configuration level on the switch |
console(config)# spanning-tree mode RSTP |
Enables spanning-tree mode RSTP globally on the switch. |
console(config)# no spanning-tree mode |
Disables spanning-tree globally on the switch |
Command |
Purpose |
console# configure |
Enter configuration level on the switch. |
console(config)# spanning-tree priority 4096 |
Set switch global spanning-tree priority. Range <0 - 61440>. (in steps of 4096) |
It is recommended to configure any edge ports, ports that go to end devices such as printers, phones, servers, workstations, to be set up as Portfast. A port in Portfast will move directly to forwarding state when the link comes up without going through listening or learning states.
Command |
Purpose |
console# configure |
Enters configuration level on the switch |
console(config)# interface te 1/0/1 |
Enter the specific physical port interface. |
console(config)# spanning-tree portfast |
Enables portfast on the interface. |
console# show spanning-tree
Spanning tree :Enabled - BPDU Flooding :Disabled - Portfast BPDU filtering :Disabled - mode :rstp
CST Regional Root: 80:00:D0:67:E5:A5:7F:C5
Regional Root Path Cost: 0
ROOT ID
Priority 32768
Address D067.E5A5.7FC5
This Switch is the Root.
Hello Time 2 Sec Max Age 20 sec Forward Delay 15 sec TxHoldCount 6 sec
console# show running-config interface tengigabitethernet 1/0/1
spanning-tree portfast