ccnav3.3 203
TRANSCRIPT
-
8/6/2019 CCNAv3.3 203
1/41
1
CCNA Semester 2
Chapter 03Chap
ter 03
CONFIGURINGCONFIGURINGA ROUTERA ROUTER
-
8/6/2019 CCNAv3.3 203
2/41
2
ObjectivesObjectives
Introduces the basic configuration modes ofthe router
Provides opportunities to practice simple
configurations.
-
8/6/2019 CCNAv3.3 203
3/41
3
Table of ContentTable of Content
1 Configuring a Router2 Finishing a configuration
-
8/6/2019 CCNAv3.3 203
4/41
4
CONFIGURING A ROUTERCONFIGURING A ROUTER
-
8/6/2019 CCNAv3.3 203
5/41
5
Overview of Router ModesOverview of Router Modes
-
8/6/2019 CCNAv3.3 203
6/41
6
Configuring a Router NameConfiguring a Router Name
A router should be given a unique name as one of the
first configuration tasks.
Router(config)#hostname Tokyo
Tokyo(config)#
-
8/6/2019 CCNAv3.3 203
7/417
Configuring Router PasswordsConfiguring Router Passwords
-
8/6/2019 CCNAv3.3 203
8/418
Other Console-Line CommandsOther Console-Line Commands
Router(config)#line console 0Router(config-line)#exec-timeout 0 0
Router(config)#line console 0Router(config-line)#logging synchronous
Prevents console session timeout
Redisplays interrupted console input
-
8/6/2019 CCNAv3.3 203
9/419
Examining theExamining the showshow CommandsCommands
There are many show commands that you can
use to examine the contents of files in therouter and for troubleshooting.
In both privileged EXEC and user EXEC
modes, the command show ? provides a listof available show commands.
-
8/6/2019 CCNAv3.3 203
10/411
Interface Configuration CommandsInterface Configuration Commands
-
8/6/2019 CCNAv3.3 203
11/411
Configuring an Ethernet InterfaceConfiguring an Ethernet Interface
To configure an Ethernet interface follow
these steps: Enter global configuration mode.
Enter interface configuration mode.
Specify the interface address and subnet
mask. Enable the interface.
-
8/6/2019 CCNAv3.3 203
12/411
ExampleExample
Router(config)#interface ethernet 0
Router(config-if)#ip address 200.1.4.1255.255.255.0
Router(config-if)#no shutdown
-
8/6/2019 CCNAv3.3 203
13/411
Serial Interface configuration stepSerial Interface configuration step
Enter global configuration mode
Enter interface mode Specify the interface address and subnet
mask
Set clock rate if a DCE cable is connected.Skip this step if a DTE cable is connected.
Turn on the interface
-
8/6/2019 CCNAv3.3 203
14/411
DTE - DCEDTE - DCE
-
8/6/2019 CCNAv3.3 203
15/411
Serial Connection in LabSerial Connection in Lab
-
8/6/2019 CCNAv3.3 203
16/411
ExampleExample
Router(config)#interface serial 0/0
Router(config-if)#clock rate 64000Router(config-if)#no shutdown
Determine DCE interface:
show controller
-
8/6/2019 CCNAv3.3 203
17/411
#configure terminal
(config)#interface serial 0
(config-if)#no shutdown
3-UPDOWN: Interface Seria0, changed state to upROTO-5-UPDOWN: Line Protocol on Interface Serial0, changed state to up
Enables an interface that is administratively shut down
figure terminal
fig)#interface serial 0
fig-if)#shutdown
ANGED: Interface Serial0, changed state to administratively down
-5-UPDOWN: Line protocol on Interface Serial0, changed state to down
Administratively turns off an interface
Disabling or Enabling an InterfaceDisabling or Enabling an Interface
-
8/6/2019 CCNAv3.3 203
18/411
Configuring Interface DescriptionsConfiguring Interface Descriptions
An interface description should be used toidentify important information such as a
distant router, a circuit number, or a specific
network segment.
-
8/6/2019 CCNAv3.3 203
19/411
Router show interfaces CommandRouter show interfaces Command
Router#show interfaces
Ethernet0 is up, line protocol is up
Hardware is Lance, address is 00e0.1e5d.ae2f (bia 00e0.1e5d.ae2f)
Internet address is 10.1.1.11/24
MTU 1500 bytes, BW 10000 Kbit, DLY 1000 usec, rely 255/255, load 1/255
Encapsulation ARPA, loopback not set, keepalive set (10 sec)
ARP type: ARPA, ARP Timeout 04:00:00
Last input 00:00:07, output 00:00:08, output hang neverLast clearing of "show interface" counters never
Queueing strategy: fifo
Output queue 0/40, 0 drops; input queue 0/75, 0 drops
5 minute input rate 0 bits/sec, 0 packets/sec
5 minute output rate 0 bits/sec, 0 packets/sec
81833 packets input, 27556491 bytes, 0 no buffer
Received 42308 broadcasts, 0 runts, 0 giants, 0 throttles
1 input errors, 0 CRC, 0 frame, 0 overrun, 1 ignored, 0 abort
0 input packets with dribble condition detected
55794 packets output, 3929696 bytes, 0 underruns
0 output errors, 0 collisions, 1 interface resets
0 babbles, 0 late collision, 4 deferred
0 lost carrier, 0 no carrier
0 output buffer failures, 0 output buffers swapped out
-
8/6/2019 CCNAv3.3 203
20/412
Interpreting the Interface StatusInterpreting the Interface Status
-
8/6/2019 CCNAv3.3 203
21/41
2
Verifying a Serial Interface ConfigurationVerifying a Serial Interface Configuration
Router#show interface serial 0
Serial0 is up, line protocol is up
Hardware is HD64570
Internet address is 10.140.4.2/24
MTU 1500 bytes, BW 64 Kbit, DLY 20000 usec, rely 255/255, load 1/255
Encapsulation HDLC, loopback not set, keepalive set (10 sec)
Last input 00:00:09, output 00:00:04, output hang never
Last clearing of "show interface" counters neverInput queue: 0/75/0 (size/max/drops); Total output drops: 0
Queueing strategy: weighted fair
Output queue: 0/1000/64/0 (size/max total/threshold/drops)
Conversations 0/1/256 (active/max active/max total)
Reserved Conversations 0/0 (allocated/max allocated)
5 minute input rate 0 bits/sec, 0 packets/sec
5 minute output rate 0 bits/sec, 0 packets/sec
(output omitted)
BW 64 Kbit,
-
8/6/2019 CCNAv3.3 203
22/41
2
Serial Interface show controller CommandSerial Interface show controller Command
Router#show controller serial 0
HD unit 0, idb = 0x121C04, driver structure at 0x127078
buffer size 1524 HD unit 0, V.35 DTE cable.
.
.
Router#show controller serial 0
HD unit 0, idb = 0x121C04, driver structure at 0x127078
buffer size 1524 HD unit 0, V.35 DTE cable
.
.
.
Shows the cable type of serial cables
V.35 DTE Cable
-
8/6/2019 CCNAv3.3 203
23/41
-
8/6/2019 CCNAv3.3 203
24/41
2
Configuring Message-of-the-Day (MOTD)Configuring Message-of-the-Day (MOTD)
-
8/6/2019 CCNAv3.3 203
25/41
2
Host Name ResolutionsHost Name Resolutions
Host name resolution is the process that a
computer system uses to associate a hostname with an IP address.
Host names, unlike DNS names, are
significant only on the router on which theyare configured.
-
8/6/2019 CCNAv3.3 203
26/41
2
Command:Command: ip host nameip host name
Global configuration mode.
The ip host command makes a static name-to-address entry in the router's configurationfile.
Example:# ip host LAB_A 192.168.2.1 192.168.10.1
# ip host 2323 Server_Unix 192.168.5.1
-
8/6/2019 CCNAv3.3 203
27/41
2
Configuring Host TablesConfiguring Host Tables
-
8/6/2019 CCNAv3.3 203
28/41
2
Command:Command: ip name-serverip name-server
Global configuration mode.
Defines which hosts can provide the nameservice.
Maximum of six IP addresses as nameservers in a single command.
Any time the OS software receives a hostname it does not recognize, it refers to DNSfor the IP address of that device.
Example:
# ip name-server 192.168.20.2203.162.3.253
-
8/6/2019 CCNAv3.3 203
29/41
2
Command:Command: ip name-serverip name-server
Global configuration mode.
Defines which hosts can provide the nameservice.
Maximum of six IP addresses as nameservers in a single command.
Any time the OS software receives a hostname it does not recognize, it refers to DNSfor the IP address of that device.
Example:
# ip name-server 192.168.20.2203.162.3.253
-
8/6/2019 CCNAv3.3 203
30/41
3
Command:Command: no ip domain-lookupno ip domain-lookup
Global configuration mode.
DNS is enabled by default with a serveraddress of 255.255.255.255, which is a local
broadcast.This command turns off name-to-addresstranslation in the router. This means that therouter will not generate or forward namesystem broadcast packets.
Example:
# no ip domain-lookup
-
8/6/2019 CCNAv3.3 203
31/41
3
Command:Command: show hostsshow hosts
User mode.
The show hosts command is used to displaya cached list of host names and addresses.
Example:# show hosts
-
8/6/2019 CCNAv3.3 203
32/41
3
ROUTER CONFIGURATION FILESROUTER CONFIGURATION FILES
-
8/6/2019 CCNAv3.3 203
33/41
3
Configuration fileConfiguration file
Contains commands to customize routeroperation.
The router uses this information when it
starts up.
-
8/6/2019 CCNAv3.3 203
34/41
3
Configuration filesConfiguration files
-
8/6/2019 CCNAv3.3 203
35/41
3
11.011.0 Configuration filesConfiguration files
-
8/6/2019 CCNAv3.3 203
36/41
3
Pre-Pre-11.011.0 Configuration filesConfiguration files
-
8/6/2019 CCNAv3.3 203
37/41
3
Configuration Backup and DocumentationConfiguration Backup and Documentation
Using theUsing the copy running-config tftpcopy running-config tftp
-
8/6/2019 CCNAv3.3 203
38/41
3
Using theUsing the copy running config tftpcopy running config tftp
CommandCommand
Using theUsing the copy tftp running-configcopy tftp running-config
-
8/6/2019 CCNAv3.3 203
39/41
3
Using theUsing the copy tftp running-configcopy tftp running-config
CommandCommand
-
8/6/2019 CCNAv3.3 203
40/41
4
SummarySummary
The router has several modes: User EXEC mode
Privileged EXEC mode
Global configuration mode
Other configuration modes.
The basic configuration: Configure hostname
Configure password Configure interface
Configure login banner
Host name resolution
Backup and document configuration.
-
8/6/2019 CCNAv3.3 203
41/41
Q&AQ&A