Thanks Ben for your reply. I was not having internet access so I could not
get back to you earlier.
On Fri, Sep 27, 2013 at 9:10 PM, Ben Pfaff <b...@nicira.com> wrote:

> On Fri, Sep 27, 2013 at 06:26:56PM +0530, nisha goyal wrote:
> > This configuration works perfectly i.e. the vms vm1 and vm2 are able to
> > ping each other but not vm3 until the networking is restarted.
> >
> > There are two problems that I am facing now:
> > 1) when the networking service is restarted, the vms configuration gets
> > erased from the ovs-vsctl. and "ovs-vsctl show" results into:
>
> What is "the networking service"?  How are you restarting it?
>

I am sorry that i later didn't mention  it earlier that I trying this
configuration on ubuntu 12.04 machine. I am restarting the networking
service as "service networking restart".

>
> > 2) On which port the trunks are configured? is it br0 or eth0?
>
> The configuration you showed us has both br0 and eth0 as trunks.  Only
> eth0 is usefully trunked, since it is the only trunk port that might be
> connected to other hosts or switches that understand trunked VLANs.
>
> > And say I make one of them(br0 or eth0) a trunk port using ovs-vsctl
> > set port <eth0 or br0> trunks=100,200
>
> This would not cause a noticeable change in behavior: it merely limits
> the trunked VLANs to the VLANs that you have in use, rather than
> trunking every VLAN.
>
> > Will I be able to ping vm1,vm2 from vm3 and vice versa?
>
> No.  (This would have been a trivial experiment.  What didn't you just
> try it?)
>
> I tried it and got it the same way as you just told me. I was not clear in
respect of the trunks that what exactly will happen if I set some port as
my trunk port which arised this confusion.

> > If not, then do I need IP routing for this?
>
> If you want vm1 and vm2 to be able to access vm3, why did you put them
> on different VLANs?
>
> Q: I added a pair of VMs on different VLANs, like this:
>
>        ovs-vsctl add-br br0
>        ovs-vsctl add-port br0 eth0
>        ovs-vsctl add-port br0 tap0 tag=9
>        ovs-vsctl add-port br0 tap1 tag=10
>
>     but the VMs can't access each other, the external network, or the
>     Internet.
>
> A: It is to be expected that the VMs can't access each other.  VLANs
>    are a means to partition a network.  When you configured tap0 and
>    tap1 as access ports for different VLANs, you indicated that they
>    should be isolated from each other.
>
>    As for the external network and the Internet, it seems likely that
>    the machines you are trying to access are not on VLAN 9 (or 10) and
>    that the Internet is not available on VLAN 9 (or 10).
>

Thanks again for clearing my doubts. Although the question still remains
that why didn't openvswitch retains the configuration made when the
networking service is restarted? Please help me to make it persistent.

Regards,
- Nisha
_______________________________________________
discuss mailing list
discuss@openvswitch.org
http://openvswitch.org/mailman/listinfo/discuss

Reply via email to