Cisco HWIC-4ESW and HWIC-D-9ESW EtherSwitch Interface Cards
How to Configure EtherSwitch HWICs
40
Book Title
DETAILED STEPS
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
Command or Action
Purpose
Step 1
enable
Example:
Router> enable
Enables privileged EXEC mode.
•
Enter your password if prompted.
Step 2
configure
terminal
Example:
Router# configure terminal
Enters global configuration mode.
Step 3
interface
{
ethernet
|
fastethernet
}
interface-id
Example:
Router(config)# interface fastethernet 0/1/6
Selects an interface to configure.
Step 4
spanning
-
tree
cost
port
-
cost
Example:
Router(config-if)# spanning-tree cost 2000
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.
Step 5
spanning
-
tree
vlan
vlan
-
ID
cost
port
-
cost
Example:
Router(config-if)# spanning-tree vlan 200 cost
2000
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.
Step 6
end
Example:
Router(config)# end
Returns to privileged EXEC mode.
Step 7
show spanning-tree interface fastethernet
interface-id
Example:
Router# show spanning-tree interface
fastethernet 0/1/6
(Optional) Saves your entries in the configuration file.