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


Examples
The following examples show different ways to set an unencrypted privileged Exec password to Pass&WoRd-87.
hostname(config)# enable secret Pass&WoRd-87

hostname(config)# enable secret 0 Pass&WoRd-87
hostname(config)# enable secret level 15 Pass&WoRd-87
hostname(config)# enable secret level 15 0 Pass&WoRd-87

The following examples show two ways to set an encrypted privileged Exec password to grandkey.
hostname(config)# enable secret 5 $1$8KiD$mmxIOicclo6PgXTq97Rfb/
hostname(config)# enable secret level 15 5 $1$8KiD$mmxIOicclo6PgXTq97Rfb/

The following examples show two ways to set an unencrypted user Exec password to Forescore & 7 years ago.
hostname(config)# enable secret level 1 Forescore & 7 years ago
hostname(config)# enable secret level 12 0 Forescore & 7 years ago

The following example shows how to set an encrypted user Exec password to grandkey.
hostname(config)# enable secret level 14 5 $1$8KiD$mmxIOicclo6PgXTq97Rfb/
Related Commands
enable (password)
enable (use-tacacs)
enable (use-tacacs)
Use the enable use-tacacs global configuration command to use the Cisco Terminal Access Controller Access Control System Plus (TACACS ) for authentication of all switch passwords from a central authentication server. Use the no enable use-tacacs command to disable central authentication of switch passwords.
enable use-tacacs
no enable use-tacacs
Syntax Description
This command has no additional arguments or keywords.
Default
Disabled.
Command Mode
Global configuration
Usage Guidelines
If you do not use TACACSto authenticate passwords, local authentication is enabled.
Example
This example shows how to use TACACSfor central authentication of switch passwords.
hostname(config)# enable use-tacacs
Related Commands
enable (password)
enable (secret)
login (tacacs)
show (tacacs)
tacacs-server (last-resort)
end
Use the end command from global configuration mode (config), interface configuration mode (config-if), and line configuration mode (config-line) to exit the current mode and enter privileged Exec mode.
end
Syntax Description
This command has no arguments or keywords.
Default
None
Command Mode
All configuration modes.
Usage Guidelines
To exit the system and terminate the console or telnet session, use the exit command.
Example
This example shows how to exit the global configuration mode and enter privileged Exec mode.
hostname(config)# end
hostname#
Related Commands
configure
disable
enable
exit
interface
line console
exit
Use the exit configuration command to exit the system or current configuration mode.
exit
Syntax Description
This command has no arguments or keywords.
Command Mode
All configuration and Exec modes.
Usage Guidelines
If the current mode is privileged or user Exec, this command exits the system and terminates the console or Telnet session. If the current mode is global configuration, this commands sets the mode to privileged Exec. If the current mode is other than global configuration, this command sets the mode to global configuration.

Example
This example shows how to exit from global configuration mode and enter privileged Exec mode:
hostname(config)# exit
hostname#

This example shows how to exit from interface configuration mode and enter global configuration mode:
hostname(config-if)# exit
hostname(config)#
Related Commands
configure
disable
enable
end
interface
line console
fddi (authorization)
Use the fddi authorization interface configuration command to enable authorization checking for the station management (SMT) entity. Use the no fddi authorization command to disable authorization checking.
fddi authorization
no fddi authorization
Syntax Description
This command has no additional arguments or keywords.
Default
FDDI authorization is disabled.

推荐阅读