[ovs-discuss] How to get 2 vms on 2 different physical hosts to communicate using openvswitch

Usman Ajmal usman.ajmal at xflowresearch.com
Sat Sep 10 03:01:21 UTC 2011


Logically, bridge should be assigned the IP address of physical interface,
not VM's.

--
Usman

On Sat, Sep 10, 2011 at 7:30 AM, Aishwarya <aishu85 at gmail.com> wrote:

> Hi Usman,
>
> I kind of understand what you mean now:
>
> Actually I have created a tap0 interface(that is associated with the vm)
> that I have added to the bridge. Now, when I have multiple vms on the same
> machine, that works. I assign an ip address to the bridge that is in the
> same subnet as any of the vms. Now, in the case of vms located on  multiple
> hosts: I have 2 sets of ip addres subnets, one of the physical interface of
> the physical hosts, and the other of the vms. Which of these ip addresses
> should the bridge be assigned?
>
> Thanks,
> Aish
>
>
>
> On Fri, Sep 9, 2011 at 7:13 PM, Usman Ajmal <usman.ajmal at xflowresearch.com
> > wrote:
>
>> Aish, seems like you have assigned an IP to eth0 which is part of br0.
>> Remove that IP from eth0 and assign it to br0. That should make it work.
>> Repeat the same for your second machine.
>>
>> --
>> Usman
>>
>> On Sat, Sep 10, 2011 at 7:08 AM, Aishwarya <aishu85 at gmail.com> wrote:
>>
>>> Hi Jesse,
>>> I dont understand... do i need to add eth0 to the bridge or not? Also,
>>> ultimately I want these vms to talk over the network... i.e. vm1 located on
>>> host1 should be able to talk to vm2 located on host2 where host1 and host2
>>> are connected over a network to each other... Could you elaborate a little
>>> bit more on what you mean?
>>>
>>> Thanks a lot for your help.
>>>
>>> Aish
>>>
>>>
>>> On Fri, Sep 9, 2011 at 6:56 PM, Jesse Gross <jesse at nicira.com> wrote:
>>>
>>>> \On Fri, Sep 9, 2011 at 6:23 PM, Aishwarya <aishu85 at gmail.com> wrote:
>>>> > HI Jesse,
>>>> >
>>>> > Yes, eth0 is my physical ethernet interface thats connected to the
>>>> external
>>>> > network.
>>>>
>>>> You need to move the IP address off of eth0 onto the bridge port.
>>>> Experimenting with networking changes while connected over the network
>>>> is also probably not the best idea.
>>>>
>>>
>>>
>>> _______________________________________________
>>> discuss mailing list
>>> discuss at openvswitch.org
>>> http://openvswitch.org/mailman/listinfo/discuss
>>>
>>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://openvswitch.org/pipermail/ovs-discuss/attachments/20110910/871c8892/attachment.html>


More information about the discuss mailing list