Router Configuration 4

You might also like

Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 3

ROUTER CONFIGURATION

1)assigning hostname
Router>
Router>enable
Router#configure terminal
Router(config)#hostname <name> *****SYNTAX

example-want to assign router name as R1


Router(config)#hostname R1
R1(config)#
--------------------------------------------------
2)assigning banner
R1(config)#banner motd #
"please donot touch the router"#
R1(config)#exit
R1#exit

OUTPUT:-
"please donot touch the router"
R1>

R1#show running-config
hostname R1
-------------------------------------------------
3)assigning password
--we can assign password in two modes
i)user mode
ii)privilege mode

i)user mode
--there are 3 types of passwords in this mode
a)console password
b)auxilliary password
c)telnet password

a)assigning console password


R1(config-line)#line console 0
R1(config-line)#password <password>===========================syntax
R1(config-line)#password cisco
R1(config-line)#login
R1(config-line)#exit
R1(config)#exit
R1#exit
User Access Verification
Password:

R1#show running-config
line con 0
password cisco
login

b)auxxilliary password
R1(config)#line aux 0
R1(config)#password <password>
R1(config)#login

R1#show running-config
line aux 0
password cisco1
login
!

c)telnet password
R1(config)#line vty 0 15
R1(config)#password <password>
R1(config)#login

R1#show running-config
line vty 0 4
password cisco2
login
line vty 5 15
password cisco2
login

ii)privilege mode
--in the privilege mode we can assign 2 types of passwords
a)unencrypted(enable password)
b)encrypted password(enable secret)

a)unencrypted
r1(config)#enable password <password>

R1#show running-config
enable password ccna

b)encrypted password
r1(config)#enable secret <password>
R1#show running-config
enable secret 5 $1$mERr$oqUZwTmXoTlvklf0QY3jZ1

--------------------------------------------------------
4.HOW TO SEE THE RUNNING CONFIGURATION
r1#show running-config
-------------------------------------------------------------
5.HOW TO SEE THE STARTUP CONFIGURATION
r1#show startup-config
----------------------------------------------------------
6.HOW TO COPY THE RUNNING CONFIGURATION
r1#copy running-config startup-config
r1#copy run start
r1#write
r1#wr
-----------------------------------------------------
7.HOW TO ASSIGN IP ADDRESS TO THE LAN PORT
r1>enable
r1#configure terminal
r1(config)#interface <interface type> <port number>*****************syntax

r1(config)#interface fastethernet 0/0


r1(config-if)#ip address <ip address> <subnet mask> **************syntax

r1(config-if)#ip address 10.1.1.1 255.0.0.0


r1(config-if)#no shutdown
r1(config-if)#exit
r1(config)#exit
r1#show ip interface brief------shows the all interface details on a single page
-----------------------------------------------------------------
8.HOW TO ASSIGN IP ADDRESS TO THE serial PORT
r1>enable
r1#configure terminal
r1(config)#interface serial 0/0
r1(config-if)#ip address <ip address> <subnet mask> **************syntax

r1(config-if)#ip address 12.1.1.1 255.0.0.0


r1(config-if)#no shutdown
r1(config-if)#clock rate 64000
r1(config-if)#exit
r1(config)#exit
r1#show ip interface brief------shows the all interface details on a single page

-------------------------------------------------------------
9.WHY CLOCKRATE 64000 COMMAND IS REQUIRED WHILE CONFIGURING SERIAL PORT
--in lab scnerios routers are connected back to back using serial cable but both
are dtes.can not communicate with each other.thats why we need to generate clock at
the one end of serial cable and make it as dce by using "clock rate 64000".once we
apply this command that side of the serial cable behaves like dce.but only one
side is permissible for clock rate command of the serial cable
----------------------------------------------------------------
10.WHAT IS TELNET?
--telnet is an application layer protocol based on TCP
--port number is 23
--it is used for remote administration
--it provides a command line interface for troubleshooting a remote device
--by default it is a secure service because it need administrative login and
password
--it provides a virtual login,so no physical port exists
--if we want to access a router though telnet then atleast one of the
communication port must be configured with ip address
--two passwords are compulsory
a)telnet password
b)privileged mode password
------------------------------------------------------------------
1.WHY WE NEED "clockrate 64000" command in serial interface?
--when we connect two routers back to back using a serial cable then we need to
generate clock at one side of the cable by using a command"clock rate 64000"
--we need to give this command because both the routers are DTE and can not
communicate with each other
--only one side we can convert as dce of a serial cable
---------------------------------------------------
11.what is the use of "no shutdown" command?
--by default all the communication ports of a router is in shutdown mode for
security.
--if we want to access any port we need to type "no shutdown" command to bring it
in working condition
---------------------------------------------------------
12.How to check the seial cable is DTE or DCE?
R1=show controllers <serial port number>
R1=show controllers s0/0

You might also like