Examples
Examples: Configuring PortFast Edge on a Specified Interface
This example shows how to enable edge behavior on GigabitEthernet interface 1/0/1:
Switch#
configure terminal
Switch(config)#
interface gigabitethernet1/0/1
Switch(config-if)#
spanning-tree portfast edge
Switch(config-if)#
end
Switch#
This example shows how to verify the configuration:
Switch#
show running-config interface gigabitethernet1/0/1
Building configuration...
Current configuration:
!
interface GigabitEthernet
1/0/1
no ip address
switchport
switchport access vlan 200
switchport mode access
spanning-tree portfast edge
end
This example shows how you can display that port GigabitEthernet 1/0/1 is currently in the edge state:
Switch#
show spanning-tree vlan 200
VLAN0200
Spanning tree enabled protocol rstp
Root ID Priority 2
Address 001b.2a68.5fc0
Cost 3
Port 125 (GigabitEthernet5/9)
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Bridge ID Priority 2 (priority 0 sys-id-ext 2)
Address 7010.5c9c.5200
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Aging Time 0 sec
Interface Role Sts Cost Prio.Nbr Type
------------------- ---- --- --------- -------- --------------------------------
Gi
1/0/1
Desg FWD 4 128.1 P2p Edge
Examples: Configuring a PortFast Network Port on a Specified Interface
This example shows how to configure GigabitEthernet interface 1/0/1 as a network port:
Switch#
configure terminal
Switch(config)#
interface gigabitethernet1/0/1
Switch(config-if)#
spanning-tree portfast network
Switch(config-if)#
end
Switch#
This example shows how to verify the configuration:
Switch#
show running-config interface gigabitethernet1/0/1
Building configuration...
Current configuration:
!
interface GigabitEthernet
1/0/1
no ip address
switchport
switchport access vlan 200
switchport mode access
Consolidated Platform Configuration Guide, Cisco IOS Release 15.2(4)E (Catalyst 2960-X Switches)
320
Examples
Summary of Contents for Catalyst 2960 Series
Page 96: ......
Page 196: ......
Page 250: ......
Page 292: ......
Page 488: ......
Page 589: ...P A R T VI Cisco Flexible NetFlow Configuring NetFlow Lite page 509 ...
Page 590: ......
Page 619: ...P A R T VII QoS Configuring QoS page 539 Configuring Auto QoS page 645 ...
Page 620: ......
Page 750: ......
Page 1604: ......
Page 1740: ......
Page 2105: ...P A R T XII Configuring Cisco IOS IP SLAs Configuring Cisco IP SLAs page 2025 ...
Page 2106: ......
Page 2118: ......
Page 2164: ......