====== Driver test: link interruption ====== ===== Rationale ===== Downloading a large file via HTTP provides an opportunity to test the ability of the card to cope with a temporary link loss. {{ :clipart:nic.jpeg?237x222|A network card}} ===== Preparation ====== Create a 512MB file containing pseudo-random data, using e.g.: dd if=/dev/urandom of=512mb bs=1M count=512 Copy your pseudo-random data file to a web server on your local network. ===== Test sequence ===== - Before starting, ensure the network cable is connected to a network which provides a DHCP server and a web server which can serve your pseudo-random data file. - Boot into iPXE. - Use ifstat to identify the name of your network interface (hereafter assumed to be ''net0''). - Open the interface and obtain an IP address using ''[[:cmd:dhcp]] net0''. - Download the pseudo-random data file using ''[[:cmd:imgfetch]]''. - Before the transfer completes, disconnect the network cable. - Verify that the transfer stops making progress. - After a few seconds, reconnect the network cable. - Verify that the transfer resumes and completes successfully.