Rename the router
Setting system clock
Show system time
Setting banner for router
Setting the description for an interface
Setting line password
Setting privileged access password
Setting Secret (Encrypted) Password
Rename the Router
To specify or modify the host name for the router, global configuration command HOSTNAME is used. Hostname is case
sensitive. The host name is used in prompts and default configuration filenames.
The factory-assigned default host name is router.
R1(config)# hostname Router1
Setting the System Clock
The system clock runs from the moment the system starts up and keeps track of the current date and time
To manually set the system clock, use one of the formats of the clock set EXEC command.
clock set hh:mm:ss day month yyyy
clock set hh:mm:ss month day yyyy
In the following example, the system clock is manually set to 6:51 p.m. on March 6, 2013:
Router# clock set 06:51:00 06 mar 2013
Show System Time
To display the system clock, use the show clock EXEC command.
Router1# show clock
Setting the Banner
To specify a message-of-the-day (MOTD) banner, use the banner motd global configuration command. The no form of this command deletes the MOTD banner. When someone connects to the router, the MOTD banner appears before the login prompt.
Router1(config)# banner motd ! message !
Here (!) sign is used as delaminating character. You can use any character.
Setting the Description for an Interface
To add a description to an interface configuration, use the description interface configuration command. Use the no form of this command to remove the description.
The description command is meant solely as a comment to be put in the configuration to help you remember what certain interfaces are used for.
Router1(config)# interface serial 0
Router1(config-if)# description This int connected with R2 int s0/0
The description "his int connected with R2 int s0/0" appears in the output of the following EXEC commands: show startup-config, show interfaces, and show running-config
Setting the Line Password
To specify a password on a line, use the password line configuration command. Use the no form of this command to remove the password. The first character cannot be a number. The string can contain any alphanumeric characters, including spaces, up to 80 characters.
Console Password
Console password is needed when logging into router at user EXEC mode from console.
Router1(config)#line console 0
Router1(config-line)#password cisco
Router1(config-line)#login
Router1(config-line)#logging synchronous
vty lines password
Virtual terminal lines (vty) are used to allow remote access to the router (by telneting through its interfaces). The router has five virtual terminal lines by default.
Router1(config)#line vty 0 4
Router1(config-line)#password cisco
Router1(config-line)#login
Router1(config-line)#logging synchronous
Setting Privileged Access Password
To set a local password to control access to various privilege levels, use the enable password global configuration command. Use the no form of this command to remove the password requirement.
An enable password is defined as follows:
Must contain from 1 to 25 uppercase and lowercase alphanumeric characters.
Must not have a number as the first character.
Can have leading spaces, but they are ignored. However, intermediate and trailing spaces are recognized.
Router1(config)#enable password cisco
Setting Secret (Encrypted) Password
To set an encrypted local password to control access to various privilege levels, use the enable secret global configuration command. Use the no form of this command to remove the password requirement.
Router1(config)#enable secret cisco1
Saving the configuration
Router1#copy running-config startup-config
No comments:
Post a Comment