Configuring the Spanning Tree Protocol 759
console(config)#spanning-tree vlan 1,3 root
primary
console(config)#spanning-tree vlan 2,4 root
secondary
7
Configure two uplink ports per uplink switch:
console(config)#interface range fo1/0/1-2
console(config-if-fo1/0/1-2)#channel-group 1 mode
active
console(config-if-fo1/0/1-2)#exit
8
Configure peer switch links:
console(config)#interface range te1/0/1-4
console(config-if-te1/0/1-4)#channel-group 2 mode
active
console(config-if-te1/0/1-4)#exit
9
Configure the uplinks into a port channel:
console(config)#interface port-channel 1
console(config-if-port-channel 1)#switchport mode
trunk
console(config-if-port-channel 1)#exit
10
Configure the peer links into a port channel and prefer to go to the core
router or access switches directly, i.e. block the peer link unless it is needed:
console(config)#interface port-channel 1
console(config-if-port-channel 1)#switchport mode
trunk
console(config-if-port-channel 1)#spanning-tree
port-priority 144
console(config-if-port-channel 1)#exit