SlideShare a Scribd company logo
1 of 10
Download to read offline
PARTIICCNA2
CHAPTER 3
Configuring a Router
This chapter provides information and commands concerning the following topics:
• Configuring a router, specifically:
— Names
— Passwords
— Interfaces
— MOTD banners
— IP host tables
— Saving and erasing your configurations
• show commands to verify the router configurations
Router Modes
TIP: There are other modes than these. Not all commands work in all
modes. Be careful. If you type in a command that you know is correct—show
run, for example—and you get an error, make sure that you are in the correct
mode.
Router> User mode
Router# Privileged mode
Router(config)# Global configuration mode
Router(config-if)# Interface mode
Router(config-subif)# Subinterface mode
Router(config-line)# Line mode
Router(config-router)# Router configuration mode
18 Configuring Passwords
Global Configuration Mode
Configuring a Router Name
This command works on both routers and switches.
Configuring Passwords
Works on both routers and switches.
Router> Can see config, but not change
Router# Can see config and move to make
changes
Router#config t
Router(config)#
Moves to global config mode
This prompt indicates that you can
start making changes
Router(config)#hhhhoooossssttttnnnnaaaammmmeeee CCCCiiiissssccccoooo Name can be any word you choose
Cisco(config)#
Router(config)#eeeennnnaaaabbbblllleeee ppppaaaasssssssswwwwoooorrrrdddd cccciiiissssccccoooo Sets enable password
Router(config)#eeeennnnaaaabbbblllleeee sssseeeeccccrrrreeeetttt ccccllllaaaassssssss Sets enable secret password
Router(config)#lllliiiinnnneeee ccccoooonnnn 0000 Enters console-line mode
Router(config-line)#ppppaaaasssssssswwwwoooorrrrdddd ccccoooonnnnssssoooolllleeee Sets console-line mode password to
console
Router(config-line)#llllooooggggiiiinnnn Enables password checking at login
Router(config)#lllliiiinnnneeee vvvvttttyyyy 0000 4444 Enters vty line mode for all 5 vty
lines
Router(config-line)#ppppaaaasssssssswwwwoooorrrrdddd tttteeeellllnnnneeeetttt Sets vty password to telnet
Router(config-line)#llllooooggggiiiinnnn Enables password checking at login
show Commands 19
CAUTION: Enable secret password is encrypted by default. Enable password is
not. For this reason, recommended practice is that you never use the enable
password. Use only the enable secret password in a router configuration.
CAUTION: You cannot set both enable secret and enable password to the same
password. Doing so defeats the use of encryption.
Password Encryption
CAUTION: If you have turned on service password encryption, used it, and then
turned it off, any passwords that you have encrypted will stay encrypted. New
passwords will remain unencrypted
show Commands
Router(config)#lllliiiinnnneeee aaaauuuuxxxx 0000 Enters auxiliary line mode
Router(config-line)#ppppaaaasssssssswwwwoooorrrrdddd backdoor Sets auxiliary line mode password to
backdoor
Router(config-line)#llllooooggggiiiinnnn Enables password checking at login
Router(config)#sssseeeerrrrvvvviiiicccceeee ppppaaaasssssssswwwwoooorrrrdddd----
eeeennnnccccrrrryyyyppppttttiiiioooonnnn
Applies a weak encryption to
passwords
Router(config)#eeeennnnaaaabbbblllleeee ppppaaaasssssssswwwwoooorrrrdddd cccciiiissssccccoooo Sets enable password to cisco
Router(config)#lllliiiinnnneeee ccccoooonnnn 0000 …
Router(config-line)#ppppaaaasssssssswwwwoooorrrrdddd CCCCiiiissssccccoooo Continue setting passwords as above
…
Router(config)#nnnnoooo sssseeeerrrrvvvviiiicccceeee ppppaaaasssssssswwwwoooorrrrdddd----
eeeennnnccccrrrryyyyppppttttiiiioooonnnn
Turns off password encryption
Router#sssshhhhoooowwww ???? Lists all show commands available
Router#sssshhhhoooowwww iiiinnnntttteeeerrrrffffaaaacccceeeessss Displays statistics for all interfaces
Router#sssshhhhoooowwww iiiinnnntttteeeerrrrffffaaaacccceeee sssseeeerrrriiiiaaaallll 0000 Displays statistics for a specific
interface, in this case Serial 0
Router#sssshhhhoooowwww iiiipppp iiiinnnntttteeeerrrrffffaaaacccceeee bbbbrrrriiiieeeeffff Displays a summary of all
interfaces, including status and IP
address assigned
20 Interface Names
Interface Names
One of the biggest problems that new administrators face is the names of the interfaces on
the different models of routers. The following chart lists the names of the Ethernet, Fast
Ethernet, and Serial interfaces on the 2500, 1700, and 2600 series of routers.
Router#sssshhhhoooowwww ccccoooonnnnttttrrrroooolllllllleeeerrrrssss sssseeeerrrriiiiaaaallll 0000 Displays statistics for interface
hardware. Statistics display if the
clock rate is set and if the cable is
DCE, DTE, or not attached
Router#sssshhhhoooowwww cccclllloooocccckkkk Displays time set on device
Router#sssshhhhoooowwww hhhhoooossssttttssss Displays local host-to-IP address
cache. These are the names and
addresses of hosts on the network to
which you can connect
Router#sssshhhhoooowwww uuuusssseeeerrrrssss Displays all users connected to
device
Router#sssshhhhoooowwww hhhhiiiissssttttoooorrrryyyy Displays history of commands used
Router#sssshhhhoooowwww ffffllllaaaasssshhhh Displays info about Flash memory
Router#sssshhhhoooowwww vvvveeeerrrrssssiiiioooonnnn Displays info about loaded
software version
Router#sssshhhhoooowwww aaaarrrrpppp Displays the ARP table
Router#sssshhhhoooowwww pppprrrroooottttooooccccoooollllssss Displays status of configured Layer
3 protocols
Router#sssshhhhoooowwww ssssttttaaaarrrrttttuuuupppp----ccccoooonnnnffffiiiigggg Displays configuration saved in
NVRAM
Router#sssshhhhoooowwww rrrruuuunnnnnnnniiiinnnngggg----ccccoooonnnnffffiiiigggg Displays configuration currently
running in RAM
Fixed Interfaces (2500
Series)
Modular (Removable)
Interfaces (1700 Series)
Modular (Removable)
Interfaces (2600 Series)
Router(config)#iiiinnnntttt
eeeerrrrffffaaaacccceeee type port
Router(config)#iiiinnnntttteeeerrrrffff
aaaacccceeee type port
Router(config)#iiiinnnntttteeeerrrrffffaaaacccceeee
type slot/port
Router(config)#iiiinnnntttt
sssseeeerrrriiiiaaaallll0000 ((((ssss0000))))
Router(config)#iiiinnnntttteeeerrrrffff
aaaacccceeee sssseeeerrrriiiiaaaallll 0000
Router(config)#iiiinnnntttt sssseeeerrrriiiiaaaallll
0000////0000 ((((ssss0000////0000))))
Router(config)#iiiinnnntttt
eeeetttthhhheeeerrrrnnnneeeetttt 0000 ((((eeee0000))))
Router(config)#iiiinnnntttteeeerrrrffff
aaaacccceeee ffffaaaasssstttteeeetttthhhheeeerrrrnnnneeeetttt 0000
Router(config)#iiiinnnntttt
ffffaaaasssstttteeeetttthhhheeeerrrrnnnneeeetttt 0000////0000 ((((ffffaaaa0000////0000))))
Configuring an Ethernet/Fast Ethernet Interface 21
Moving Between Interfaces
What happens in Column 1 is the same thing as is occurring in Column 2.
Configuring a Serial Interface
TIP: The clock rate command is used only on a serial interface that has a DCE
cable plugged into it. There must be a clock rate set on every serial link between
routers. It does not matter which router has the DCE cable plugged into it, or which
interface the cable is plugged into. Serial 0 on one router can be plugged into
Serial 1 on another router.
Configuring an Ethernet/Fast Ethernet Interface
Router(config)#iiiinnnntttt ssss0000 Router(config)#iiiinnnntttt ssss0000 Moves to interface S0
mode
Router(config-if)#eeeexxxxiiiitttt Router(config-if)#iiiinnnntttt eeee0000 In int S0, move to E0
Router(config)#iiiinnnntttt eeee0000 Router(config-if)# In E0 mode now
Router(config-if)# Prompt does not
change; be careful
Router(config)#iiiinnnntttt ssss0000////0000 Moves to interface Serial 0/0
mode
Router(config-if)#ddddeeeessssccccrrrriiiippppttttiiiioooonnnn LLLLiiiinnnnkkkk ttttoooo IIIISSSSPPPP Optional descriptor of the link is
locally significant
Router(config-if)#iiiipppp aaaaddddddddrrrreeeessssssss 111199992222....111166668888....11110000....1111
222255555555....222255555555....222255555555....0000
Assigns address and subnet
mask to interface
Router(config-if)#cccclllloooocccckkkk rrrraaaatttteeee 55556666000000000000 Assigns a clock rate for the
interface
Router(config-if)#nnnnoooo sssshhhhuuuutttt Turns interface on
Router(config)#iiiinnnntttt ffffaaaa0000////0000 Moves to Fast Ethernet 0/0
interface mode
Router(config-if)#ddddeeeessssccccrrrriiiippppttttiiiioooonnnn AAAAccccccccoooouuuunnnnttttiiiinnnngggg LLLLAAAANNNN Optional descriptor of the
link is locally significant
22 Assigning a Local Host Name to an IP Address
Creating a MOTD Banner
Setting the Clock Time Zone
Assigning a Local Host Name to an IP Address
TIP: The default port number in the ip host command is 23, or Telnet. If you want
to Telnet to a device, just enter the IP host name itself:
Router#lllloooonnnnddddoooonnnn = Router#tttteeeellllnnnneeeetttt lllloooonnnnddddoooonnnn = Router#tttteeeellllnnnneeeetttt 111177772222....11116666....1111....3333
Router(config-if)#iiiipppp aaaaddddddddrrrreeeessssssss 111199992222....111166668888....22220000....1111
222255555555....222255555555....222255555555....0000
Assigns address and subnet
mask to interface
Router(config-if)#nnnnoooo sssshhhhuuuutttt Turns interface on
Router(config)#bbbbaaaannnnnnnneeeerrrr mmmmoooottttdddd #### TTTThhhhiiiissss iiiissss aaaa
sssseeeeccccuuuurrrreeee ssssyyyysssstttteeeemmmm.... AAAAuuuutttthhhhoooorrrriiiizzzzeeeedddd PPPPeeeerrrrssssoooonnnnnnnneeeellll OOOOnnnnllllyyyy!!!! ####
Router(config)#
# is known as a delimiting
character. The delimiting
character must surround the
banner message and can be
any character so long as it is
not a character used within
the body of the message
Router(config)#cccclllloooocccckkkk ttttiiiimmmmeeeezzzzoooonnnneeee EEEESSSSTTTT ––––5555 Sets the time zone for
display purposes. Based on
coordinated universal time
(Eastern Standard Time is 5
hours behind UTC)
Router(config)#iiiipppp hhhhoooosssstttt lllloooonnnnddddoooonnnn 111177772222....11116666....1111....3333 Assigns a host name to the
IP address. After this
assignment, you can use the
host name instead of an IP
address when trying to
Telnet or ping to that
address
Router#ppppiiiinnnngggg lllloooonnnnddddoooonnnn
=
Router#ppppiiiinnnngggg 111177772222....11116666....1111....3333
exec-timeout Command 23
no ip domain-lookup Command
TIP: Ever type in a command incorrectly and left having to wait for a minute or
two as the router tries to translate your command to a domain server of
255.255.255.255? The router is set by default to try to resolve any word that is not
a command to a DNS server at address 255.255.255.255. If you are not going to set
up DNS, turn this feature off to save you time as you type, especially if you are a
poor typist.
logging synchronous Command
TIP: Ever try to type in a command and an informational line appears in the
middle of what you were typing? Lose your place? Do not know where you are in
the command, so you just press ® and start all over? The logging
synchronous command will tell the router that if any informational items get
displayed on the screen, your prompt and command line should be moved to a
new line, so as not to confuse you.
The informational line does not get inserted into the middle of the command you
are trying to type. If you were to continue typing, the command would execute
properly, even though it looks wrong on the screen
exec-timeout Command
Router(config)#nnnnoooo iiiipppp ddddoooommmmaaaaiiiinnnn----llllooooooookkkkuuuupppp
Router(config)#
Turns off trying to
automatically resolve an
unrecognized command to a
local host name
Router(config)#lllliiiinnnneeee ccccoooonnnn 0000
Router(config-line)#llllooooggggggggiiiinnnngggg ssssyyyynnnncccchhhhrrrroooonnnnoooouuuussss Turns on synchronous
logging. Information items
sent to console will not
interrupt the command you
are typing. The command
will be moved to a new line
Router(config)#lllliiiinnnneeee ccccoooonnnn 0000
Router(config-line)#eeeexxxxeeeecccc----ttttiiiimmmmeeeeoooouuuutttt 0000 0000 Sets time limit when console
automatically logs off. Set to
0 0 (minutes seconds) means
console never logs off
Router(config-line)#
24 Configuration Example: Basic Router Configuration
TIP: exec-timeout 0 0 is great for a lab because the console never logs out. This
is very dangerous in the real world (bad security).
Saving Configurations
Erasing Configurations
TIP: Running-config is still in dynamic memory. Reload the router to clear the
running-config.
Configuration Example: Basic Router Configuration
Figure 3-1 shows the network topology for the configuration that follows, which shows a
basic router configuration using the commands covered in this chapter.
Figure 3-1 Network Topology for Basic Router Configuration
Router#ccccooooppppyyyy rrrruuuunnnn ssssttttaaaarrrrtttt Saves the running-config to local NVRAM
Router#ccccooooppppyyyy rrrruuuunnnn ttttffffttttpppp Saves the running-config remotely to TFTP server
Router#eeeerrrraaaasssseeee ssssttttaaaarrrrtttt Deletes the startup-config file from NVRAM
Boston Router
Router>eeeennnn Enters privileged mode
Router#cccclllloooocccckkkk sssseeeetttt 11118888::::33330000::::00000000 11115555 NNNNoooovvvv 2222000000004444 Sets local time on router
Router#ccccoooonnnnffffiiiigggg tttt Enters global config mode
Boston
Network 172.16.20.0/24Network 172.16.10.0/24 Network 172.16.30.0/24
fa0/0 fa0/0
172.16.20.1
s0/0172.16.10.10
172.16.10.1 172.16.30.1
172.16.30.30
DCE
s0/1
172.16.20.2 Buffalo
Configuration Example: Basic Router Configuration 25
Router(config)#hhhhoooossssttttnnnnaaaammmmeeee BBBBoooossssttttoooonnnn Sets router name to Boston
Boston(config)#nnnnoooo iiiipppp ddddoooommmmaaaaiiiinnnn----llllooooooookkkkuuuupppp Turns off name resolution on
unrecog-nized commands
(spelling mistakes)
Boston(config)#bbbbaaaannnnnnnneeeerrrr mmmmoooottttdddd ####
TTTThhhhiiiissss iiiissss tttthhhheeee BBBBoooossssttttoooonnnn RRRRoooouuuutttteeeerrrr....
AAAAuuuutttthhhhoooorrrriiiizzzzeeeedddd AAAAcccccccceeeessssssss OOOOnnnnllllyyyy
####
Creates an MOTD banner
Boston(config)#cccclllloooocccckkkk ttttiiiimmmmeeeezzzzoooonnnneeee EEEESSSSTTTT ––––5555 Sets time zone to Eastern
Standard Time (–5 from UTC)
Boston(config)#eeeennnnaaaabbbblllleeee sssseeeeccccrrrreeeetttt cccciiiissssccccoooo Enable secret password set to
cisco
Boston(config)#sssseeeerrrrvvvviiiicccceeee ppppaaaasssssssswwwwoooorrrrdddd----eeeennnnccccrrrryyyyppppttttiiiioooonnnn Passwords will be given weak
encryption
Boston(config)#lllliiiinnnneeee ccccoooonnnn 0000 Enters line console mode
Boston(config-line)#llllooooggggggggiiiinnnngggg ssssyyyynnnncccc Commands will not be
interrupted by unsolicited
messages
Boston(config-line)#ppppaaaasssssssswwwwoooorrrrdddd ccccllllaaaassssssss Sets password to class
Boston(config-line)#llllooooggggiiiinnnn Enables password checking at
login
Boston(config-line)#lllliiiinnnneeee vvvvttttyyyy 0000 4444 Moves to virtual Telnet lines 0
through 4
Boston(config-line)#ppppaaaasssssssswwwwoooorrrrdddd ccccllllaaaassssssss Sets password to class
Boston(config-line)#llllooooggggiiiinnnn Enables password checking at
login
Boston(config-line)#lllliiiinnnneeee aaaauuuuxxxx 0000 Moves to line auxiliary mode
Boston(config-line)#ppppaaaasssssssswwwwoooorrrrdddd ccccllllaaaassssssss Sets password to class
Boston(config-line)#llllooooggggiiiinnnn Enables password checking at
login
Boston(config-line)#eeeexxxxiiiitttt Moves back to global config
mode
26 Configuration Example: Basic Router Configuration
Boston(config)#nnnnoooo sssseeeerrrrvvvviiiicccceeee ppppaaaasssssssswwwwoooorrrrdddd----
eeeennnnccccrrrryyyyppppttttiiiioooonnnn
Turns off password encryption
Boston(config)#iiiinnnntttt ffffaaaa 0000////0000 Moves to Fast Ethernet 0/0
mode
Boston(config-if)#ddddeeeesssscccc EEEEnnnnggggiiiinnnneeeeeeeerrrriiiinnnngggg LLLLAAAANNNN Sets locally significant
description of the interface
Boston(config-if)#iiiipppp aaaaddddddddrrrreeeessssssss 111177772222....11116666....11110000....1111
222255555555....222255555555....222255555555....0000
Assigns IP address and subnet
mask to the interface
Boston(config-if)#nnnnoooo sssshhhhuuuutttt Turns on the interface
Boston(config-if)#iiiinnnntttt ssss0000////0000 Moves directly to Serial 0/0
mode
Boston(config-if)#ddddeeeesssscccc LLLLiiiinnnnkkkk ttttoooo BBBBuuuuffffffffaaaalllloooo
RRRRoooouuuutttteeeerrrr
Sets locally significant
description of the interface
Boston(config-if)#iiiipppp aaaaddddddddrrrreeeessssssss 111177772222....11116666....22220000....1111
222255555555....222255555555....222255555555....0000
Assigns IP address and subnet
mask to the interface
Boston(config-if)#cccclllloooocccckkkk rrrraaaatttteeee 55556666000000000000 Sets a clock rate for serial
transmission (DCE cable must
be plugged into this interface)
Boston(config-if)#nnnnoooo sssshhhhuuuutttt Turns on the interface
Boston(config-if)#eeeexxxxiiiitttt Moves back to global config
mode
Boston(config)#iiiipppp hhhhoooosssstttt bbbbuuuuffffffffaaaalllloooo 111177772222....11116666....22220000....2222 Sets a local host name
resolution to IP address
172.16.20.2
Boston(config)#eeeexxxxiiiitttt Moves back to privileged
mode
Boston#copy run start Saves running-config to
NVRAM

