Port Setup
LACP Port-Channel Trunk
1. Enter the configuration mode.
config t
2. Enter the interface/s that you want to add to the port channel/LACP.
int e1/5
For multiples use below.
int e1/5-6
3. Give a description of the ports.
desc MUT7-RACK-SWI-POE1
4. Configure the port/s as a switchport.
switchport
5. Configure the port/s as a trunk.
switchport mode trunk
6. Configure the port as a port-channel. Active sets the interface to LACP Active, Passive sets it to LACP Passive, and not setting a mode defaults to On.
channel-group 1 mode active
7. Enter the configuration for the port channel.
int port-channel 1
8. Give a description of the port-channel.
desc MUT7-RACK-SWI-POE1
9. Configure the port-channel as a trunk port.
switchport mode trunk
10. Issue the command no shutdown to enable the port.
no shutdown
11. Add VLANs if needed to the port-channel interface. Edit accordingly to allow only necessary VLANs.
switchport trunk allowed vlan add 1,2,5,20,30,49,50,60,77,79,200,243
Define VLANs Allowed on Trunk Link
config t
int e1/1
Below for a port-channel.
config t
int port-channel 1
2. Ensure the port/port-channel is a trunk.
switchport mode trunk
3. To add a VLAN, use the following command to add the VLANs necessary.
switchport trunk allowed vlan add 7,10,20
4. To remove a VLAN, use the following command.
switchport trunk allowed vlan remove 5-10,12
LACP Port-Channel Access
1. Enter the configuration mode.
config t
2. Enter the interface/s that you want to add to the port channel/LACP.
int e1/5
For multiples use below.
int e1/5-6
3. Give a description of the ports.
desc MUT7-RACK-SWI-POE1
4. Configure the port/s as a switchport.
switchport
5. Configure the port/s as access.
switchport mode access
6. Configure the port as a port-channel. Active sets the interface to LACP Active, Passive sets it to LACP Passive, and not setting a mode defaults to On.
channel-group 1 mode active
7. Enter the configuration for the port channel.
int port-channel 1
8. Give a description of the port-channel.
desc MUT7-RACK-SWI-POE1
9. Configure the port-channel as an access port.
switchport mode access
10. Issue the command no shutdown to enable the port.
no shutdown
11. Add VLAN, if needed, to the port-channel interface.
switchport access vlan 20