
Configuring the Cisco Gigabit EtherSwitch EHWIC
Configuration Examples for Gigabit EtherSwitch EHWICs
82
Configuring the Cisco Gigabit EtherSwitch EHWIC
OL-23155-01
Timers: message age 2, forward delay 0, hold 0
Number of transitions to forwarding state: 1
BPDU: sent 19, received 89512
Router#
Spanning-Tree Port Cost: Example
The following example shows how to change the spanning-tree port cost of a Gigabit Ethernet interface:
Router#configure terminal
Router(config)#interface gigabitethernet 0/1/2
Router(config-if)#spanning-tree cost 18
Router(config-if)#end
Router#
Router#show run interface gigabitethernet0/1/2
Building configuration...
Current configuration: 140 bytes
!
interface GigabitEthernet0/1/2
switchport access vlan 1
no ip address
spanning-tree vlan 1 port-priorityy 64
spanning-tree cost 18
end
The following example shows how to verify the configuration of the interface when it is configured as
an access port:
Router#show spanning-tree interface gigabitethernet 0/1/2
Port 33 (GigabitEthernet0/1/2) of VLAN1 is forwarding
Port path cost 18, Port priority 64, Port Identifier 64.33
Designated root has priority 32768, address 00ff.ff10.37b7
Designated bridge has priority 32768, address 00ff.ff10.37b7
Designated port id is 128.13, designated path cost 0
Timers: message age 2, forward delay 0, hold 0
Number of transitions to forwarding state: 1
BPDU: sent 1, received 175
Router#
Bridge Priority of a VLAN: Example
The following example shows the bridge priority of VLAN 20 being configured to 33792:
Router#configure terminal
Router(config)#spanning-tree vlan 20 priority 33792
Router(config)#end
Router#
Hello Time: Example
The following example shows the hello time for VLAN 20 being configured to 7 seconds:
Router#configure terminal
Router(config)#spanning-tree vlan 20 hello-time 7
Router(config)#end
Router#
Kommentare zu diesen Handbüchern