2.2.1: Global Configuration Mode Commands
All of the following commands are entered in Global Configuration Mode after the prompt Switch(config)#
HOSTNAME SWITCH-A
This command renames the router, the prompt will change to: Switch-A(config) Where SWITCH-A is the new hostname.
ENABLE PASSWORD ccna
The Enable Password will restrict access to PRIVILEGE EXEC Mode and will ask ALL users for a password of in this example: ccna, which is case sensitive.
ENABLE SECRET cisco
The Enable Secret password will also prevent access to PRIVILEDGE EXEC Mode, and will OVERRIDE the enable password; in this case the password for ALL users is cisco.
The IOS prevents both the Enable and Enable secret passwords being the same, although it does not prevent the login and enable / enable secret passwords being the same.
The difference between the Enable and the Enable Secret password, is that the Enable Secret password is encrypted using a hash algorithm to store the password value in the configuration, (this is a Level 5 encryption so the password will NOT be shown in PLAIN TEXT in the configuration file and is more secure.)
SERVICE PASSWORD-ENCRYPTION
Entering this command will encrypt all passwords to a Level 7 encryption, except for the Enable secret password, which remains unchanged.
CTRL Z or END
This key combination EXITS GLOBAL CONFIGURATION Mode and any sub modes and returns you to PRIVILEGE EXEC Mode to the prompt: Switch-A#
EXIT
This will take you one step back, for example this will EXIT GLOBAL CONFIGURATION Mode and return you to PRIVILEGE EXEC Mode to the prompt: Switch-A# or EXIT a sub mode under the Global Configuration and return you to the Configuration Mode