More Related Content

What's hot

Cisco labs practical5
Cisco labs practical5Cisco labs practical5
Cisco labs practical5Tai Lam
 
Cisco router command configuration overview
Cisco router command configuration overviewCisco router command configuration overview
Cisco router command configuration overview3Anetwork com
 
Cisco labs practical1
Cisco labs practical1Cisco labs practical1
Cisco labs practical1Tai Lam
 
Trik singkat STATIC ROUTING via cli Packet Tracer
Trik singkat STATIC ROUTING via cli Packet Tracer Trik singkat STATIC ROUTING via cli Packet Tracer
Trik singkat STATIC ROUTING via cli Packet Tracer Selamet Hariadi
 
Day 5.3 configuration of router
Day 5.3 configuration of routerDay 5.3 configuration of router
Day 5.3 configuration of routerCYBERINTELLIGENTS
 
Twin wheeler modified for arduino simplified serial protocol to sabertooth v2
Twin wheeler modified for arduino simplified serial protocol to sabertooth v2Twin wheeler modified for arduino simplified serial protocol to sabertooth v2
Twin wheeler modified for arduino simplified serial protocol to sabertooth v2josnihmurni2907
 
Cisco router basic configuration commands
Cisco router basic configuration commandsCisco router basic configuration commands
Cisco router basic configuration commandsCCNAStudyGuide
 
