OpenVZ Forum


Home » General » Support » Connecting VM eth0 to guest tap device
Re: Connecting VM eth0 to guest tap device [message #12069 is a reply to message #11764] Tue, 17 April 2007 06:32 Go to previous messageGo to previous message
HRogge is currently offline  HRogge
Messages: 16
Registered: April 2007
Junior Member
This is the network I'm working on:
                                                   Bridges
*------------------------*                                                       *----------------------*
|  Virtual Machine 100   |                 ------- vzbr100 -------               |         NS-2         |
|                        |                /                       \              |                      |
|            eth0 ============== veth100.0                         tap100 ============                  |
|      Ip: 10.0.0.100    |  Mac: 00:00:00:00:01:00             Ip: 10.0.0.200    |                      |
| Mac: 00:00:00:00:02:00 |                                Mac: 16:2C:D1:C5:09:83 |                      |
*------------------------*                                                       |                      |
                                                                                 |    WLAN Emulation    |
*------------------------*                                                       |                      |
|  Virtual Machine 101   |                 ------- vzbr101 -------               |                      |
|                        |                /                       \              |                      |
|            eth0 ============== veth101.0                         tap101 ============                  |
|      Ip: 10.0.0.101    |  Mac: 00:00:00:00:01:01             Ip: 10.0.0.201    |                      |
| Mac: 00:00:00:00:02:01 |                                Mac: D2:87:CA:1E:63:E8 |                      |
*------------------------*                                                       *----------------------*


- VM 100 is sending UDP broadcasts:

vn100:/# tcpdump -e -i eth0
  06:23:05.415945 00:00:00:00:02:00 (oui Ethernet) > Broadcast, ethertype IPv4 (0x0800), length 62: 10.0.0.100.698 > 10.0.0.255.698: UDP, length 20


- I can see this packages on veth100.0 on the host-machine:
host:/# tcpdump -e -i veth100.0
  08:25:32.584301 00:00:00:00:02:00 (oui Ethernet) > Broadcast, ethertype IPv4 (0x0800), length 62: 10.0.0.100.698 > 10.0.0.255.698: UDP, length 20


- I can see them on the bridge vzbr100:
host:/# tcpdump -e -i vzbr100
  08:26:48.403584 00:00:00:00:02:00 (oui Ethernet) > Broadcast, ethertype IPv4 (0x0800), length 62: 10.0.0.100.698 > 10.0.0.255.698: UDP, length 20


- The packages enter the NS2 emulation through tap100:
host:/# tcpdump -e -i tap100
  08:27:43.959279 00:00:00:00:02:00 (oui Ethernet) > Broadcast, ethertype IPv4 (0x0800), length 62: 10.0.0.100.698 > 10.0.0.255.698: UDP, length 20


- They are leaving the emulation through tap101:
host:/# tcpdump -e -i tap101
  08:28:37.466638 00:00:00:00:02:00 (oui Ethernet) > Broadcast, ethertype IPv4 (0x0800), length 62: 10.0.0.100.698 > 10.0.0.255.698: UDP, length 20


- But they do NOT appear on the second bridge vzbr101
- They don't reach veth101.0
- And they don't reach the eth device of VM 101

Maybe this informations will help you to understand my configuration and my problem.

The same happens when I start the broadcasting on VM 101. They packages go through NS2 and don't appear on bridge vzbr100.
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: VPS&cPanel: High processor load
Next Topic: how to migrate vps's to new node?
Goto Forum:
  


Current Time: Sat Aug 17 03:02:11 GMT 2024

Total time taken to generate the page: 0.02803 seconds