From Fedora Project Wiki
(Created page with '{{QA/Test_Case |description=This test is intended to test 802.1q vlan between virtual machines |actions= # boot two virtual machines # log into first virtual machine, and config...') |
No edit summary |
||
Line 3: | Line 3: | ||
|actions= | |actions= | ||
# boot two virtual machines | # boot two virtual machines | ||
# log into first virtual machine, and config the vlan through: ( join the vlan 10 )<pre>vconfig add eth0 10;ifconfig eht0.10 192.168.123.11</pre> | # log into first virtual machine, and config the vlan through: ( join the vlan 10 )<pre>vconfig add eth0 10;ifconfig eht0.10 192.168.123.11</pre> | ||
# log into second virtual machine, and config the vlan through: ( join the vlan 20 )<pre>vconfig add eth0 20;ifconfig eth0.20 192.168.123.12</pre> | # log into second virtual machine, and config the vlan through: ( join the vlan 20 )<pre>vconfig add eth0 20;ifconfig eth0.20 192.168.123.12</pre> | ||
# 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<pre>ping -c 10 192.168.123.12</pre> | # 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<pre>ping -c 10 192.168.123.12</pre> | ||
# log into second virtual machine, and config the vlan through: (join the vlan 10)<pre>vconfig rem eth0.20;vconfig add eth0 10;ifconfig eth0.10 192.168.123.12</pre> | # log into second virtual machine, and config the vlan through: (join the vlan 10)<pre>vconfig rem eth0.20;vconfig add eth0 10;ifconfig eth0.10 192.168.123.12</pre> | ||
# 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 | # 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 | ||
#for each guest (both first and second), remove the vlan config<pre>vconfig rem eth0.10</pre> | #for each guest (both first and second), remove the vlan config<pre>vconfig rem eth0.10</pre> | ||
|results= | |results= | ||
# Test results should meet requirements above | # Test results should meet requirements above | ||
}} | }} | ||
[[Category:Virtualization XenDomU Test Cases|Guest install]] | [[Category:Virtualization XenDomU Test Cases|Guest install]] |
Revision as of 07:09, 8 April 2010
Description
This test is intended to test 802.1q vlan between virtual machines
How to test
- boot two virtual machines
- 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
- 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
- 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
- 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
- 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
- for each guest (both first and second), remove the vlan config
vconfig rem eth0.10
Expected Results
- Test results should meet requirements above