search the web

Showing posts with label Initial configuration of Cisco routers. Show all posts
Showing posts with label Initial configuration of Cisco routers. Show all posts

Sunday, February 21, 2016

Initial configuration of Cisco routers

Initial configuration of Cisco routers

R1-2500
---------------------------------------------------
conf t
hostname R1-2500
enable secret cisco

line consol 0
password cisco
login
logging synchronous

exec-timeout 30 15
!This command means that if there is no activity through console for 30min 15 sec logout.
exit

line vty 0 4
password cisco
login
loggin synch
exit

no ip domain-lookup


banner motd #
-------------------------------------------------------------------------
Unauthorized access not allowed
-------------------------------------------------------------------------
#

!Configure IP address on R1

interface s0
ip address 192.168.1.2 255.255.255.0
no shut
exit
exit

write memory

---------------------------------------------------
BB
---------------------------------------------------
conf t
hostname BB-2610
enable secret cisco

line consol 0
password cisco
login
logging synchronous

exec-timeout 30 15
!This command means that if there is no activity through console for 30min 15 sec logout.
exit

line vty 0 4
password cisco
login
loggin synch
exit

no ip domain-lookup

interface s1/0
ip address 192.168.1.1 255.255.255.0
clock rate ?
clock rate 64000
no shut
exit

interface s1/1
ip address 192.168.2.1 255.255.255.0
no shut
clock rate 56000
exit

interface s1/2
ip address 192.168.3.1 255.255.255.0
no shut
clock rate 64000
exit

interface s1/3
ip address 192.168.4.1 255.255.255.0
no shut
clock rate 64000
exit

---------------------------------------------------
R2
---------------------------------------------------
conf t
hostname R2
enable secret cisco

line consol 0
password cisco
login
logging synchronous

exec-timeout 30 15
!This command means that if there is no activity through console for 30min 15 sec logout.
exit

line vty 0 4
password cisco
login
loggin synch
exit

no ip domain-lookup

interface s0
ip address 192.168.2.2 255.255.255.0
no shut
exit

---------------------------------------------------
R3-2612
---------------------------------------------------
conf t
hostname R3-2612
enable secret cisco

line consol 0
password cisco
login
logging synchronous

exec-timeout 30 15
!This command means that if there is no activity through console for 30min 15 sec logout.
exit

line vty 0 4
password cisco
login
loggin synch
exit

no ip domain-lookup

interface s0/0
ip address 192.168.3.2 255.255.255.0
no shut
exit


! we have troubleshooting commands
show ip interface brief
!This shows the information about the interaces, you see their names, whether they up or down.

show interface s0/0
!this show s the details about the interface

!To check the cable type connected to an interface type
sh controllers s0/0

!To check the version
show version

!To check the routing table of the cisco router
show ip route
!A router can route to networks stated in the routing table.