Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Last revision Both sides next revision | ||
mscom_lab2 [2015/04/22 10:42] beckmanf [Setup of the tftp server] |
mscom_lab2 [2016/05/02 20:38] beckmanf [Setup of the tftp server] - laptop to laptop |
||
---|---|---|---|
Line 5: | Line 5: | ||
To start a tftp server use the lab server below the table. The files will be stored in the /var/lib/tftpboot directory. Starting and stopping is done via | To start a tftp server use the lab server below the table. The files will be stored in the /var/lib/tftpboot directory. Starting and stopping is done via | ||
- | Make sure that you can create new files in the /var/lib/tftpboot file. | + | Make sure that you can create new files in the /var/lib/tftpboot directory. |
<code> | <code> | ||
change in file /etc/default/tftpd-hpa | change in file /etc/default/tftpd-hpa | ||
Line 42: | Line 42: | ||
</code> | </code> | ||
- | Now start the server on the lab pc and the client on your laptop. Test the tftp connection by transferring "hallo.txt" from the client to the server. Run wireshark on the client and on the server to observe the packets which are transferred. Sketch a message sequence chart. | + | Now start the server one of the laptops and the client on the other laptop. Test the tftp connection by transferring "hallo.txt" from the client to the server. Run wireshark on the client and on the server to observe the packets which are transferred. Sketch a message sequence chart. |
Line 59: | Line 59: | ||
<code> | <code> | ||
- | sudo tc qdisc add dev eth2 root netem delay 50 ms | + | sudo tc qdisc add dev eth2 root netem delay 50ms |
</code> | </code> | ||
Line 65: | Line 65: | ||
<code> | <code> | ||
- | sudo tc qdisc change dev eth2 root netem delay 10 ms | + | sudo tc qdisc change dev eth2 root netem delay 10ms |
</code> | </code> | ||
Line 71: | Line 71: | ||
<code> | <code> | ||
- | sudo tc qdisc change dev eth2 root netem delay 10 ms loss 10.0% | + | sudo tc qdisc change dev eth2 root netem delay 10ms loss 10.0% |
</code> | </code> | ||
Line 172: | Line 172: | ||
<code> | <code> | ||
sudo brctl addbr mybridge | sudo brctl addbr mybridge | ||
- | sudo brctl addif mybridge eth2 | + | sudo brctl addif mybridge eth1 |
sudo brctl show | sudo brctl show | ||
- | sudo brctl addif mybridge eth3 | + | sudo brctl addif mybridge eth2 |
+ | sudo ifconfig eth1 0.0.0.0 | ||
sudo ifconfig eth2 0.0.0.0 | sudo ifconfig eth2 0.0.0.0 | ||
- | sudo ifconfig eth3 0.0.0.0 | ||
sudo ifconfig mybridge up | sudo ifconfig mybridge up | ||
</code> | </code> |