From Fedora Project Wiki

Revision as of 06:55, 8 April 2010 by Liam (talk | contribs) (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...')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Description

This test is intended to test transfering data in promisc mode


How to test

  1. start the virtual machine
  2. create an 1G file in the host
    dd if=/dev/urandom of=/tmp/random bs=1024k count=1000 
  3. get che checksum of the random file
    md5sum /tmp/random
  4. 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
  5. in the meantime, scp the random file to the guest
    scp /tmp/random root@guest_ip:/tmp
  6. compare the md5sum for both guest and host
  7. kill the previous script in the guest
  8. restore the nic to non-promisc mode
    ifconfig eth0 -promisc

Expected Results

  1. compare the md5sum for both guest and host, if they are different, fail the whole testcase