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

Jesse Gross jesse at nicira.com
Sat Sep 10 02:57:37 UTC 2011


That's correct but please don't drop on the mailing list in your responses.

On Fri, Sep 9, 2011 at 7:48 PM, Aishwarya <aishu85 at gmail.com> wrote:
> Hi Jesse,
>
> Let me know if the following is correct according to what you explained:
>
>
> Initially, host1 has physical ip address 10.0.0.1(eth0 on the physical
> host). The vm on host1 has ip address 192.168.0.1(eth0 on the vm)
>
> Now I create an interface tap0 on host1(which is specified for the vm when
> it starts up) and also a bridge br0. I add the tap0 port to br0. now, i
> remove the ip address of eth0 and assign the ip address 10.0.0.1 to br0. Is
> that right?
>
> I repeat the same on host 2.
>
> Thanks,
> Aish
>
>
> On Fri, Sep 9, 2011 at 7:16 PM, Jesse Gross <jesse at nicira.com> wrote:
>>
>>  On Fri, Sep 9, 2011 at 7:08 PM, 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?
>>
>> You need to move the IP address, which is independent of the Ethernet
>> interface.  The physical interface needs to be part of the bridge as
>> do the VM interfaces.  The IP address needs to be on the bridge
>> interface, which is created automatically and is used to connect to
>> the hypervisor.
>
>



More information about the discuss mailing list