• Add the port channel to the VLAN as a tagged interface.
INTERFACE VLAN mode
tagged port-channel id number
An interface with tagging enabled can belong to multiple VLANs.
• Add the port channel to the VLAN as an untagged interface.
INTERFACE VLAN mode
untagged port-channel id number
An interface without tagging enabled can belong to only one VLAN.
• Remove the port channel with tagging enabled from the VLAN.
INTERFACE VLAN mode
no tagged port-channel id number
or
no untagged port-channel id number
• Identify which port channels are members of VLANs.
EXEC Privilege mode
show vlan
Assigning an IP Address to a Port Channel
You can assign an IP address to a port channel and use port channels in Layer 3 routing protocols.
To assign an IP address, use the following command.
• Configure an IP address and mask on the interface.
INTERFACE mode
ip address ip-address mask [secondary]
– ip-address mask: enter an address in dotted-decimal format (A.B.C.D). The mask must be in
slash format (/24).
– secondary: the IP address is the interface’s backup IP address. You can configure up to eight
secondary IP addresses.
Deleting or Disabling a Port Channel
To delete or disable a port channel, use the following commands.
• Delete a port channel.
CONFIGURATION mode
no interface portchannel channel-number
• Disable a port channel.
shutdown
414
Interfaces