How to Configure EtherSwitch HWICs
DETAILED STEPS
Command or Action
Step 1
enable
Example:
Router> enable
Step 2
configure terminal
Example:
Router# configure terminal
Step 3
interface {ethernet | fastethernet}
interface-id
Example:
Router(config)# interface fastethernet 0/1/6
Step 4
spanning-tree cost port-cost
Example:
Router(config-if)# spanning-tree cost 2000
Step 5
spanning-tree vlan vlan-ID cost port-cost
Example:
Router(config-if)# spanning-tree vlan 200 cost
2000
Step 6
end
Example:
Router(config)# end
Step 7
show spanning-tree interface fastethernet
interface-id
Example:
Router# show spanning-tree interface
fastethernet 0/1/6
Example
Use the show spanning-tree vlan to verify the spanning-tree port cost configuration.
Router# show spanning-tree vlan 200
Port 264 (FastEthernet0/1/8) of VLAN200 is forwarding
Port path cost 17, Port priority 64, Port Identifier 129.8.
Designated root has priority 32768, address 0010.0d40.34c7
Designated bridge has priority 32768, address 0010.0d40.34c7
Designated port id is 128.1, designated path cost 0
Timers: message age 2, forward delay 0, hold 0
Book Title
40
Cisco HWIC-4ESW and HWIC-D-9ESW EtherSwitch Interface Cards
Purpose
Enables privileged EXEC mode.
Enter your password if prompted.
•
Enters global configuration mode.
Selects an interface to configure.
Configures the port cost for an interface.
The value of port_cost can be from 1 to 200,000,000 (1
•
to 65,535 in Cisco IOS Releases 12.1(2)E and earlier).
Use the no form of this command to restore the
•
defaults.
Configures the VLAN port cost for an interface.
The value port-cost can be from 1 to 65,535.
•
Use the no form of this command to restore the
•
defaults.
Returns to privileged EXEC mode.
(Optional) Saves your entries in the configuration file.