switch#sh vlanVLAN Name Status Ports
---- -------------------------------- --------- -------------------------------
1 default active Gi0/7
4 VLAN0004 active Gi0/4, Gi0/5, Gi0/6
8 VLAN0008 active Gi0/8
10 VLAN0010 active Gi0/1, Gi0/2, Gi0/3
1002 fddi-default act/unsup
1003 token-ring-default act/unsup
1004 fddinet-default act/unsup
1005 trnet-default act/unsup
VLAN Type SAID MTU Parent RingNo BridgeNo Stp BrdgMode Trans1 Trans2
---- ----- ---------- ----- ------ ------ -------- ---- -------- ------ ------
1 enet 100001 1500 - - - - - 0 0
4 enet 100004 1500 - - - - - 0 0
8 enet 100008 1500 - - - - - 0 0
10 enet 100010 1500 - - - - - 0 0
1002 fddi 101002 1500 - - - - - 0 0
1003 tr 101003 1500 - - - - - 0 0
1004 fdnet 101004 1500 - - - ieee - 0 0
1005 trnet 101005 1500 - - - ibm - 0 0
Remote SPAN VLANs
------------------------------------------------------------------------------
Primary Secondary Type Ports
------- --------- ----------------- ------------------------------------------
switch(config)#vlan 1
switch(config)#vlan 10
switch(config)#vlan 4
sw1-hq(config)#interface GigabitEthernet0/7
switch(config-if)#switchport mode trunk
switch(config-if)#spanning-tree portfast trunk
%Warning: portfast should only be enabled on ports connected to a single
host. Connecting hubs, concentrators, switches, bridges, etc... to this
interface when portfast is enabled, can cause temporary bridging loops.
Use with CAUTION
switch(config-if)#spanning-tree bpduguard enable