The tcpdump command allows us to capture all or some
of the network traffic on a particular network device. In this
question use the tcpdump command to capture the behaviour of
a web page request emulated using lwp-request.
Capturing packets sucessfully can be tricky, especially since you have
to use the same network to talk to your machine, and you dont want to capture
that too... Therefore consider the following commands to perform the capturing.
prompt> tcpdump -vi eth0 port 80 > /tmp/log &
[1] 3123
prompt> lwp-request http://linuxzoo.net
...blah...blah
...blah...blah
prompt> kill -1 %1
[1]+ Done ....
prompt>
Now, look at the contents of /tmp/log and enter in the box below the
common TCP/IP flag which appears in most packets (The information can be found
between the [..] brackets immediately after the text "flags". Ignore the information after the text "Flags" e.g. look for the one all in lowercase). Enter the two letters seen in the box below.
What is the common TCP/IP flag seen in the log: (case sensitive)