Routing protocol commands list
Routing protocol commands listRouting protocol commands list
Routing protocol commands listactsupport .com
 
Router configuration in packet tracer
Router configuration in packet  tracerRouter configuration in packet  tracer
Router configuration in packet tracerAnabia Anabia
 
The bryant advantage 150 commands
The bryant advantage 150 commandsThe bryant advantage 150 commands
The bryant advantage 150 commandsAreej Khasawneh
 
Intro to router_config
Intro to router_configIntro to router_config
Intro to router_configarjuntrk
 
Communication & switching networks lab manual
Communication & switching networks lab manualCommunication & switching networks lab manual
Communication & switching networks lab manualMUSAAB HASAN
 
The Router Explained Rroosend
The Router Explained RroosendThe Router Explained Rroosend
The Router Explained Rroosendrroosend
 

What's hot (20)

Cisco labs practical5
Cisco labs practical5Cisco labs practical5
Cisco labs practical5
 
Cisco router command configuration overview
Cisco router command configuration overviewCisco router command configuration overview
Cisco router command configuration overview
 
Ccna commands
Ccna commandsCcna commands
Ccna commands
 
Vo ip avanzado pt
Vo ip avanzado ptVo ip avanzado pt
Vo ip avanzado pt
 
Cisco labs practical1
Cisco labs practical1Cisco labs practical1
Cisco labs practical1
 
