Professional Documents
Culture Documents
442G Chira Carmen Lab1
442G Chira Carmen Lab1
Laboratory 1
Q1: Insert in the lab sheet the results of the ifconfig command on both c1 and c2
Q2: Insert in the lab sheet the results of the ping command on both c1 and c2.
1
Chira Carmen Alexandra 442G
Q4: Open the file capture.pcap with Wireshark packet analyser. Analyse the content
of the captured packets. Insert in the lab sheet a capture with the capture.pcap
opened in Wireshark.
Q5: Insert pictures with the directory tree of the lab and the content of the .startup files
2
Chira Carmen Alexandra 442G
Q7: Insert picture with the packets captured with tcpdump command on r1.
• Specify which protocols the captured packets belong to.
• Which are the messages exchanged in case of a successful ping command?
A: The
protocols used are
ICMP and ARP.
The messages changed
are echo request (from
C1 to C2) and echo
reply (from C2 to C1 );
and ARP request (from
C1 broadcast on the
CD) and ARP reply
(unicast from C2 to C1)
3
Chira Carmen Alexandra 442G
Q11: With ping from c1 the c3 started capture the packets on interface eth1 of r1 using
tcpdump.
• Insert on lab sheet a screenshot of the tcpdump capture.
• Do the icmp packets arrive from c1 to r1 on interface eth1? Why?
Q12: With ping from c1 the c3 started capture the packets on interface eth1 of r1 using
tcpdump.
• Insert on lab sheet a screenshot of the tcpdump capture.
• Do the icmp packets arrive from c1 to r1? Why?
• What type of icmp packets travels through eth0?
4
Chira Carmen Alexandra 442G
A: After configuring the default gateway on the eth0 interface of R1, the ICMP
packets (Echo request) arrive on the eth1 interface of the router, but there is no reply. This
happens because the default gateway on C3 is not configured yet. However, we can say that
on the collision domain A, the request is working properly.
Q13: Insert on lab sheet a screenshot of the routing table on c1 (command route -n).
Q15: With ping from c1 the c3 started capture the packets on interface eth0 of c3 using
tcpdump.
• Insert in the lab sheet a screenshot of the tcpdump capture.
• Do the icmp packets from c1 arrive at c3?
• What type of icmp packets arrive at c3?
• Why c3 does not respond to c1?
5
Chira Carmen Alexandra 442G
Q16: With ping from c1 the c3 started capture the packets on interface eth0 of c3 using
tcpdump.
• What type of icmp packets are captured at c3 now?
• What type of packets does c3 use to respond to c1?
A: - At C3 the packets captured are ICMP echo request and echo reply.
-C3 uses ICMP echo reply packets to respond.
6
Chira Carmen Alexandra 442G
Q17: With ping from c1 the c3 started capture the packets on interface eth0 of c3 using
tcpdump.
• What type of icmp packets are captured at c3 now?
• What type of packets does c3 use to respond to c1?
A: Same answers as the previous question
Q18: With ping from c1 the c3 started capture the packets on interface eth0 of r1 using
tcpdump.
• What icmp packets captures r1?