From Fedora Project Wiki
Description
This test is intended to test transfering data in promisc mode
How to test
- start the virtual machine
- create an 1G file in the host
dd if=/dev/urandom of=/tmp/random bs=1024k count=1000
- get che checksum of the random file
md5sum /tmp/random
- open a guest session and execute the following command to switch between promisc and non-promisc mode:
- while true; do
- ifconfig eth0 promisc
- sleep 0.01
- ifconfig eth0 -promisc
- sleep 0.01
- done
- in the meantime, scp the random file to the guest
scp /tmp/random root@guest_ip:/tmp
- compare the md5sum for both guest and host
- kill the previous script in the guest
- restore the nic to non-promisc mode
ifconfig eth0 -promisc
Expected Results
- compare the md5sum for both guest and host, if they are different, fail the whole testcase