Interviews Questions, Algorithms, Aptitude, C Interview Program, C Theory Question, Aptitude Tricks, Test Series,

Saturday, 4 May 2019

Router Configuration

Steps To Configure Router 


1) Steps to go to Global Configuration mode

Router>en
Router#conf te
Enter configuration commands, one per line.  End with CNTL/Z.


2) Step To Change Hostname

Router(config)#hostname R1


3) Step up Passwords

R1(config)#enable secret cisco
R1(config)#line console 0
R1(config-line)#password class
R1(config-line)#login
R1(config-line)#exit


4) Step To Set up the IP address and description of VLAN.

R1(config)#interface FastEthernet 0/0
R1(config-if)#ip address 192.168.1.1 255.255.255.0
R1(config-if)#no shut
R1(config-if)#desc Welcome to R 0/0 Port
R1(config-if)#exit


5)Step to Set up Banner.

R1(config)#banner motd #welcome#


6)Set up Encryption to Password 

R1(config)#service password-encryption



7)Set up SSH for Switch

R1(config)#ip domain-name sdm.com
R1(config)#crypto key generate rsa
The name for the keys will be: R1.sdm.com
Choose the size of the key modulus in the range of 360 to 2048 for your
  General Purpose Keys. Choosing a key modulus greater than 512 may take
  a few minutes.
How many bits in the modulus [512]: 1024
% Generating 1024 bit RSA keys, keys will be non-exportable...[OK]

R1(config)#username amit password sdm
R1(config)#line vty 0 1
R1(config-line)#login local
R1(config-line)#transport input ssh
R1(config-line)#exit


8) Set up IP Address And Description For Serial Port. 


Router(config)#interface Serial 2/0
Router(config-if)#ip address 185.168.1.1 255.255.0.0
Router(config-if)#no shutdown
Router(config-if)#desc Router Serial Port 2/0
Router(config-if)#exit



9) Set up RIP Of Network of Surrounding

Router(config)#router rip
Router(config-router)#network 192.168.10.0
Router(config-router)#network 182.168.0.0
Router(config-router)#exit
Router(config)#


Note:
As the packet tracer in lab is old so, we have to use command prompt to demonstrate SSH in packet tracer if asked 
So the command is:

ssh -l username ip address

0 comments:

Post a Comment