You are on page 1of 33

S.Y.B.Sc.

IT ROLL NO:415

PRACTICAL NO 9
PART A
Aim : To configure telnet, SSH and Email
THEORY:
Telnet is an application protocol used on the Internet or local area network to provide a bidirectional
interactive text-oriented communication facility using a virtual terminal connection. User data is
interspersed in-band with Telnet control information in an 8-bit byte oriented data connection over
the Transmission Control Protocol (TCP).
Telnet was developed in 1969 beginning with RFC 15, extended in RFC 855, and standardized
as Internet Engineering Task Force (IETF) Internet Standard STD 8, one of the first Internet standards.
The name stands for "teletype network"
The term telnet is also used to refer to the software that implements the client part of the protocol.
Telnet client applications are available for virtually all computer platforms.

Secure Shell (SSH) is a cryptographic network protocol for operating network services securely over an


unsecured network. Typical applications include remote command-line, login, and remote command
execution, but any network service can be secured with SSH.
SSH provides a secure channel over an unsecured network by using a client–server architecture,
connecting an SSH client application with an SSH server. The protocol specification distinguishes
between two major versions, referred to as SSH-1 and SSH-2. The standard TCP port for SSH is 22.
SSH is generally used to access Unix-like operating systems, but it can also be used on Microsoft
Windows. Windows 10 uses OpenSSH as its default SSH client and SSH server.
SSH was designed as a replacement for Telnet and for unsecured remote shell protocols such as the
Berkeley rsh and the related rlogin and rexec protocols.

PRACTICAL:
Step 1:

CN PRACTICAL
S.Y.B.Sc.IT ROLL NO:415

 Drag and drop router and a pc


 Name them Mumbai HDFC Server and HDFC
 Connect them with straight through wire

Step 2:
 Open the router CLI
 Click on CLI
 A dialogue box will appear stating that would you like to enter the initial
configuration dialog?..[yes/no]…type no ENTER.
 Enter the following commands:
 Enable
 Config t
 Interface fa 0/0
 Ip address 192.168.10.3 255.255.255.0
 No shutdown
 Exit

 Go on pc
 Ip configuration
 Assign ip address as 192.168.10.4 and its subnet masks

Step 3:
 Go to router and ping pc by using do ping command
 Similarly go to command prompt of pc and ping the router
 If the ping works it means that they are connected.

Telnet Type 1

CN PRACTICAL
S.Y.B.Sc.IT ROLL NO:415

Step 4:

 Now go to router CLI


 Write the following command
 Line vty 0 15
 Password admin1
 Login
 Enable secret cisco
 Exit

CN PRACTICAL
S.Y.B.Sc.IT ROLL NO:415

Go to pc command prompt and type the following commands:


 telnet 192.168.10.3
 It will ask you for password
 Password: admin1
 Then write enable
 It will ask password again
 password: cisco

OUTPUT:

Telnet Type 2

Write the following commands on the router CLI


 Enable
 Password: cisco
 Config t
 Username syit privilege 15 password admin2
 line vty 0 4
 login local
 transport input ?

CN PRACTICAL
S.Y.B.Sc.IT ROLL NO:415

Go to pc command prompt and type the following commands:


 telnet 192.168.10.3
 Username: syit
 Password: admin2

OUTPUT:

Ssh configuration

Write the following commands on the router CLI


 enable
 config t
 hostname Mumbai

CN PRACTICAL
S.Y.B.Sc.IT ROLL NO:415

 ip domain-name cisco.com
 crypto key generate rsa
 How many bits in the modulus [512]: 1024
 username tyit privilege 15 password admin3
 line vty 0 4
 login local
 transport input all
 exit

CN PRACTICAL
S.Y.B.Sc.IT ROLL NO:415

Go to pc command prompt and type the following commands:


 ssh -l tyit 192.168.10.3
 password: admin3
OUTPUT:

Part-B
Step 1:
 Click on Network Devices and drag and drop Router 2620M.
 Click on Switches and drag and drop 3 switches 2950T-24.
 Click on End Devices and drag and drop 6 PC-PT.
 Click on connections and then click on Automatically Chosen Type Connections.
 Further do connections with all router, pc and switch.

