fe asa
Configuring a Single
LEY Celi clg
‘This chapter provides information and commands concerning the following topes:
+ Router modes
+ Entering global configuration mode
+ Configuring a router, specifically
= Passwords
= Password encryption
= Interface names
= Moving between interfaces
— Configuring a serial imerface
= Configuring a Fast Ethernet interface
— Creating a message-of-the-day (MOTD) banner
= Creating a login banner
— Setting the clock time zone
= Assigning a local host ame to an IP adress
— The no ip domai
The logging synchronous command
lookup command
The exee-timeout command
= Saving configurations
— Erasing configurations
+ show commands to verify the router configurations
+ EXEC commands in configuration mode: the do command
Router Mode:
outer> ‘User mode
Reuter Privileged made (also known as EXEC-level mode)
Router (contig) Global configuration mode
Router(eontag-af)” | Taterface mode54 Configuring Passwords
Router (contig-subit)# | Subinterface mode
Router (contig-line)# | Line mode
Reuter (contig-reuter)# | Router configuration mode
TIP: There are other modes than these, Not all commands work in all modes. Be
careful you type in a command that you know is correct—show running-confi,
far example—and you get an error, make sure that you are in the correct mode,
Entering Global Configuration Mode
Router Limited viewing of configuration,
‘You cannot make changes inthis
mode,
Routers ‘You can see the configuration and
move to make changes.
Routerseentigure terminal “Moves to global configuration mode.
outer (contig) # ‘This prompt indicates that you can
start making changes.
Configuring a Router Name
‘This command works on both routes and switches
Router (contig) #hostrane Cisco “The name can be any word you
choose
cisco(contigy#
Configuring Passwords
‘Thete commands work on both routers and switches
Router (contig) #enable password cisco | Seis enable password
Router (contig)#enable secret class | Seis enable secret passwordPassword Encryption 55
Router (contig) #line console @
Router (contig-2ine) password console
ners consol line mode
‘Sets console line mode password to
Router (contig-2ine) Alogin
Enables password checking at login
Router (contig) #line vty @ 4
Enters vty ine mode for all ive vty
outer (contig-2ine) password toln
Seis vty password to telnet
Router (contig-2ine) Alogin
nables password checking at login
Router (contig) ine aux @
Baers aul
xy line mode
outer (contig-1ine) password backdoor
‘Sets auriliaty Tine mode passwordto
backdoor
Router (contig-2ine) Alogin
Enables password checking at login
CAUTION: The enable seeret passwords encrypted by default. The en
passwords not For this reason, recommended practice is that you never use the
tenable password command. Use only the en
router or switen configuration.
You cannot set both enable secret password:
password, Doing so defeats the use of encryt
Password Encryption
seeret password command in a
and enable passwordto the same
tion
Router (contig) #service password:
eneryption
Applies a weak encryption 0
passwords
Router (contig) enable password cisco
‘Seis enable password to cisco
Router (contig) #line console @
‘Moves to console line mode
Router (contig-line) spaseword Cisco
‘Continue setting passwords as above
Router (contig) ine service password.
‘encryption
Turns off password encryption56 Interface Names
CAUTION: Ifyou have turned on service password encryption, used, and then
turned it oft, any passwords that you have encrypted will stay encrypted. Now
passwords will remain unencrypted.
Interface Names
‘One of the biggest problems that new administrators face isthe interface names on the
sllerent madels of rowers, With all he different Cisco devices in production networks
today, some administrators are becoming confused about the names of their interfaces
“The following chart isa sample of some ofthe different interface names for various routers
“This i by no means a complete list. Refer tothe hardware guide of the specific router
that you are working on to see the diferent combinations, or use the following command
to see which interfaces ave installed on your paxicula router:
router#show ip interface brief
Slot Numbering
Range Example
Interface-type number | ethemet0 (£0)
Tnlerface-ype number | seril0 (0) &
a
2514 [Onboard | Ethemet Interface-ype number | e0 & el
‘Onboard | Serial Tnterface-type number | s0 & sl
1721 | Onboard Ethernet | Inteface-iype number | fastethernet0
(0)
Siot0) WAC OWEN. | Interfaceaype number [50 & 31
interface card)
(ceria)
1760 [OnBoard [Fast Etiemet — [Interface-type Oiport | fa0/0
Siot0) WICIVIC (voice | Imerfaceaype Oper | 3070 & 30/1
interface card) O10 & vor
Slot i ‘wicivie Tnterface-type liport | sO & sift
v0 & villInterface Names _ 57
vic Tnterface-type 2port | v2/0 & v2
Siot3| vic Interface-ype Siport | v3/0.& v3
72610 [Onboard | Ethemet Interface-type Oiport | e0/0
Slot0 WIC Serial) | Interface-type Oiport_ | solo a sa/t
2611 [Onboard | Bihemet Inierface-type Oiport | 0/0 & el
Sioto WIC (Serial) | Inverface-type ofport_ | s0/0 & sa/t
72620 [Onboard s¢Bthemet | Interfaceype Ofport | f20/0
Slot 0 WIC Geria) | Intetace-type Oiport_ | soo & sa/t
2621 | Onboard Interface-type Oiport | 20/0 &
0/1
Sloto WIC Geria | Inteface-ype Oiport_ | so/0 a sa/t
Tei [Onboard [Fast Eikemet | Inierface-ype port | 30/0 &
fk
Sioto) High-speed | Inverface-type oisioy | s01010 &
WAN interface | port 07071
card HWICY
wIcIVWIC
isa [stor Hwicwvicy | Invertace-type isto | sor &
vwic por soni
2801 [Onboard [Fax Etiemet | Inerface-ype Olport | [40/0 &
fk
Sioto) vicrvwic | Invertace-type oisiow | voiee070/0-
(woice only) | port oice0/0/3
Slot HIWICIWIC! | Interface-ype Oislov
wie port
ono-onr
(ouble-wide
HwIc)58__ Moving Between Interfaces
chassis rear | Gigabit Ethemet
Slot) HWICIWIC-
Inverface-type Ofslow
Slot? WICIVICl Interface-ype stow | 0720-07273
vwic por
Slot 3 HWICIWIC! — | Interface-ype slow | 0/90-079/3
vwic port (cingle-wide
HWIC)
07390-08577
(Gouble-wide
HWwic)
2st [Buitinwe — USE Interiace-ype port | usbo & usb 1
chassis front
Builtinto [Fast Etheme: | Imerfaceype Olport | fa0/0 &
0/1 gi0/0 &
eit
0/010 &
pawicivwics | port 0/1 #2000
vic 0/01
Slot 1 HWICATWIC- | Inerfaceaype oisiov | 0/0 &
pawicivwicy | port 0/171 f20/10
vic eon
ME slot iMINME Interface-ype liport | gi/0 &
gill 10 &
sl
Moving Between Interfaces
‘What happens in Column 1 is the same thing occuring in Column 3,
Router (contig) | Moves to serial interface
configuration mode
‘serial 0/2)
‘Moves to serial
configuration
rode
Reuter (contig | Retums to global
sf}oxit conliguration mode
Router (config
sfyminterface
fastothernet
ee
‘Moves directly
to Fast Ethernet
‘VD configuration
rodeConfiguri
jing aFast Ethernet Interface 58
Router (contig) | Moves to Fast Bthernet | Fovterenable Enters privileged mode,
Routerselock set 18:80:00 15 May 2007 ‘Sets the local time on the
router
Routerseontigure terninal Enters global configuration
mode,
Router (contig) #hostrane Boston ‘Seis the router name to
Boston,
Soeton(contig)#ne 4p donain-Leokup “Turns off name resolution on
unrecognized commands
(spelling mistakes),Configuration Example: Basic Router Configuration 65
Boston(contig)#banner motd # ‘Creates an MOTD bane.
‘This is the Boston Router.
‘Authorized Access Only
Boston (contig) #elock timezone EST -5 ‘Sls time zone to easiem
standard time (5 from UTC).
Boston(contig)#enable secret cisco Enables secret password set to
Boston contig) #serviee paseword-eneryption | Passwords wil be given weak
encryption,
Boston(contig)#line console @ Enter ine console mode,
Boston(contig-line)#logeing synchranous | Commands will not be
inerrupted by unsolicited
Boston (contig. line) #paseword class Sets the password to elas,
Boston(contig-2ine) Alogin Enables password checking at
login.
Boston eontig-line)#line vty @ 4 ‘Moves to virtual Telnet lines 0
through 4
Seaton contig-line)#paseword class ‘Sets the password to class
Boston config: Zine) Alogin [Enables password checking at
login.
Boston (contig-line) ine aux @ ‘Moves to lin auxiliary mode,
Boston contig-2ine) password class ‘Sets the password to class
Boston (contig-2ine) Alogin [Enables password checking at
login.
Boston eon" ig-Line)WexAt ‘Moves back to global
configuration mode,
Beston(contig)éne service password Turns off password
encryption cneryption,
Boston(conrigy#intertace Tastethernet 0/@ | Moves to interface Fast
Ethernet 0/0 configuration
mode,{86 Configuration Example: Basic Router Configuration
Boston (contig-s¢)¥description Engineering
uw
Sets locally significant
description ofthe interface
Boston contig-2*)#ip address 172,16.18.1
255,255,255.
‘Assigns an IP address and
sulbaet mack to the interface,
Boston(contig-At)ane shutdown
“Turns on the interface.
Boston contig-i¢)#interface serial 0/e78
‘Moves directly to interface
serial 00/0 configuration
mode,
Boston cont ig-s¢)¥deserdption Link to
Buffalo Router
Sets locally significant
description ofthe interface
Boston contig.2*)#ip address 172,16.28.1
255,255,255.252
‘Assigns an IP address and
sulbaet mask to the interface,
Boston(conrig-irjwelock rate 6600
Sets a clock rate for seal
\tansmission, The DCE cable
must be plugged into thie
interface,
Boston contig-i¢)¥no shutdown
“Turns on the interface.
Boston contig-2*)Woxit
‘Moves back to global
‘configuration mode.
Boston (contig) Aap host buffalo 172.
‘Sols a local host name
resolution o IP adess
172.16.202.
Berton contig) #exit
‘Moves back to privileged
mode,
Bostonveepy running-contig startup-contig,
Saves the running
configuration to NVRAM,