
26-9
Catalyst 4500 Series Switch, Cisco IOS Software Configuration Guide - Cisco IOS XE 3.9.xE and IOS 15.2(5)Ex
Chapter 26 Configuring Optional STP Features
Enabling PortFast Port Types
This example shows how to enable edge behavior on GigabitEthernet interface 5/7 and verify
configuration:
Switch#
configure terminal
Switch(config)#
interface fastethernet 5/7
Switch(config-if)#
spanning-tree portfast edge
Switch(config-if)#
end
Switch#
Switch#
show running-config interface fastethernet 5/7
Building configuration...
Current configuration:
!
interface GigabitEthernet5/7
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 5/8 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
Step 3
Switch(config-if)#
spanning-tree portfast edge
[
trunk
]
Enables edge behavior on a Layer 2 access port
connected to an end workstation or server.
(Optional)
trunk
—Enables edge behavior on a trunk
port. Use this keyword if the link is a trunk. Use this
command only on ports that are connected to end host
devices that terminate VLANs and from which the port
should never receive STP BPDUs. Such end host devices
include workstations, servers, and ports on routers that
are not configured to support bridging.
Use the
no
version of the command to disable PortFast
edge.
Step 4
Switch(config-if)#
end
Exits global configuration mode
Step 5
Switch#
show running interface
{{
fastethernet
|
gigabitethernet
|
tengigabitethernet
}
slot
/
port
}
| {
port-channel
port_channel_number
}
Verifies the configuration.
Step 6
Switch#
show spanning-tree interface
{{
fastethernet
|
gigabitethernet
|
tengigabitethernet
}
slot
/
port
} | {
port-channel
port_channel_number
}
portfast edge
Displays spanning-tree PortFast information for the
specified interface.
Command
Purpose
Содержание Catalyst 4500 Series
Страница 2: ......
Страница 4: ......
Страница 2086: ...Index IN 46 Software Configuration Guide Release IOS XE 3 9 0E and IOS 15 2 5 E ...