CN PRACTICAL
S.Y.B.Sc.IT ROLL NO:415

Step 2:
 Click on Router R1 and go to CLI.
 enable
 config terminal
 interface fastEthernet 0/0
 ip address 192.168.10.1 255.255.255.0
 no shutdown

This will turn the port green

CN PRACTICAL
S.Y.B.Sc.IT ROLL NO:415

Step 3:

 Click on PC0 and go to Desktop.


 Click on IP Configurations.
 Give IP Address 192.168.10.2

CN PRACTICAL
S.Y.B.Sc.IT ROLL NO:415

Step 4:

 Click on PC1 and go to Desktop.


 Click on IP Configurations.
 Give IP Address 192.168.10.3

CN PRACTICAL
S.Y.B.Sc.IT ROLL NO:415

Step 5:

 Click on Admin and go to Desktop.


 Click on IP Configurations.
 Give IP Address 192.168.10.4

CN PRACTICAL
S.Y.B.Sc.IT ROLL NO:415

Step 6:

 Click on PC3 and go to Desktop.


 Click on IP Configurations.
 Give IP Address 192.168.10.5

CN PRACTICAL
S.Y.B.Sc.IT ROLL NO:415

Step 7:

 Click on PC4 and go to Desktop.


 Click on IP Configurations.
 Give IP Address 192.168.10.6

CN PRACTICAL
S.Y.B.Sc.IT ROLL NO:415

Step 8:

 Click on PC5 and go to Desktop.


 Click on IP Configurations.
 Give IP Address 192.168.10.7

CN PRACTICAL
S.Y.B.Sc.IT ROLL NO:415

Step 9:

 Configure Telnet:
 Click on R1 router and go to CLI.
 config terminal
 line vty 0
 password Pass123
 login
 logging synchronous
 exec-timeout 40
 motd-banner
 exit
 enable password
 exit

CN PRACTICAL
S.Y.B.Sc.IT ROLL NO:415

Step 10:

 Click on Admin PC and go to Desktop.


 Click on Command Prompt.
 ping 192.168.10.1
 As we can see 4 packets sent is received.
 This shows connections are done properly .
 telnet 192.168.10.1
 Password: Pass123
 Router>enable
 Password: Password
 Router# config terminal
 exit

CN PRACTICAL
S.Y.B.Sc.IT ROLL NO:415

Step 11:

 SSH:
 Click on R1 router and go to CLI.
 enable
 password: Password
 config terminal
 ip domain-name Technig.com
 username Shais Password Pass123
 hostname R1
 crypto key generate rsa
 How many bits in the modulus [512]: 1024
 ip ssh version 2
 ip ssh time-out 50

CN PRACTICAL
S.Y.B.Sc.IT ROLL NO:415

 ip ssh authentication-retries 4
 line vty 0
 transport input ssh
 password Pass123
 login
 logging synchronous
 motd-banner
 exit

CN PRACTICAL
S.Y.B.Sc.IT ROLL NO:415

Step 12:

 Click on Admin PC and go to desktop.


 Click on Command Prompt.
 >ssh –l Shais 192.168.10.1
 Password: Pass123
 Router>enable
 Password: Password
 #exit

CN PRACTICAL
S.Y.B.Sc.IT ROLL NO:415

Part C
Step 1:
 Configuration for E-mail:
 Click Network Devices and drag and drop Switch-PT.
 Click on Network Devices and drag and drop Router-PT.
 Click on End Devices and drag and drop 3 PC-PT.
 Click on End Devices and Drag and drop 1 Server-PT.
 Click on connections and then click on Automatically Chosen Type Connections.
 Further do connections with all router, pc, server and switch.

Step 2:
 Click on Router0 and go to Config.
 Select FastEthernet0/0
 Give Ip Address: 192.168.1.1.
 Click on the check box of port status to turn it on.
 Next select FastEthernet1/0

CN PRACTICAL
S.Y.B.Sc.IT ROLL NO:415

 Give Ip Address: 192.168.2.1.


 Click on the check box of port status to turn it on.

CN PRACTICAL
S.Y.B.Sc.IT ROLL NO:415