Trik singkat STATIC ROUTING via cli Packet Tracer
Trik singkat STATIC ROUTING via cli Packet Tracer Trik singkat STATIC ROUTING via cli Packet Tracer
Trik singkat STATIC ROUTING via cli Packet Tracer
 
Day 5.3 configuration of router
Day 5.3 configuration of routerDay 5.3 configuration of router
Day 5.3 configuration of router
 
Twin wheeler modified for arduino simplified serial protocol to sabertooth v2
Twin wheeler modified for arduino simplified serial protocol to sabertooth v2Twin wheeler modified for arduino simplified serial protocol to sabertooth v2
Twin wheeler modified for arduino simplified serial protocol to sabertooth v2
 
Ccna command
Ccna commandCcna command
Ccna command
 
Ccna commands
Ccna commands   Ccna commands
Ccna commands
 
Cisco router basic configuration commands
Cisco router basic configuration commandsCisco router basic configuration commands
Cisco router basic configuration commands
 
Routing protocol commands list
Routing protocol commands listRouting protocol commands list
Routing protocol commands list
 
Router configuration in packet tracer
Router configuration in packet  tracerRouter configuration in packet  tracer
Router configuration in packet tracer
 
The bryant advantage 150 commands
The bryant advantage 150 commandsThe bryant advantage 150 commands
The bryant advantage 150 commands
 
Intro to router_config
Intro to router_configIntro to router_config
Intro to router_config
 
Router commands
Router commandsRouter commands
Router commands
 
Communication & switching networks lab manual
Communication & switching networks lab manualCommunication & switching networks lab manual
Communication & switching networks lab manual
 
Cisco ios-cont
Cisco ios-contCisco ios-cont
Cisco ios-cont
 
The Router Explained Rroosend
The Router Explained RroosendThe Router Explained Rroosend
The Router Explained Rroosend
 
Basic Configurations on Router
Basic Configurations on RouterBasic Configurations on Router
Basic Configurations on Router
 

Viewers also liked

Part e7 i_sdio_wireless_lan_simplified_addendum_ver1.10_final_140325
Part e7 i_sdio_wireless_lan_simplified_addendum_ver1.10_final_140325Part e7 i_sdio_wireless_lan_simplified_addendum_ver1.10_final_140325
Part e7 i_sdio_wireless_lan_simplified_addendum_ver1.10_final_140325A.S.M Shmimul Islam.
 
Presentación presente progresivo curso English b1+
Presentación presente progresivo curso English b1+Presentación presente progresivo curso English b1+
Presentación presente progresivo curso English b1+Sofia Garcia Ochoa
 
Six essentialnutrients
Six essentialnutrientsSix essentialnutrients
Six essentialnutrientsNikki Crum
 
1000ccnaquestionsandanswers 091215082359-phpapp02
1000ccnaquestionsandanswers 091215082359-phpapp021000ccnaquestionsandanswers 091215082359-phpapp02
1000ccnaquestionsandanswers 091215082359-phpapp02A.S.M Shmimul Islam.
 
A new-method-of-high-speed-p2 p-file-transfer-using-sd-card-and-transferjet-t...
A new-method-of-high-speed-p2 p-file-transfer-using-sd-card-and-transferjet-t...A new-method-of-high-speed-p2 p-file-transfer-using-sd-card-and-transferjet-t...
A new-method-of-high-speed-p2 p-file-transfer-using-sd-card-and-transferjet-t...A.S.M Shmimul Islam.
 
Packettracersimulationlabl3routing 130306235157-phpapp02
Packettracersimulationlabl3routing 130306235157-phpapp02Packettracersimulationlabl3routing 130306235157-phpapp02
Packettracersimulationlabl3routing 130306235157-phpapp02A.S.M Shmimul Islam.
 

Viewers also liked (14)

Part e7 i_sdio_wireless_lan_simplified_addendum_ver1.10_final_140325
Part e7 i_sdio_wireless_lan_simplified_addendum_ver1.10_final_140325Part e7 i_sdio_wireless_lan_simplified_addendum_ver1.10_final_140325
Part e7 i_sdio_wireless_lan_simplified_addendum_ver1.10_final_140325
 
Presentación presente progresivo curso English b1+
Presentación presente progresivo curso English b1+Presentación presente progresivo curso English b1+
Presentación presente progresivo curso English b1+
 
Lec05
Lec05Lec05
Lec05
 
L1 msdos primer
L1 msdos primerL1 msdos primer
L1 msdos primer
 
Dos manual
Dos manualDos manual
Dos manual
 
Cf book
Cf bookCf book
Cf book
 
Six essentialnutrients
Six essentialnutrientsSix essentialnutrients
Six essentialnutrients
 
1000ccnaquestionsandanswers 091215082359-phpapp02
1000ccnaquestionsandanswers 091215082359-phpapp021000ccnaquestionsandanswers 091215082359-phpapp02
1000ccnaquestionsandanswers 091215082359-phpapp02
 
A new-method-of-high-speed-p2 p-file-transfer-using-sd-card-and-transferjet-t...
A new-method-of-high-speed-p2 p-file-transfer-using-sd-card-and-transferjet-t...A new-method-of-high-speed-p2 p-file-transfer-using-sd-card-and-transferjet-t...
A new-method-of-high-speed-p2 p-file-transfer-using-sd-card-and-transferjet-t...
 
33269198 all-commands-in-ms-dos
33269198 all-commands-in-ms-dos33269198 all-commands-in-ms-dos
33269198 all-commands-in-ms-dos
 
SKIN OCT
SKIN OCTSKIN OCT
SKIN OCT
 
Part e2 100
Part e2 100Part e2 100
Part e2 100
 
Kitchensafety
KitchensafetyKitchensafety
Kitchensafety
 
Packettracersimulationlabl3routing 130306235157-phpapp02
Packettracersimulationlabl3routing 130306235157-phpapp02Packettracersimulationlabl3routing 130306235157-phpapp02
Packettracersimulationlabl3routing 130306235157-phpapp02
 

Similar to Ccna command

Cisco router configuration tutorial
Cisco router configuration tutorialCisco router configuration tutorial
Cisco router configuration tutorialIT Tech
 
Cisco Internetworking Operating System (ios)
Cisco Internetworking Operating System (ios)Cisco Internetworking Operating System (ios)
Cisco Internetworking Operating System (ios)Netwax Lab
 
Chapter 04 - Router Conf
Chapter 04 - Router ConfChapter 04 - Router Conf
Chapter 04 - Router Confphanleson
 
How to Configure Routing Information Protocol (RIP)
How to Configure Routing Information Protocol (RIP)How to Configure Routing Information Protocol (RIP)
How to Configure Routing Information Protocol (RIP)IT Tech
 
Chapter5ccna
Chapter5ccnaChapter5ccna
Chapter5ccnarobertoxe
 
10 Command Line quan trọng để giao tiếp với Cisco IOs
10 Command Line quan trọng để giao tiếp với Cisco IOs10 Command Line quan trọng để giao tiếp với Cisco IOs
10 Command Line quan trọng để giao tiếp với Cisco IOsNhóc Nhóc
 
Intro to router_config
Intro to router_configIntro to router_config
Intro to router_config97148881557
 
