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


Command Mode
Global configuration
Examples
This example shows how to set enhanced congestion control for the 10-Mbps Ethernet ports to adaptive.
hostname(config)# ecc 10m adaptive

This example shows how to set enhanced congestion control for Fast Ethernet port A to aggressive.
hostname(config)# ecc A aggressive
Related Command
show (port system)
enable
Use the enable Exec command to enter privileged Exec mode.
enable [access-level]
Syntax Description
access-level 1 through 14 (user Exec level) or 15 (privileged Exec level).

Default
The access-level default for initial login is 1. The default access level after login is 15.
Command Mode
User and privileged Exec
Usage Guidelines
If a password is configured, you are prompted for the password:
Password:

You are allowed three attempts to provide the correct password. The same prompt is repeated until you enter the correct password or you exceed the maximum number of attempts. If the password fails after the maximum attempts, the following error message appears:
Bad password.
Example
This example shows you how to move from user Exec mode access to privileged Exec mode access.
hostname> enable
hostname#
Related Command
configure
disable
end
exit
interface
line console
enable (password)

Use the enable password global configuration command to set unencrypted user Exec or privileged Exec passwords. Use the no enable password command to clear the password.
enable password level <1-15>
no enable password level level
Syntax Description
level <1-15> Level for which the password applies:1-14 user Exec privileges.15 privileged Exec privileges.
password A noncase-sensitive string of between 4 and 8 characters, spaces, and punctuation (except double quotes). Password strings with blank spaces must be enclosed in double quotes.

Default
No default password.
Command Mode
Global configuration
Usage Guidelines
The level argument must be specified.
For more information about assigning passwords of various levels and encryption modes, see "Understanding Command Modes" in "Overview."
Examples
This example shows how to set an unencrypted privileged Exec password to WILLOW 6.
hostname(config)# enable password level 15 "WiLLoW 6"

Both of these examples show how to set an unencrypted user Exec password to MAY DAY.
hostname(config)# enable password level 1 "May Day"
hostname(config)# enable password level 8 "may day"
Related Commands
enable (secret)
enable (use-tacacs)
enable (secret)
Use the enable secret global configuration command to set encrypted user Exec or privileged Exec passwords. Use the no enable secret command to clear the password.
enable secret [level <1-15>] [0 5 ]
no enable secret [level <1-15>]
Syntax Description
level <1-15> Level for which the password applies:1-14 user Exec privileges.15 privileged Exec privileges.
0 Specifies an unencrypted password follows.
5 Specifies an encrypted password follows.
password A case-sensitive string of between 1 and 25 characters, spaces, and punctuation.

Default
Privilege level 15, unencrypted.
No default password.
Command Mode
Global configuration
Usage Guidelines

Note Encrypted passwords are typically used only in configuration files generated by the switch.

The level argument must be used to specify any level 1 through 14 encrypted password. The level argument is optional when specifying a default level 15 encrypted password.
Although levels 2 to 14 are accepted, levels 1 to 14 map to user-level password (level 1). For more information about assigning passwords of various levels and encryption modes, see "Understanding Command Modes" in the "Overview" chapter.
If you enter a password that begins with a number followed by a space, an error message appears:
hostname(config)# enable secret level 1 9 lives
Invalid encryption type: 9

推荐阅读