HP Virtual Connect 1Gb Ethernet Cookbook

Appendix A: Scenario-based Cisco command line reference 86
Scenario 3-6 – Cisco IOS command line configuration (Multiple
Simple Networks Providing Redundancy and Link Aggregation
802.3ad (LACP))
Connect to the Cisco switch servicing the VC-Enet uplink ports and enter the following IOS
commands.
NOTE: If two switches are being used, issue the same commands on the second switch.
Table 2 Scenario 3 – 6 Cisco IOS command line configuration (802.1Q, 802.3ad).
Command Shortcut Description
>enable >en Privilege mode
#configure terminal #config t Configure via terminal
#interface
gigabitethernet0/1
#int gi0/1 Focus on Port 1
#switchport trunk
allowed vlan 101-
105,2101-2150
#sw tr ac vl 101-
105,2101-2150
Configure port 1 for
VLANs 101 through
105,2101-2150
#switchport mode
trunk
#sw mo tr Enable trunking on Port
1
#switchport trunk
native vlan 101
#sw tr na vlan 101 Set VLAN 101 as native
#channel-protocol lacp #channel-p l Configure port 20 for
802.3ad LACP
#channel-group 10
mode active
#channel-g 10 mo ac Enable channel group
10
#spanning-tree
portfast trunk
#sp portf tr Enable portfast on Port
1
#exit #ex Remove focus from
Port 1
#interface
gigabitethernet0/2
#int gi0/2 Focus on Port 2
#switchport trunk
allowed vlan 101-
105,2101-2150
#sw tr ac vl 101-
105,2101-2150
Configure port 2 for
VLANs 101 through
105,2101-2150
#switchport mode
trunk
#sw mo tr Enable trunking on Port
2
#switchport trunk
native vlan 101
#sw tr na vlan 101 Set VLAN 101 as native
#channel-protocol lacp #channel-p l Configure Port 21 for
802.3ad LACP
#channel-group 10
mode active
#channel-g 10 mo ac Enable channel group
10
#spanning-tree
portfast trunk
#sp portf tr Enable portfast on Port
2