CCNA at a glance
CCNA at a glanceCCNA at a glance
CCNA at a glanceVikas Raut
 
introduction-to-cisco-routers basic .ppt
introduction-to-cisco-routers basic .pptintroduction-to-cisco-routers basic .ppt
introduction-to-cisco-routers basic .pptnazeem1977
 
introduction-to-cisco-routers.ppt
introduction-to-cisco-routers.pptintroduction-to-cisco-routers.ppt
introduction-to-cisco-routers.pptRobelTsada
 
General lab documentation~cisco router configuration
General lab documentation~cisco router configurationGeneral lab documentation~cisco router configuration
General lab documentation~cisco router configurationsayedatif
 

Similar to Ccna command (20)

Ccna command
Ccna commandCcna command
Ccna command
 
Cisco router configuration tutorial
Cisco router configuration tutorialCisco router configuration tutorial
Cisco router configuration tutorial
 
Cisco Internetworking Operating System (ios)
Cisco Internetworking Operating System (ios)Cisco Internetworking Operating System (ios)
Cisco Internetworking Operating System (ios)
 
CCNA presentation.
CCNA presentation.CCNA presentation.
CCNA presentation.
 
Modes of router
Modes of routerModes of router
Modes of router
 
Chapter 04 - Router Conf
Chapter 04 - Router ConfChapter 04 - Router Conf
Chapter 04 - Router Conf
 
How to Configure Routing Information Protocol (RIP)
How to Configure Routing Information Protocol (RIP)How to Configure Routing Information Protocol (RIP)
How to Configure Routing Information Protocol (RIP)
 
Mod11
Mod11Mod11
Mod11
 
CCNA ALL IN ONE
CCNA ALL IN ONE CCNA ALL IN ONE
CCNA ALL IN ONE
 
Day 5.3 routercomponents
Day 5.3 routercomponentsDay 5.3 routercomponents
Day 5.3 routercomponents
 
Chapter5ccna
Chapter5ccnaChapter5ccna
Chapter5ccna
 
Chapter5ccna
Chapter5ccnaChapter5ccna
Chapter5ccna
 
10 Command Line quan trọng để giao tiếp với Cisco IOs
10 Command Line quan trọng để giao tiếp với Cisco IOs10 Command Line quan trọng để giao tiếp với Cisco IOs
10 Command Line quan trọng để giao tiếp với Cisco IOs
 
lab1
lab1lab1
lab1
 
Intro to router_config
Intro to router_configIntro to router_config
Intro to router_config
 
Labmannual
LabmannualLabmannual
Labmannual
 
CCNA at a glance
CCNA at a glanceCCNA at a glance
CCNA at a glance
 
introduction-to-cisco-routers basic .ppt
introduction-to-cisco-routers basic .pptintroduction-to-cisco-routers basic .ppt
introduction-to-cisco-routers basic .ppt
 
introduction-to-cisco-routers.ppt
introduction-to-cisco-routers.pptintroduction-to-cisco-routers.ppt
introduction-to-cisco-routers.ppt
 
General lab documentation~cisco router configuration
General lab documentation~cisco router configurationGeneral lab documentation~cisco router configuration
General lab documentation~cisco router configuration
 

Recently uploaded

%in ivory park+277-882-255-28 abortion pills for sale in ivory park
%in ivory park+277-882-255-28 abortion pills for sale in ivory park %in ivory park+277-882-255-28 abortion pills for sale in ivory park
%in ivory park+277-882-255-28 abortion pills for sale in ivory park masabamasaba
 
The Top App Development Trends Shaping the Industry in 2024-25 .pdf
The Top App Development Trends Shaping the Industry in 2024-25 .pdfThe Top App Development Trends Shaping the Industry in 2024-25 .pdf
The Top App Development Trends Shaping the Industry in 2024-25 .pdfayushiqss
 
HR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comHR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comFatema Valibhai
 
%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain
%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain
%in Bahrain+277-882-255-28 abortion pills for sale in Bahrainmasabamasaba
 
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️Delhi Call girls
 
The Guide to Integrating Generative AI into Unified Continuous Testing Platfo...
The Guide to Integrating Generative AI into Unified Continuous Testing Platfo...The Guide to Integrating Generative AI into Unified Continuous Testing Platfo...
The Guide to Integrating Generative AI into Unified Continuous Testing Platfo...kalichargn70th171
 
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfonteinmasabamasaba
 
LEVEL 5 - SESSION 1 2023 (1).pptx - PDF 123456
LEVEL 5   - SESSION 1 2023 (1).pptx - PDF 123456LEVEL 5   - SESSION 1 2023 (1).pptx - PDF 123456
LEVEL 5 - SESSION 1 2023 (1).pptx - PDF 123456KiaraTiradoMicha
 
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time ApplicationsUnveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time ApplicationsAlberto González Trastoy
 
BUS PASS MANGEMENT SYSTEM USING PHP.pptx
BUS PASS MANGEMENT SYSTEM USING PHP.pptxBUS PASS MANGEMENT SYSTEM USING PHP.pptx
BUS PASS MANGEMENT SYSTEM USING PHP.pptxalwaysnagaraju26
 
%in kempton park+277-882-255-28 abortion pills for sale in kempton park
%in kempton park+277-882-255-28 abortion pills for sale in kempton park %in kempton park+277-882-255-28 abortion pills for sale in kempton park
%in kempton park+277-882-255-28 abortion pills for sale in kempton park masabamasaba
 
Pharm-D Biostatistics and Research methodology
Pharm-D Biostatistics and Research methodologyPharm-D Biostatistics and Research methodology
Pharm-D Biostatistics and Research methodologyAnusha Are
 
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfonteinmasabamasaba
 
VTU technical seminar 8Th Sem on Scikit-learn
VTU technical seminar 8Th Sem on Scikit-learnVTU technical seminar 8Th Sem on Scikit-learn
VTU technical seminar 8Th Sem on Scikit-learnAmarnathKambale
 
A Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docxA Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docxComplianceQuest1
 
AI & Machine Learning Presentation Template
AI & Machine Learning Presentation TemplateAI & Machine Learning Presentation Template
AI & Machine Learning Presentation TemplatePresentation.STUDIO
 
Chinsurah Escorts ☎️8617697112 Starting From 5K to 15K High Profile Escorts ...
Chinsurah Escorts ☎️8617697112  Starting From 5K to 15K High Profile Escorts ...Chinsurah Escorts ☎️8617697112  Starting From 5K to 15K High Profile Escorts ...
Chinsurah Escorts ☎️8617697112 Starting From 5K to 15K High Profile Escorts ...Nitya salvi
 
ManageIQ - Sprint 236 Review - Slide Deck
ManageIQ - Sprint 236 Review - Slide DeckManageIQ - Sprint 236 Review - Slide Deck
ManageIQ - Sprint 236 Review - Slide DeckManageIQ
 
8257 interfacing 2 in microprocessor for btech students
8257 interfacing 2 in microprocessor for btech students8257 interfacing 2 in microprocessor for btech students
8257 interfacing 2 in microprocessor for btech studentsHimanshiGarg82
 

Recently uploaded (20)

%in ivory park+277-882-255-28 abortion pills for sale in ivory park
%in ivory park+277-882-255-28 abortion pills for sale in ivory park %in ivory park+277-882-255-28 abortion pills for sale in ivory park
%in ivory park+277-882-255-28 abortion pills for sale in ivory park
 
