You are on page 1of 3

Basic Router Configuration

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 Rename the Router To specify or modify the host name for the router, global configuration command HOSTNA ! is used" Hostname is case sensitive" The host name is used in prompts and default configuration filenames"

Router(config)# hostname Peshawar Peshawar(config)#

The factory#assigned default host name is router. Setting the System Clock The system clock runs from the moment the system starts up and keeps track of the current date and time based on $oordinated %niversal Time &%T$', also known as (reenwich ean Time &( T'" The system clock can be set from a number of sources, and in turn can be used to distribute the current time through various mechanisms to other systems" To manually set the system clock, use one of the formats of the clock set !)!$ command"

clock

set

hh:mm:ss

day

month

yyyy

clock set hh:mm:ss month day yyyy

*n the following e+ample, the system clock is manually set to ,-./ p"m" on

ay ,/, /00,-

Router#clock

set

13:32:00

12

May

2001

Show System Time To display the system clock, use the show clock !)!$ command" *f time has not been set by the clock set command then this command will show the time lapsed since router is up"

Router#

show

clock

Setting the Banner To specify a message#of#the#day & OT1' banner, use the banner motd global configuration command" The no form of this command deletes the the router, the OT1 banner OT1 banner" 2hen someone connects to before the login prompt" appears

Router(config)# banner motd # message #


Here &3' sign is used as delaminating character" 4ou can use any character"

Setting the Description for an Interface To add a description to an interface configuration, use the description interface configuration command" you %se the no form of this command interfaces to remove are the description" for" The description command is meant solely as a comment to be put in the configuration to help remember what certain used The following e+ample shows how to add a description for a T, interface-

Router(config)# interface serial 0 Router(config-if)# description Kb s The description 5T, line to How/6ass # ,/7 8b9s5 appears in the output of the following !)!$ commandsshow startup-config, show interfaces, and show running-config T1 line to How2Pass 128

Setting the Line assword To specify a password on a line, use the password line configuration command" %se 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 70 characters"

Console assword $onsole password is needed when logging into router at user !)!$ mode from console"

Router(config)# line console 0 Router(config-line)# password How2pass200!


!ty lines password :irtual 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"

Router(config)# line "t# 0 ! Router(config-line)# password How2Pass200!


Setting ri!ileged "ccess assword To set a local password to control access to various privilege levels, use the enable password global configuration command" %se the no form of this command to remove the password re;uirement" An enable password is defined as follows ust contain from , to /< uppercase and lowercase alphanumeric characters" ust not have a number as the first character" $an have leading spaces, but they are ignored" However, intermediate and trailing spaces are recogni=ed"

Router(config)# enable password How2Pass2004


Setting Secret #$ncrypted% assword To set an encrypted local password to control access to various privilege levels, use the enable secret global configuration command" %se the no form of this command to remove the password re;uirement"

Router(config)# enable secret How2pass2004

You might also like