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


password-thresh attempts
no password-thresh
Syntax Description
attempts A number from 1 to 65500.

Default
Three attempts
Command Mode
Line configuration
Examples
The following example shows how to limit the number of unsuccessful password attempts to 4.
hostname(config-line)# password-thresh 4

The following example shows how to remove password attempt limitations to the switch.
hostname(config-line)# no password-thresh
Related Commands
show (terminal)
silent-time
time-out
ping
Use the ping user and privileged Exec command to send an ICMP echo message (ping) to the specified IP address or host name.
ping {ip-address hostname}
Syntax Description
ip-address Host IP address.
hostname Host name.

Default

This command has no default value.
Command Mode
User and privileged Exec
Usage Guidelines
If you specify a host name rather than an IP address, the configured name server (which is configured by using the ip (name-server) command) resolves the host name to the IP address.
Example
The following example shows how to ping the host named penguins:
> ping penguins
Translating "penguins"...domain server (171.68.10.70) [OK]
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 171.69.71.25, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/2/6 ms
Related Commands
ip (address)
ip (default-gateway)
ip (domain-name)
ip (mgmt-vlan)
ip (name-server)
port-channel (mode)
port-channel (preserve-order)
port-channel (template-port)
show (interfaces)
show (ip)
port (block)
Use the port block interface configuration command to block the flooding of unknown multicast or unicast packets. Use the no port block command to enable the flooding of unknown multicast or unicast packets.
port block {multicast unicast}
no port block {multicast unicast}
Syntax Description
multicast Unknown multicast addresses.
unicast Unknown unicast addresses.

Default
Flooding is enabled.
Command Mode
Interface configuration
Examples
The following example shows how to block the flooding of unknown multicast addresses:
hostname(config-if)# port block multicast

The following example shows how to allow the flooding of unknown unicast addresses:
hostname(config-if)# no port block unicast
Related Commands
interface
show (interfaces)
show (port block)
port-channel (mode)
Use the port-channel mode global configuration command to select the way in which two Fast Ethernet ports aggregate using Port Aggregation Protocol (PAgP) to form a Fast EtherChannel link. Use the no port-channel mode command to disable Fast EtherChannel links.
port-channel mode [on auto desirable off]
no port-channel mode
Syntax Description
on Forces the port to aggregate without negotiation.
auto Port responds to PAgP packets it receives but does not initiate PAgP packet negotiation.
desirable Port initiates negotiations with other ports by sending PAgP packets.
off Prevents the port from aggregating without negotiation.

Default
Off
Command Mode
Global configuration
Usage Guidelines
When a Fast EtherChannel link is formed, the port-channel interface is enabled. The port channel remains enabled until both ports lose the link. In the case of port-channel auto or desirable mode, when a port-channel member port detects a partner port that is misconfigured, disabled, or is not bidirectional, the port-channel member port goes down.

Both the auto and desirable modes allow ports to negotiate with connected ports to determine if they can form a channel based on criteria such as trunking state, VLAN numbers, and so on.
This command is not functional when bridge groups are enabled.
Example
The following example shows how to create a Fast EtherChannel link when the PAgP status of connecting devices is uncertain:

推荐阅读