C
ONFIGURING
THE
S
WITCH
2-72
CLI – This example creates trunk 1 with ports 11 and 12. Just connect
these ports to two static trunk ports on another switch to form a trunk.
Dynamically Configuring a Trunk
Command Usage
• To avoid creating a loop in the network, be sure you enable LACP
before connecting the ports, and also disconnect the ports before
disabling LACP.
• If the target switch has also enabled LACP on the connected ports, the
trunk will be activated automatically.
• A trunk formed with another switch using LACP will automatically be
assigned the next available trunk ID.
Console(config)#interface port-channel 1 3-85
Console(config-if)#exit
Console(config)#interface ethernet 1/11
Console(config-if)#channel-group 1 3-148
Console(config-if)#exit
Console(config)#interface ethernet 1/12
Console(config-if)#channel-group 1
Console(config-if)#end
Console#show interfaces status port-channel 1 3-94
Information of Trunk 1
Basic information:
Port type: 100tx
Mac address: 22-22-22-22-22-2c
Configuration:
Name:
Port admin status: Up
Speed-duplex: Auto
Capabilities: 10half, 10full, 100half, 100full,
Flow control status: Disabled
Current status:
Created by: User
Link status: Up
Port operation status: Up
Operation speed-duplex: 100full
Flow control type: None
Member Ports: Eth1/11, Eth1/12,
Console#