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

Saturday, 4 May 2019

Switch Configuration

Steps To Configure Switch 

1) Steps to go to Global Configuration mode

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


2) Step To Change Hostname

Switch1(config)#hostname s1


3) Step up Passwords

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


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

s1(config)#interface vlan1
s1(config-if)#ip address 192.168.0.1 255.255.255.0
s1(config-if)#no shut
s1(config-if)#desc Welcome to vlan1
s1(config-if)#exit


5)Step to Set up Banner.

s1(config)#banner motd #welcome #


6)Set up Encryption to Password 

s1(config)#service password-encryption 


7)Set up SSH for Switch

s1(config)#ip domain-name sdm.com
s1(config)#crypto key generate rsa
The name for the keys will be: s1.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]

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

0 comments:

Post a Comment