Changes between Initial Version and Version 1 of Ticket #16233
- Timestamp:
- Dec 6, 2016 11:55:06 AM (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #16233 – Description
initial v1 3 3 Steps to reproduce: 4 4 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 9 8 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 {{{ 14 16 ip tuntap add dev tap10 mode tap 15 17 ip link set dev tap10 up 16 }} 17 5)In guest VM netwrok settings set network adapter to "bridge" mode to interface tap1018 }}} 19 5. In guest VM netwrok settings set network adapter to "bridge" mode to interface tap10 18 20 {{{ 19 21 vboxmanage modifyvm TESTVM --nic2 bridged … … 21 23 }}} 22 24 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. 24 26 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): 26 28 {{{ 27 29 ip link add link tap10 tap10.100 type vlan proto 802.1q id 100 … … 32 34 }}} 33 35 34 7)Start up guest VM and determine which interface bridged with tap1036 7. Start up guest VM and determine which interface bridged with tap10 35 37 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): 37 39 {{{ 38 40 ip link set up enp0s8 … … 43 45 ip addr add 10.11.12.2/24 dev enp0s8.100.2000 44 46 }}} 45 9)start watch for traffic on host PC on tap10 interface:47 9. start watch for traffic on host PC on tap10 interface: 46 48 {{{ 47 49 tcpdump -i tap10 -vvv -e 48 50 }}} 49 for creating pcap file51 for creating pcap file 50 52 {{{ 51 53 tcpdump -i tap10 -vvv -e -w qinqPC.pcap 52 54 }}} 53 55 54 10)start watch for traffic in guest VM on "physical" interface:56 10. start watch for traffic in guest VM on "physical" interface: 55 57 {{{ 56 58 tcpdump -i enp0s8 -vvv -e 57 59 }}} 58 for creating pcap file60 for creating pcap file 59 61 {{{ 60 62 tcpdump -i enp0s8 -vvv -e -w qinqVM.pcap 61 63 }}} 62 64 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) 64 66 {{{ 65 67 ping 10.11.12.2 66 68 }}} 67 69 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): 70 72 {{{ 71 73 21: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 … … 73 75 21: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 74 76 }}} 75 on VM (enp0s8):77 on VM (enp0s8): 76 78 {{{ 77 79 21: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

