Installation guide

Cisco HWIC-4ESW and HWIC-D-9ESW EtherSwitch Interface Cards
Configuration Examples for EtherSwitch HWICs
76
Cisco IOS Release 12.3(8)T4
OL-6454-01
Forward-Delay Time for a VLAN Example
The following example shows the forward delay time for VLAN 20 being configured to 21 seconds:
Router# configure terminal
Router(config)# spanning-tree vlan 20 forward-time 21
Router(config)# end
Router#
Maximum Aging Time for a VLAN Example
The following example configures the maximum aging time for VLAN 20 to 36 seconds:
Router# configure terminal
Router(config)# spanning-tree vlan 20 max-age 36
Router(config)# end
Router#
Spanning Tree Examples
The following example shows spanning tree being enabled on VLAN 20:
Router# configure terminal
Router(config)# spanning-tree vlan 20
Router(config)# end
Router#
Note Because spanning tree is enabled by default, issuing a show running command to view the resulting
configuration will not display the command you entered to enable spanning tree.
The following example shows spanning tree being disabled on VLAN 20:
Router# configure terminal
Router(config)# no spanning-tree vlan 20
Router(config)# end
Router#
Spanning Tree Root Example
The following example shows the switch being configured as the root bridge for VLAN 10, with a
network diameter of 4:
Router# configure terminal
Router(config)# spanning-tree vlan 10 root primary diameter 4
Router(config)# exit
Router#
MAC Table Manipulation: Example
The following example shows a static entry being configured in the MAC address table:
Router(config)# mac-address-table static beef.beef.beef int fa0/1/5
Router(config)# end
The following example shows port security being configured in the MAC address table.
Router(config)# mac-address-table secure 0000.1111.2222 fa0/1/2 vlan 3
Router(config)# end