• No results found

Laboration, Ping, Traceroute, etc

N/A
N/A
Protected

Academic year: 2021

Share "Laboration, Ping, Traceroute, etc"

Copied!
6
0
0

Loading.... (view fulltext now)

Full text

(1)

Laboration, Ping, Traceroute, etc

KTHNOC

31 augusti 2005

Sammanfattning

This lab will introduce you to some networking tools. Name:

Personnummer: Date:

(2)

1 Ifcong

Which interfaces are dened on your computer?

What ip-addresses are assigned to them?

On the interfaces with ip numbers: What is the interfaces' broadcast address?

What other information can you see on the interfaces?

2 Netstat

What TCP connections are up and running on your system?

Start an FTP connection to ftp.sunet.se. Which TCP connections are up now?

What ags should you use so that netstat avoids resolving ip numbers to domain names?

Take a look at the routing table. Are routing tables really necessary on a host?

3 Ping

Ping your neighbour's computer. Study the output of ping and be ready to describe what everything means.

Ping www.google.com. How is the output dierent from the previous ping?

Ping 130.237.32.51. How is the output dierent from the previous pings?

Ping ftp.sunet.se with TTL set to 1. What happens? Increment the

TTL and retry the command until you stop getting errors. Describe what happened.

(3)

4 Traceroute

How many router hops are there between you and the destinations below? Also: What do the hostnames (in the traceroute output) signify?

 rtfm.mit.edu  acs.ucalgary.ca  www.yahoo.se  210.155.130.190

What does traceroute do? What kind of conclusions can you draw from the output of traceroute? What do the times mean?

How can you get traceroute to send max two packets, jump a maximum

of ten hops and aim at www.nada.kth.se, port 80?

The following works only on SunOS.

Run:

>ping www.nada.kth.se and

>traceroute www.nada.kth.se

in two terminal windows. What happens?

5 Ethereal

Ethereal is a packet snier that enables you to inspect the packets on the network. In order to start Ehereal as root, you need to do the following:

su

xauth merge ∼student/.Xauthority

ethereal -i bge1 & or ethereal -i bge0 & depending on the setup of your

computer

Start a capture and set it to update list in real-time.

The ethereal window consists of three frames. A list of the captured pack-ets is shown in the top frame. When a packet in the list is marked, the content is shown in the middle and lower frames. The middle frame shows the packet in symbolic form, while the lower frame shows the packet in raw, hexadeci-mal format. In the middle frame, the elds may be expanded to show a more detailed view.

(4)

A session is started by clicking on CaptureStart. This brings up a cap-ture options window. Typically, the display option Update list of packets in real time and Automatic Scrolling in live capture should be selected. When started, the packets are shown in the main area, and a capture window is shown. To stop the capture, click on the stop button in this window.

Test some pings and study the output in ethereal. For example, investigate all the elds of a ping packet.

6 Arp

Take a look at your arp table.

How many tuples does your arp table contain?

How is the arp table built up?

Why is an arp table necessary on your computer?

7 Telnet

Before you start with this part of the lab, do the following:

1. Open the le /etc/inetd.conf as root with your favourite editor. 2. Every line in the le should be commented except for #telnet, #daytime

and #echo

3. Restart inetd by running: killall -HUP inetd

Use telnet to log into your neighbour's computer.

Use telnet to talk with httpd at www.nada.kth.se. To download the main web page (index.html), type: GET /.

Why is TCP and not UDP used for HTTP trac?

What are the advantages/disadvantages?

How do you suspend the telnet session? (i.e. leave the telnet session

temporarily)

How do you quit the telnet session?

Start a TCP session to thedaytime service on localhost.

(5)

8 Anonymous ftp

How do you log onto an ftp server anonymously?

What are the main dierences between normal ftp and anonymous ftp?

Why are both necessary?

Get the le rfc959.txt from ftp://ftp.ietf.org/rfc. Download

this le using the command line interface, and not netscape etc.

What do the following commands do in ftp?  user  image  ascii  get  put  mget/mput  cd  lcd  ls  prompt  hash

Take a quick look at the le rfc959.txt. What does it describe? What

do the following commands do in the FTP protocol?  USER

 CWD  TYPE  LIST

9 Mail

Start the smtp server with the command:/usr/sbin/sendmail -bd -q15 if sendmail hasn't already been started (ps ax|grep sendmail).

(6)

Use the command Mail -v [email protected] to send an email to your regular email account. The -v ag makes the tcp session verbose, so you can see what commands were used.

 Which lines are sent by your computer to the mail server?  Which lines are returned by the remote host?

 How did you see if the email was successfully sent?

Find out the domain name of your smtp server using the command: dig domain.name mx, where domain.name is the domain name part of your favourite email address. If this doesnt give you an domain name, try dig domain.name a to get an IP address instead.

Now telnet to your email server on port 25 (smtp port) and send an email manually by using these commands: HELO, MAIL, RCPT, DA-TA, and QUIT. Afterwards, check your favourite email account- did you receive the message?

References

Related documents

• SMTP protocol between mail servers to send email messages. • client: sending mail server • server: receiving

Mail Sender Protocol flow Email flow mail server user agent Mail Recipient user agent SMTP SMTP POP IMAP Local Mail Server!. The Email

To have your outbound email scanned, you configure your organization's SMTP server or your public hosted cloud email service to send email through the cloud security

- Email from: address to be used by PBX to send emails - SMTP mail server: mail server address used by the company - Port: listening port of the SMTP server.. - SMTP

When a user send an email, the email client will deliver the mail to the local SMTP server running on the Mail/File server. The SMTP server will then determine if the mail is

You need to enter details like your fully qualified primary domain name, administrator email ID, email ID for license notifications, mail server IP and port (the one specified for

If user use local area network (LAN) to send email , setting options include the sender’s name, email address, SMTP server address of the sender, SMTP server port, after

When the screen for your email account comes up, ensure that the “Server Information” for “Incoming mail server (POP3)” (mail.wctel.net) and “Outgoing Mail Server..