Skill test : Practical 1 – Basic Router Configuration

 

basic router configR1>en
R1#config t
Enter configuration commands, one per line. End with CNTL/Z.
R1(config)#hostname R1
R1(config)#interface fastethernet 0/0
R1(config-if)#description #student lab LAn#
R1(config-if)#ip address 192.168.20.1 255.255.255.0
R1(config-if)#no shutdown

R1(config-if)#
%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up

R1(config-if)#exit
R1(config)#banner motd #next schedule meeting is postponed#
R1(config)#banner motd #unauthorized access is prohbited! enter your user name and password #
R1(config)#ip host momo 172.16.1.1
R1(config)#no ip domain-lookup
R1(config)#line console 0
R1(config-line)#exec-timeout 0 0
R1(config-line)#logging schronous
R1(config-line)#loggin synchronous
R1(config-line)#password console
R1(config-line)#login
R1(config-line)#exit
R1(config)#

R1(config)#line vty 0 4
R1(config-line)#password telnet
R1(config-line)#login
R1(config-line)#exit
R1(config)#
R1(config)#enable secret cisco
R1(config)#exit
R1(config)#enable secret cisco
R1(config)#exit
R1#copy running-config startup-config
Destination filename [startup-config]?
Building configuration…
[OK]
R1#

R1#en
R1#config t
Enter configuration commands, one per line. End with CNTL/Z.
R1(config)#ip domain-name cisco.com
R1(config)#crypto key generate rsa
The name for the keys will be: R1.cisco.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)#line vty 0 4
R1(config-line)#transport input ssh
R1(config-line)#login local
R1(config-line)#exit
R1(config)#
R1(config)#username admin privilege 15 password cisco
R1(config)#

PC>telnet 192.168.20.1
Trying 192.168.20.1 …Openunauthorized access is prohbited! enter your user name and password
or
PC>ssh -l admin 192.168.20.1
Open
Passwor:
unauthorized access is prohbited! enter your user name and password

R1#

Advertisements

2 thoughts on “Skill test : Practical 1 – Basic Router Configuration

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s