From Fedora Project Wiki
(Created page with '{{QA/Test_Case |description=This test is intended to test transfering data in promisc mode |actions= # start the virtual machine # create an 1G file in the host<pre>dd if=/dev/ur...') |
No edit summary |
||
Line 21: | Line 21: | ||
# compare the md5sum for both guest and host, if they are different, fail the whole testcase | # compare the md5sum for both guest and host, if they are different, fail the whole testcase | ||
}} | }} | ||
[[Category: | [[Category:Virtualization_Networking_Test_Cases]] |
Latest revision as of 10:00, 8 April 2010
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