VirtualBox

Changes between Initial Version and Version 1 of Ticket #16233


Ignore:
Timestamp:
Dec 6, 2016 11:55:06 AM (8 years ago)
Author:
Frank Mehnert
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #16233 – Description

    initial v1  
    33Steps to reproduce:
    44
    5 1) Install OS Linux on PC.
    6         In my case: Ubuntu 14.04.5
    7         kernel 4.2.0-42-generic X86_64
    8 2) Install Virtualbox ( in my case ver. 5.1.10 r112026 (Qt5.6.1) ) from http://download.virtualbox.org/virtualbox/5.1.10/virtualbox-5.1_5.1.10-112026~Ubuntu~trusty_amd64.deb
     5 1. Install OS Linux on PC.
     6 In my case: Ubuntu 14.04.5
     7 kernel 4.2.0-42-generic X86_64
    98
    10 3) Download and install guest Linux OS.
    11         In my case Ubuntu 16.04.01 (http://releases.ubuntu.com/16.04/ubuntu-16.04.1-server-i386.iso)
    12 4) On host system create tap interface:
    13 {{
     9 2. Install !VirtualBox (in my case ver. 5.1.10 !r112026 (Qt5.6.1)) from [http://download.virtualbox.org/virtualbox/5.1.10/virtualbox-5.1_5.1.10-112026~Ubuntu~trusty_amd64.deb here]
     10
     11 3. Download and install guest Linux OS.
     12 In my case Ubuntu 16.04.01 from [http://releases.ubuntu.com/16.04/ubuntu-16.04.1-server-i386.iso here]
     13
     14 4. On host system create tap interface:
     15{{{
    1416ip tuntap add dev tap10 mode tap
    1517ip link set dev tap10 up
    16 }}
    17 5) In guest VM netwrok settings set network adapter to "bridge" mode to interface tap10
     18}}}
     19 5. In guest VM netwrok settings set network adapter to "bridge" mode to interface tap10
    1820{{{
    1921vboxmanage modifyvm TESTVM --nic2 bridged
     
    2123}}}
    2224       
    23         All other network settings may be set to default. I tried to change the "adapter type" and "promiscuous mode". Their change does not change the result.
     25 All other network settings may be set to default. I tried to change the "adapter type" and "promiscuous mode". Their change does not change the result.
    2426       
    25 6) Create QINQ subinterface on host interface tap10 with inner vlan 2000 and outer vlan 100 and set ip address (type of protocol 802.1q or 802.1ad not important. This change does not change the result):
     27 6. Create QINQ subinterface on host interface tap10 with inner vlan 2000 and outer vlan 100 and set ip address (type of protocol 802.1q or 802.1ad not important. This change does not change the result):
    2628{{{
    2729ip link add link tap10 tap10.100 type vlan proto 802.1q id 100
     
    3234}}}
    3335       
    34 7) Start up guest VM and determine which interface bridged with tap10
     36 7. Start up guest VM and determine which interface bridged with tap10
    3537        In my case this is a '''enp0s8'''
    36 8) Create QINQ subinterface on VM interface which bridged with tap10 with inner vlan 2000 and outer vlan 100 and set ip address (type of protocol 802.1q or 802.1ad not important. This change does not change the result):
     38 8. Create QINQ subinterface on VM interface which bridged with tap10 with inner vlan 2000 and outer vlan 100 and set ip address (type of protocol 802.1q or 802.1ad not important. This change does not change the result):
    3739{{{
    3840ip link set up enp0s8
     
    4345ip addr add 10.11.12.2/24 dev enp0s8.100.2000
    4446}}}
    45 9) start watch for traffic on host PC on tap10 interface:
     47 9. start watch for traffic on host PC on tap10 interface:
    4648{{{
    4749tcpdump -i tap10 -vvv -e
    4850}}}
    49 for creating pcap file
     51 for creating pcap file
    5052{{{
    5153tcpdump -i tap10 -vvv -e -w qinqPC.pcap
    5254}}}
    5355       
    54 10) start watch for traffic in guest VM on "physical" interface:
     56 10. start watch for traffic in guest VM on "physical" interface:
    5557{{{
    5658tcpdump -i enp0s8 -vvv -e
    5759}}}
    58 for creating pcap file
     60 for creating pcap file
    5961{{{
    6062tcpdump -i enp0s8 -vvv -e -w qinqVM.pcap
    6163}}}
    6264       
    63 11) Try to ping 10.11.12.2 from 10.11.12.1 (Host PC => Guest VM)
     65 11. Try to ping 10.11.12.2 from 10.11.12.1 (Host PC => Guest VM)
    6466{{{
    6567ping 10.11.12.2
    6668}}}
    6769       
    68 12) You should get the following results:
    69 on physical PC (tap10):
     70 12. You should get the following results:[[BR]]
     71 on physical PC (tap10):
    7072{{{
    717321:22:06.345997 f6:4e:f0:31:76:45 (oui Unknown) > Broadcast, ethertype 802.1Q (0x8100), length 50: vlan 100, p 0, ethertype 802.1Q, vlan 2000, p 0, ethertype ARP, Ethernet (len 6), IPv4 (len 4), Request who-has 10.11.12.2 tell 10.11.12.1, length 28
     
    737521:22:08.346032 f6:4e:f0:31:76:45 (oui Unknown) > Broadcast, ethertype 802.1Q (0x8100), length 50: vlan 100, p 0, ethertype 802.1Q, vlan 2000, p 0, ethertype ARP, Ethernet (len 6), IPv4 (len 4), Request who-has 10.11.12.2 tell 10.11.12.1, length 28
    7476}}}
    75 on VM (enp0s8):
     77 on VM (enp0s8):
    7678{{{
    777921:30:21.737754 f6:4e:f0:31:76:45 (oui Unknown) > Broadcast, ethertype 802.1Q (0x8100), length 64: vlan 2000, p 0, ethertype ARP, Ethernet (len 6), IPv4 (len 4), Request who-has 10.11.12.2 tell 10.11.12.1, length 46

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy