Sunteți pe pagina 1din 21

Module 3

Configuring a Router

Version 3.1

CLI Command Modes

Version 3.1

Basic Steps to Configure a Router


1. Configure hostname
2. Configure passwords

Enable / enable secret

Console

Virtual terminal (vty)

3. Configure interfaces
4. Configure routing protocol
5. Configure hostname table
Version 3.1

Configuring the Router Hostname


Router#config t
Router(config)#hostname Router_A
Router_A(config)#exit
Router_A#

Version 3.1

Password Configuration
Passwords are set for:
privileged EXEC mode
Enable password (not used if secret password is
set)
Enable secret password (restricts going from user to
privileged)
line passwords
console interface
VTY or virtual terminals

Version 3.1

Password Configuration
Setting Passwords are set for:
privileged EXEC mode
Enable password
Router(config)#enable password password

Enable secret password


Router(config)#enable secret password

Version 3.1

Password Configuration
Setting Passwords are set for:
line passwords
console interface
Router(config)#line console 0
Router(config-line)#password password
Router(config-line)#login

VTY or virtual terminals


Router(config)#line vty 0 4
Router(config-line)#password password
Router(config-line)#login

Version 3.1

Password Configuration
Password Encryption may set
The service password-encryption command may
be used to set passwords to not display in clear text
when viewing running configuration.

Router(config)#line console 0
Router(config-line)#password password
Router(config-line)#login
Router(config-line)#service passwordencryption

Secret password is always encrypted even when the


command above is not used
Version 3.1

If no
password
is set for
virtual
terminal
sessions,
no one
can log
into the
router
using a
virtual
terminal
session

Password Configuration

Can set 5
different
passwords
for the VTY
lines
Version 3.1

show commands
show interfaces stats on the router interfaces
show controllers serial hardware info re serial
interfaces
show clock Shows the time set in the router
show hosts Displays a cached list of host names and
addresses
show users Displays all users who are connected to
the router
show history history of commands
show flash info about flash memory and the IOSs
stored there
Version 3.1

10

show commands
show version info about router and IOS running in
RAM
show ARP Displays the ARP table of the router
show protocol Displays the global and interface
specific status of any configured Layer 3 protocols
show startup-configuration Displays the saved
configuration located in NVRAM
show running-configuration Displays the
configuration currently running in RAM

Version 3.1

11

Configuring a serial interface

Version 3.1

12

Configuring a serial interface


Router#config t
Router(config)#interface serial 0/0
Router(config-if)#ip address 192.10.10.1 255.255.255.0
Router(config-if)#clock rate 56000 (if DCE is connected)
Router(config-if)#no shutdown

A router is by default
administratively down,
until it is brought up

A router is by default a DTE device 2 routers are usually not


joined together there is an intervening device that provides
the clocking between.
If there is no other device supplying a clock signal to the link,
then one must be configured on the router.
Version 3.1

13

Configuring a router

Both steps are used to remove an existing configuration


Version 3.1

14

Configuring an Ethernet interface


Ethernet
Router#config t
Router(config)#interface ethernet 0
Router(config-if)#ip address 192.10.10.1 255.255.255.0
Router(config-if)#no shutdown

FastEthernet
Router#config t
Router(config)#interface fastethernet 0
Router(config-if)#ip address 192.10.10.1 255.255.255.0
Router(config-if)#no shutdown
Version 3.1

15

Importance of Configuration Standards


Helps reduce complexity
Limits unplanned downtime
Limits events that may impact network performance

Version 3.1

16

Interface Descriptions
Identifies important information as to what the interface
is connected to
Ft_Worth#config t
Ft_Worth(config)#interface serial 0
Ft_Worth(config-if)#description WAN link to San Antonio
Ft_Worth(config-if)#ip address 192.10.10.1 255.255.255.0
Ft_Worth(config-if)#no shutdown

Version 3.1

17

Login Banners
They are seen by everyone (telnet, AUX port, console
port)
Can convey message to all users
Might want to include a warning not to access the
device
Use a delimiting character before and after
Router#config t
Router(config)#banner motd # Authorized Users Only!!! #

Version 3.1

18

Host Name Resolution


A global configuration command
Router(config)# ip host name ip addresses
Router(config)# ip host Dallas 192.168.1.23
192.168.2.57
Matches static name with IP address
Might think of it as a convenience not necessary, but
convenient to use names instead of addresses
Instead of using telnet 192.10.10.1 or ping 192.10.10.1, with a
host name resolution table just use ping NAME or telnet
NAME
Version 3.1

19

TFTP SERVER
Used to save a copy of the configuration on a computer
Router#copy running-config tftp
Software has to be set up beforehand and running
You will be prompted for information about IP address of
tftp server and the file name

Version 3.1

20

Saving Configuration Files

Version 3.1

21

S-ar putea să vă placă și