The Top App Development Trends Shaping the Industry in 2024-25 .pdf
The Top App Development Trends Shaping the Industry in 2024-25 .pdfThe Top App Development Trends Shaping the Industry in 2024-25 .pdf
The Top App Development Trends Shaping the Industry in 2024-25 .pdf
 
HR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comHR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.com
 
%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain
%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain
%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain
 
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
 
The Guide to Integrating Generative AI into Unified Continuous Testing Platfo...
The Guide to Integrating Generative AI into Unified Continuous Testing Platfo...The Guide to Integrating Generative AI into Unified Continuous Testing Platfo...
The Guide to Integrating Generative AI into Unified Continuous Testing Platfo...
 
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
 
LEVEL 5 - SESSION 1 2023 (1).pptx - PDF 123456
LEVEL 5   - SESSION 1 2023 (1).pptx - PDF 123456LEVEL 5   - SESSION 1 2023 (1).pptx - PDF 123456
LEVEL 5 - SESSION 1 2023 (1).pptx - PDF 123456
 
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time ApplicationsUnveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
 
BUS PASS MANGEMENT SYSTEM USING PHP.pptx
BUS PASS MANGEMENT SYSTEM USING PHP.pptxBUS PASS MANGEMENT SYSTEM USING PHP.pptx
BUS PASS MANGEMENT SYSTEM USING PHP.pptx
 
%in kempton park+277-882-255-28 abortion pills for sale in kempton park
%in kempton park+277-882-255-28 abortion pills for sale in kempton park %in kempton park+277-882-255-28 abortion pills for sale in kempton park
%in kempton park+277-882-255-28 abortion pills for sale in kempton park
 
Pharm-D Biostatistics and Research methodology
Pharm-D Biostatistics and Research methodologyPharm-D Biostatistics and Research methodology
Pharm-D Biostatistics and Research methodology
 
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
 
VTU technical seminar 8Th Sem on Scikit-learn
VTU technical seminar 8Th Sem on Scikit-learnVTU technical seminar 8Th Sem on Scikit-learn
VTU technical seminar 8Th Sem on Scikit-learn
 
A Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docxA Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docx
 
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICECHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
 
AI & Machine Learning Presentation Template
AI & Machine Learning Presentation TemplateAI & Machine Learning Presentation Template
AI & Machine Learning Presentation Template
 
Chinsurah Escorts ☎️8617697112 Starting From 5K to 15K High Profile Escorts ...
Chinsurah Escorts ☎️8617697112  Starting From 5K to 15K High Profile Escorts ...Chinsurah Escorts ☎️8617697112  Starting From 5K to 15K High Profile Escorts ...
Chinsurah Escorts ☎️8617697112 Starting From 5K to 15K High Profile Escorts ...
 
ManageIQ - Sprint 236 Review - Slide Deck
ManageIQ - Sprint 236 Review - Slide DeckManageIQ - Sprint 236 Review - Slide Deck
ManageIQ - Sprint 236 Review - Slide Deck
 
8257 interfacing 2 in microprocessor for btech students
8257 interfacing 2 in microprocessor for btech students8257 interfacing 2 in microprocessor for btech students
8257 interfacing 2 in microprocessor for btech students
 

