CISCO交换机命令全集加说明3( 八 )


hostname(config)# port-channel mode desirable

The following example shows how to create a channel interface and enable a Fast EtherChannel link with PAgP disabled.
hostname(config)# port-channel mode on
Related Commands
pagp-port-priority
port-channel (preserve-order)
port-channel (template-port)
show (interfaces)
port-channel (preserve-order)
Use the port-channel preserve-order global configuration command to preserve the frame transmission order on the channel interface. Use the no port-channel preserve-order command to allow frame transmission misordering on the channel interface.
port-channel preserve-order
no port-channel preserve-order
Syntax Description
This command has no additional arguments or keywords.
Default
The default is no frame ordering.
Command Mode
Global configuration
Usage Guidelines
The no port-channel preserve-order command allows frame transmission misordering for maximum load balancing.
This command is not functional when bridge groups are enabled.
Example
The following example shows how to preserve frame transmission order on the channel interface:
hostname(config)# port-channel preserve-order
Related Commands
port-channel (mode)
show (interfaces)
port-channel (template-port)
Use the port-channel template-port global configuration command to specify a Fast Ethernet port after which other grouped member ports are modeled.
port-channel template-port template-port
Syntax Description
template-port For Catalyst 2820 switches, Fast Ethernet port 1 or 2.For Catalyst 1900 switches, Fast Ethernet port 26 or 27.

Defaults
Fast Ethernet port 1 for the Catalyst 2820 series switches.
Fast Ethernet port 0/26 for the Catalyst 1900 series switches.
Command Mode
Global configuration
Usage Guidelines
The configuration parameters for which the specified Fast Ethernet port serves as a model or template are as follows:
?DISL trunk state.
?For a nontrunk port: VLAN number, spanning-tree path cost, and spanning-tree port priority.
?For a trunk port: VLAN allow list and VLAN Trunk Protocol (VTP) pruning-eligible list, spanning-tree two-option path costs and their assignments of VLANs, and spanning-tree two-option port priorities and their assignments of VLANs.
The configuration parameters remain the same for all member ports after aggregation. After the group is created, any change to the parameters of any member port or port channel applies to all other ports in the group.

This command is available only when bridge groups are enabled.
Example
The following example shows how to specify Fast Ethernet port 27 as the template port for member ports configuration:
hostname(config)# port-channel template-port fastethernet 0/27
Related Commands
port-channel (mode)
show (interfaces)
port secure
Use the port secure interface configuration command to enable addressing security. Use the no port secure command to disable addressing security or to set the maximum number of addresses allowed on the interface to the default value.
port secure [max-mac-count count]
no port secure [max-mac-count]
Syntax Description
max-mac-count Maximum number of addresses allowed on port.
count Number from 1 to 132.

Default
The default is 132.
Command Mode
Interface configuration
Example
The following example shows how to set the maximum MAC address count to 100.
hostname(config-if)# port secure max-mac-count 100

The following example shows how to disable port security.
hostname(config-if)# no port secure

The following example shows how to set the MAC address count maximum to the default 132.
hostname(config-if)# no port secure max-mac-count
Related Commands
interface
port (block)
port secure (clear)
show (interfaces)
show (mac-address-table security)
port secure (clear)
Use the port secure clear interface configuration command to enables the clearing of static addresses on a secure port when the link goes down. The no port secure clear command resets the port secure configuration to retain static addresses in the event of link failure.

推荐阅读