This will turn the red ports between switch and the server into green.

Step 3:
 Click on PC0 and go to Desktop.
 Click on IP Configurations.
 Give IP address as 192.168.1.2
 Give Default Gateway as 192.168.1.1.

CN PRACTICAL
S.Y.B.Sc.IT ROLL NO:415

Step 4:
 Click on PC1 and go to Desktop.
 Click on IP Configurations.
 Give IP address as 192.168.1.3
 Give Default Gateway as 192.168.1.1

CN PRACTICAL
S.Y.B.Sc.IT ROLL NO:415

Step 5:
 Click on PC2 and go to Desktop.
 Click on IP Configurations.
 Give IP address as 192.168.1.4
 Give Default Gateway as 192.168.1.1

CN PRACTICAL
S.Y.B.Sc.IT ROLL NO:415

Step 6:
 Click on Server0 and go to services.
 Select E-mail
 Give the domain name as: cisco.com and then click on Set.
 Next add User: pc0 and password:123
 Click on + button this will add.
 User: pc1 password: 456
 User: pc2 password: 789

CN PRACTICAL
S.Y.B.Sc.IT ROLL NO:415

Step 7:
 Click on PC0 and go to Desktop.
 Scroll down and then click on E-mail.
 Now configure E-mail.
 Give User information Your name: pc0
 E-mail Address: pc0@cisco.com
 Server Information:
 Incoming Mail Server: 192.168.2.2
 Outgoing Mail Server: 192.168.2.2
 Logon Information:
 Username: pc0
 Password:123
 Click on Save button.

CN PRACTICAL
S.Y.B.Sc.IT ROLL NO:415

 After configuring email, it will display Mail Browser.


 As we can see Compose Reply Receive and Configure Mail.

Step 8:
 Click on PC1 and go to Desktop.
 Scroll down and then click on E-mail.
 Now configure E-mail.
 Give User information your name: pc0
 E-mail Address: pc1@cisco.com
 Server Information:
 Incoming Mail Server: 192.168.2.2

CN PRACTICAL
S.Y.B.Sc.IT ROLL NO:415

 Outgoing Mail Server: 192.168.2.2


 Logon Information:
 Username: pc1
 Password: 456
 Click on save button.

 After configuring email, it will display Mail Browser.


 As we can see Compose, Reply, Receive and Configure Mail

CN PRACTICAL
S.Y.B.Sc.IT ROLL NO:415

Step 9:
 Click on PC2 and go to Desktop.
 Scroll down and then click on E-mail.
 Now configure E-mail.
 Give User information your name: pc0
 E-mail Address: pc2@cisco.com
 Server Information:
 Incoming Mail Server: 192.168.2.2
 Outgoing Mail Server: 192.168.2.2
 logon Information:
 Username: pc2
 Password: 789
 Click on save button.

 After configuring email, it will display Mail Browser.


 As we can see Compose, Reply, Receive and Configure Mail.

CN PRACTICAL
S.Y.B.Sc.IT ROLL NO:415

Step 10:
 Now we will send mail from pc0 to pc1.
 Click on PC0
 Click on compose.
 To: pc1@cisco.com
 Subject: Test
 Message: Hii PC1
 Click on send

CN PRACTICAL
S.Y.B.Sc.IT ROLL NO:415

Step 11:
 To check the mail, send from pc0 to pc1.
 Click on PC1.
 Click on receive.
 As we can see we have received mail from pc0@cisco.com.
 Click on the mail and below it will show the message as “Hello PC1”.

Step 12:
 Now we will send mail from pc1 to pc2.
 Click on compose.
 To: pc2@cisco.com
 Subject: Test 2
 Message: Hii PC2
 click on send

CN PRACTICAL
S.Y.B.Sc.IT ROLL NO:415

Step 13:
 To check the mail sends from pc1 to pc2.
 Click on PC2.
 Click on receive.
 As we can see we have received mail from pc1@cisco.com.
 Click on the mail and below it will show the message as “Hello PC2”.

CN PRACTICAL
S.Y.B.Sc.IT ROLL NO:415

CN PRACTICAL

You might also like