Ccna command

  • 1. PARTIICCNA2 CHAPTER 3 Configuring a Router This chapter provides information and commands concerning the following topics: • Configuring a router, specifically: — Names — Passwords — Interfaces — MOTD banners — IP host tables — Saving and erasing your configurations • show commands to verify the router configurations Router Modes TIP: There are other modes than these. Not all commands work in all modes. Be careful. If you type in a command that you know is correct—show run, for example—and you get an error, make sure that you are in the correct mode. Router> User mode Router# Privileged mode Router(config)# Global configuration mode Router(config-if)# Interface mode Router(config-subif)# Subinterface mode Router(config-line)# Line mode Router(config-router)# Router configuration mode
  • 2. 18 Configuring Passwords Global Configuration Mode Configuring a Router Name This command works on both routers and switches. Configuring Passwords Works on both routers and switches. Router> Can see config, but not change Router# Can see config and move to make changes Router#config t Router(config)# Moves to global config mode This prompt indicates that you can start making changes Router(config)#hhhhoooossssttttnnnnaaaammmmeeee CCCCiiiissssccccoooo Name can be any word you choose Cisco(config)# Router(config)#eeeennnnaaaabbbblllleeee ppppaaaasssssssswwwwoooorrrrdddd cccciiiissssccccoooo Sets enable password Router(config)#eeeennnnaaaabbbblllleeee sssseeeeccccrrrreeeetttt ccccllllaaaassssssss Sets enable secret password Router(config)#lllliiiinnnneeee ccccoooonnnn 0000 Enters console-line mode Router(config-line)#ppppaaaasssssssswwwwoooorrrrdddd ccccoooonnnnssssoooolllleeee Sets console-line mode password to console Router(config-line)#llllooooggggiiiinnnn Enables password checking at login Router(config)#lllliiiinnnneeee vvvvttttyyyy 0000 4444 Enters vty line mode for all 5 vty lines Router(config-line)#ppppaaaasssssssswwwwoooorrrrdddd tttteeeellllnnnneeeetttt Sets vty password to telnet Router(config-line)#llllooooggggiiiinnnn Enables password checking at login
  • 3. show Commands 19 CAUTION: Enable secret password is encrypted by default. Enable password is not. For this reason, recommended practice is that you never use the enable password. Use only the enable secret password in a router configuration. CAUTION: You cannot set both enable secret and enable password to the same password. Doing so defeats the use of encryption. Password Encryption CAUTION: If you have turned on service password encryption, used it, and then turned it off, any passwords that you have encrypted will stay encrypted. New passwords will remain unencrypted show Commands Router(config)#lllliiiinnnneeee aaaauuuuxxxx 0000 Enters auxiliary line mode Router(config-line)#ppppaaaasssssssswwwwoooorrrrdddd backdoor Sets auxiliary line mode password to backdoor Router(config-line)#llllooooggggiiiinnnn Enables password checking at login Router(config)#sssseeeerrrrvvvviiiicccceeee ppppaaaasssssssswwwwoooorrrrdddd---- eeeennnnccccrrrryyyyppppttttiiiioooonnnn Applies a weak encryption to passwords Router(config)#eeeennnnaaaabbbblllleeee ppppaaaasssssssswwwwoooorrrrdddd cccciiiissssccccoooo Sets enable password to cisco Router(config)#lllliiiinnnneeee ccccoooonnnn 0000 … Router(config-line)#ppppaaaasssssssswwwwoooorrrrdddd CCCCiiiissssccccoooo Continue setting passwords as above … Router(config)#nnnnoooo sssseeeerrrrvvvviiiicccceeee ppppaaaasssssssswwwwoooorrrrdddd---- eeeennnnccccrrrryyyyppppttttiiiioooonnnn Turns off password encryption Router#sssshhhhoooowwww ???? Lists all show commands available Router#sssshhhhoooowwww iiiinnnntttteeeerrrrffffaaaacccceeeessss Displays statistics for all interfaces Router#sssshhhhoooowwww iiiinnnntttteeeerrrrffffaaaacccceeee sssseeeerrrriiiiaaaallll 0000 Displays statistics for a specific interface, in this case Serial 0 Router#sssshhhhoooowwww iiiipppp iiiinnnntttteeeerrrrffffaaaacccceeee bbbbrrrriiiieeeeffff Displays a summary of all interfaces, including status and IP address assigned
  • 4. 20 Interface Names Interface Names One of the biggest problems that new administrators face is the names of the interfaces on the different models of routers. The following chart lists the names of the Ethernet, Fast Ethernet, and Serial interfaces on the 2500, 1700, and 2600 series of routers. Router#sssshhhhoooowwww ccccoooonnnnttttrrrroooolllllllleeeerrrrssss sssseeeerrrriiiiaaaallll 0000 Displays statistics for interface hardware. Statistics display if the clock rate is set and if the cable is DCE, DTE, or not attached Router#sssshhhhoooowwww cccclllloooocccckkkk Displays time set on device Router#sssshhhhoooowwww hhhhoooossssttttssss Displays local host-to-IP address cache. These are the names and addresses of hosts on the network to which you can connect Router#sssshhhhoooowwww uuuusssseeeerrrrssss Displays all users connected to device Router#sssshhhhoooowwww hhhhiiiissssttttoooorrrryyyy Displays history of commands used Router#sssshhhhoooowwww ffffllllaaaasssshhhh Displays info about Flash memory Router#sssshhhhoooowwww vvvveeeerrrrssssiiiioooonnnn Displays info about loaded software version Router#sssshhhhoooowwww aaaarrrrpppp Displays the ARP table Router#sssshhhhoooowwww pppprrrroooottttooooccccoooollllssss Displays status of configured Layer 3 protocols Router#sssshhhhoooowwww ssssttttaaaarrrrttttuuuupppp----ccccoooonnnnffffiiiigggg Displays configuration saved in NVRAM Router#sssshhhhoooowwww rrrruuuunnnnnnnniiiinnnngggg----ccccoooonnnnffffiiiigggg Displays configuration currently running in RAM Fixed Interfaces (2500 Series) Modular (Removable) Interfaces (1700 Series) Modular (Removable) Interfaces (2600 Series) Router(config)#iiiinnnntttt eeeerrrrffffaaaacccceeee type port Router(config)#iiiinnnntttteeeerrrrffff aaaacccceeee type port Router(config)#iiiinnnntttteeeerrrrffffaaaacccceeee type slot/port Router(config)#iiiinnnntttt sssseeeerrrriiiiaaaallll0000 ((((ssss0000)))) Router(config)#iiiinnnntttteeeerrrrffff aaaacccceeee sssseeeerrrriiiiaaaallll 0000 Router(config)#iiiinnnntttt sssseeeerrrriiiiaaaallll 0000////0000 ((((ssss0000////0000)))) Router(config)#iiiinnnntttt eeeetttthhhheeeerrrrnnnneeeetttt 0000 ((((eeee0000)))) Router(config)#iiiinnnntttteeeerrrrffff aaaacccceeee ffffaaaasssstttteeeetttthhhheeeerrrrnnnneeeetttt 0000 Router(config)#iiiinnnntttt ffffaaaasssstttteeeetttthhhheeeerrrrnnnneeeetttt 0000////0000 ((((ffffaaaa0000////0000))))
  • 5. Configuring an Ethernet/Fast Ethernet Interface 21 Moving Between Interfaces What happens in Column 1 is the same thing as is occurring in Column 2. Configuring a Serial Interface TIP: The clock rate command is used only on a serial interface that has a DCE cable plugged into it. There must be a clock rate set on every serial link between routers. It does not matter which router has the DCE cable plugged into it, or which interface the cable is plugged into. Serial 0 on one router can be plugged into Serial 1 on another router. Configuring an Ethernet/Fast Ethernet Interface Router(config)#iiiinnnntttt ssss0000 Router(config)#iiiinnnntttt ssss0000 Moves to interface S0 mode Router(config-if)#eeeexxxxiiiitttt Router(config-if)#iiiinnnntttt eeee0000 In int S0, move to E0 Router(config)#iiiinnnntttt eeee0000 Router(config-if)# In E0 mode now Router(config-if)# Prompt does not change; be careful Router(config)#iiiinnnntttt ssss0000////0000 Moves to interface Serial 0/0 mode Router(config-if)#ddddeeeessssccccrrrriiiippppttttiiiioooonnnn LLLLiiiinnnnkkkk ttttoooo IIIISSSSPPPP Optional descriptor of the link is locally significant Router(config-if)#iiiipppp aaaaddddddddrrrreeeessssssss 111199992222....111166668888....11110000....1111 222255555555....222255555555....222255555555....0000 Assigns address and subnet mask to interface Router(config-if)#cccclllloooocccckkkk rrrraaaatttteeee 55556666000000000000 Assigns a clock rate for the interface Router(config-if)#nnnnoooo sssshhhhuuuutttt Turns interface on Router(config)#iiiinnnntttt ffffaaaa0000////0000 Moves to Fast Ethernet 0/0 interface mode Router(config-if)#ddddeeeessssccccrrrriiiippppttttiiiioooonnnn AAAAccccccccoooouuuunnnnttttiiiinnnngggg LLLLAAAANNNN Optional descriptor of the link is locally significant
  • 6. 22 Assigning a Local Host Name to an IP Address Creating a MOTD Banner Setting the Clock Time Zone Assigning a Local Host Name to an IP Address TIP: The default port number in the ip host command is 23, or Telnet. If you want to Telnet to a device, just enter the IP host name itself: Router#lllloooonnnnddddoooonnnn = Router#tttteeeellllnnnneeeetttt lllloooonnnnddddoooonnnn = Router#tttteeeellllnnnneeeetttt 111177772222....11116666....1111....3333 Router(config-if)#iiiipppp aaaaddddddddrrrreeeessssssss 111199992222....111166668888....22220000....1111 222255555555....222255555555....222255555555....0000 Assigns address and subnet mask to interface Router(config-if)#nnnnoooo sssshhhhuuuutttt Turns interface on Router(config)#bbbbaaaannnnnnnneeeerrrr mmmmoooottttdddd #### TTTThhhhiiiissss iiiissss aaaa sssseeeeccccuuuurrrreeee ssssyyyysssstttteeeemmmm.... AAAAuuuutttthhhhoooorrrriiiizzzzeeeedddd PPPPeeeerrrrssssoooonnnnnnnneeeellll OOOOnnnnllllyyyy!!!! #### Router(config)# # is known as a delimiting character. The delimiting character must surround the banner message and can be any character so long as it is not a character used within the body of the message Router(config)#cccclllloooocccckkkk ttttiiiimmmmeeeezzzzoooonnnneeee EEEESSSSTTTT ––––5555 Sets the time zone for display purposes. Based on coordinated universal time (Eastern Standard Time is 5 hours behind UTC) Router(config)#iiiipppp hhhhoooosssstttt lllloooonnnnddddoooonnnn 111177772222....11116666....1111....3333 Assigns a host name to the IP address. After this assignment, you can use the host name instead of an IP address when trying to Telnet or ping to that address Router#ppppiiiinnnngggg lllloooonnnnddddoooonnnn = Router#ppppiiiinnnngggg 111177772222....11116666....1111....3333
  • 7. exec-timeout Command 23 no ip domain-lookup Command TIP: Ever type in a command incorrectly and left having to wait for a minute or two as the router tries to translate your command to a domain server of 255.255.255.255? The router is set by default to try to resolve any word that is not a command to a DNS server at address 255.255.255.255. If you are not going to set up DNS, turn this feature off to save you time as you type, especially if you are a poor typist. logging synchronous Command TIP: Ever try to type in a command and an informational line appears in the middle of what you were typing? Lose your place? Do not know where you are in the command, so you just press ® and start all over? The logging synchronous command will tell the router that if any informational items get displayed on the screen, your prompt and command line should be moved to a new line, so as not to confuse you. The informational line does not get inserted into the middle of the command you are trying to type. If you were to continue typing, the command would execute properly, even though it looks wrong on the screen exec-timeout Command Router(config)#nnnnoooo iiiipppp ddddoooommmmaaaaiiiinnnn----llllooooooookkkkuuuupppp Router(config)# Turns off trying to automatically resolve an unrecognized command to a local host name Router(config)#lllliiiinnnneeee ccccoooonnnn 0000 Router(config-line)#llllooooggggggggiiiinnnngggg ssssyyyynnnncccchhhhrrrroooonnnnoooouuuussss Turns on synchronous logging. Information items sent to console will not interrupt the command you are typing. The command will be moved to a new line Router(config)#lllliiiinnnneeee ccccoooonnnn 0000 Router(config-line)#eeeexxxxeeeecccc----ttttiiiimmmmeeeeoooouuuutttt 0000 0000 Sets time limit when console automatically logs off. Set to 0 0 (minutes seconds) means console never logs off Router(config-line)#
  • 8. 24 Configuration Example: Basic Router Configuration TIP: exec-timeout 0 0 is great for a lab because the console never logs out. This is very dangerous in the real world (bad security). Saving Configurations Erasing Configurations TIP: Running-config is still in dynamic memory. Reload the router to clear the running-config. Configuration Example: Basic Router Configuration Figure 3-1 shows the network topology for the configuration that follows, which shows a basic router configuration using the commands covered in this chapter. Figure 3-1 Network Topology for Basic Router Configuration Router#ccccooooppppyyyy rrrruuuunnnn ssssttttaaaarrrrtttt Saves the running-config to local NVRAM Router#ccccooooppppyyyy rrrruuuunnnn ttttffffttttpppp Saves the running-config remotely to TFTP server Router#eeeerrrraaaasssseeee ssssttttaaaarrrrtttt Deletes the startup-config file from NVRAM Boston Router Router>eeeennnn Enters privileged mode Router#cccclllloooocccckkkk sssseeeetttt 11118888::::33330000::::00000000 11115555 NNNNoooovvvv 2222000000004444 Sets local time on router Router#ccccoooonnnnffffiiiigggg tttt Enters global config mode Boston Network 172.16.20.0/24Network 172.16.10.0/24 Network 172.16.30.0/24 fa0/0 fa0/0 172.16.20.1 s0/0172.16.10.10 172.16.10.1 172.16.30.1 172.16.30.30 DCE s0/1 172.16.20.2 Buffalo
  • 9. Configuration Example: Basic Router Configuration 25 Router(config)#hhhhoooossssttttnnnnaaaammmmeeee BBBBoooossssttttoooonnnn Sets router name to Boston Boston(config)#nnnnoooo iiiipppp ddddoooommmmaaaaiiiinnnn----llllooooooookkkkuuuupppp Turns off name resolution on unrecog-nized commands (spelling mistakes) Boston(config)#bbbbaaaannnnnnnneeeerrrr mmmmoooottttdddd #### TTTThhhhiiiissss iiiissss tttthhhheeee BBBBoooossssttttoooonnnn RRRRoooouuuutttteeeerrrr.... AAAAuuuutttthhhhoooorrrriiiizzzzeeeedddd AAAAcccccccceeeessssssss OOOOnnnnllllyyyy #### Creates an MOTD banner Boston(config)#cccclllloooocccckkkk ttttiiiimmmmeeeezzzzoooonnnneeee EEEESSSSTTTT ––––5555 Sets time zone to Eastern Standard Time (–5 from UTC) Boston(config)#eeeennnnaaaabbbblllleeee sssseeeeccccrrrreeeetttt cccciiiissssccccoooo Enable secret password set to cisco Boston(config)#sssseeeerrrrvvvviiiicccceeee ppppaaaasssssssswwwwoooorrrrdddd----eeeennnnccccrrrryyyyppppttttiiiioooonnnn Passwords will be given weak encryption Boston(config)#lllliiiinnnneeee ccccoooonnnn 0000 Enters line console mode Boston(config-line)#llllooooggggggggiiiinnnngggg ssssyyyynnnncccc Commands will not be interrupted by unsolicited messages Boston(config-line)#ppppaaaasssssssswwwwoooorrrrdddd ccccllllaaaassssssss Sets password to class Boston(config-line)#llllooooggggiiiinnnn Enables password checking at login Boston(config-line)#lllliiiinnnneeee vvvvttttyyyy 0000 4444 Moves to virtual Telnet lines 0 through 4 Boston(config-line)#ppppaaaasssssssswwwwoooorrrrdddd ccccllllaaaassssssss Sets password to class Boston(config-line)#llllooooggggiiiinnnn Enables password checking at login Boston(config-line)#lllliiiinnnneeee aaaauuuuxxxx 0000 Moves to line auxiliary mode Boston(config-line)#ppppaaaasssssssswwwwoooorrrrdddd ccccllllaaaassssssss Sets password to class Boston(config-line)#llllooooggggiiiinnnn Enables password checking at login Boston(config-line)#eeeexxxxiiiitttt Moves back to global config mode
  • 10. 26 Configuration Example: Basic Router Configuration Boston(config)#nnnnoooo sssseeeerrrrvvvviiiicccceeee ppppaaaasssssssswwwwoooorrrrdddd---- eeeennnnccccrrrryyyyppppttttiiiioooonnnn Turns off password encryption Boston(config)#iiiinnnntttt ffffaaaa 0000////0000 Moves to Fast Ethernet 0/0 mode Boston(config-if)#ddddeeeesssscccc EEEEnnnnggggiiiinnnneeeeeeeerrrriiiinnnngggg LLLLAAAANNNN Sets locally significant description of the interface Boston(config-if)#iiiipppp aaaaddddddddrrrreeeessssssss 111177772222....11116666....11110000....1111 222255555555....222255555555....222255555555....0000 Assigns IP address and subnet mask to the interface Boston(config-if)#nnnnoooo sssshhhhuuuutttt Turns on the interface Boston(config-if)#iiiinnnntttt ssss0000////0000 Moves directly to Serial 0/0 mode Boston(config-if)#ddddeeeesssscccc LLLLiiiinnnnkkkk ttttoooo BBBBuuuuffffffffaaaalllloooo RRRRoooouuuutttteeeerrrr Sets locally significant description of the interface Boston(config-if)#iiiipppp aaaaddddddddrrrreeeessssssss 111177772222....11116666....22220000....1111 222255555555....222255555555....222255555555....0000 Assigns IP address and subnet mask to the interface Boston(config-if)#cccclllloooocccckkkk rrrraaaatttteeee 55556666000000000000 Sets a clock rate for serial transmission (DCE cable must be plugged into this interface) Boston(config-if)#nnnnoooo sssshhhhuuuutttt Turns on the interface Boston(config-if)#eeeexxxxiiiitttt Moves back to global config mode Boston(config)#iiiipppp hhhhoooosssstttt bbbbuuuuffffffffaaaalllloooo 111177772222....11116666....22220000....2222 Sets a local host name resolution to IP address 172.16.20.2 Boston(config)#eeeexxxxiiiitttt Moves back to privileged mode Boston#copy run start Saves running-config to NVRAM