QA:Testcase Virtualization 802.1q Vlan

From FedoraProject

Jump to: navigation, search

Description

This test is intended to test 802.1q vlan between virtual machines


How to test

  1. boot two virtual machines
  2. log into first virtual machine, and config the vlan through: ( join the vlan 10 )
    vconfig add eth0 10;ifconfig eht0.10 192.168.123.11
  3. log into second virtual machine, and config the vlan through: ( join the vlan 20 )
    vconfig add eth0 20;ifconfig eth0.20 192.168.123.12
  4. ping the second virtual machine in the first virtual machine and check the packet loss, if the packet loss is not 100%, fail the whole test case
    ping -c 10 192.168.123.12
  5. log into second virtual machine, and config the vlan through: (join the vlan 10)
    vconfig rem eth0.20;vconfig add eth0 10;ifconfig eth0.10 192.168.123.12
  6. ping the second virtual machine in the first virtualmachine and check the packet loss, if the packet loss is not 0%, fail the whole test case
  7. for each guest (both first and second), remove the vlan config
    vconfig rem eth0.10

Expected Results

  1. Test results should meet requirements above