Here is the configuration I have done for my previous post ( among VMs and
External OVS)

*VM1 :
*$sudo vconfig add eth0 10
$ifconfig eth0.10 10.0.0.1 netmask 255.255.255.0
$sudo route add -net 10.0.1.0/24 dev eth0.10
*VM2 :*
$sudo vconfig add eth0 20
$ifconfig eth0.20 10.0.1.1 netmask 255.255.255.0
$sudo route add -net 10.0.0.0/24 dev eth0.20

*And in External OVS:*
$sudo ovs-vsctl add-br br0
$sudo ovs-vsctl add-port br0 eth0
$sudo ovs-vsctl add-port br0 eth1

$ sudo ifconfig br0 192.168.x.x netmask 255.255.255.0 ( This address is used
to communicate with LAN)
$sudo ovs-vsctl add-port br0 br0.10 tag=10  -- set interface br0.10
type=internal
$sudo ovs-vsctl add-port br0 br0.20 tag=20  -- set interface br0.20
type=internal
$sudo ifconfig br0.10 10.0.0.2 netmask 255.255.255.0
$sudo ifconfig br0.20 10.0.1.2  netmask 255.255.255.0

Everything works fine, other than the domUs are not pinging each other, as
they have in different subnets,
(this makes all packets among VMs should go through External OVS).

Now I want to ping VMs, one possible solution is strip off vlan  tag 10
received from VM1
and add vlan tag 20 and forward that packet to the output port on which the
VM2 is connected.

What changes have to made, either in the configuration or in the OVS code.
Does this feature supports in OVS ?

Help in this regards is highly appreciated.





On Mon, Jan 31, 2011 at 1:13 PM, Ramana Reddy <gtvrre...@gmail.com> wrote:

> Hi Jesse Gross,
>
> Now I can ping each machines. I verified ovs-vsctl list port message, and
> found that
> both tag and trunks set to 10. As they are mutually exclusive, I cleared
> both.
> Now they are pinging each other.
>
> Now, one more problem,
>
> The setup is as shown in the attached diagram.
>
> I want to send traffic between two DomUs located on same Host.
> Now the domU's data are offloaded through IO-MMU concept directly to NIC
> rather than giong
> through OVS on the host machine.  I want to setup a vlan among VM1 and
> External OVS, and VM2 and External OVS.
> The data from VM1 has to go to external Switch and then VM2.
>
> How to setup vlan tagging in this scenario.
>
> Thanks,
> Ramana Reddy.
>
>
>
>
>
>
>
>
>
>
> On Mon, Jan 31, 2011 at 4:34 AM, Jesse Gross <je...@nicira.com> wrote:
>
>> On Thu, Jan 27, 2011 at 2:35 AM, Ramana Reddy <gtvrre...@gmail.com>
>> wrote:
>> > On Wed, Jan 26, 2011 at 8:58 PM, Jesse Gross <je...@nicira.com> wrote:
>> >>
>> >> On Tue, Jan 25, 2011 at 11:17 PM, Ramana Reddy <gtvrre...@gmail.com>
>> >> wrote:
>> >> > The drivers are tg3 (broadcom) and  via-rhine (Dlink 1Gb NIC).
>> >> > I am using ubuntu 10.10 where I installed OVS 1.0.0.
>> >>
>> >> Both of those drivers should be fine.  Can you post the output of
>> >> ovs-dpctl show and ovs-dpctl dump-flows <BRIDGE> on the receive side
>> >> while pinging?
>> >
>> > I added some more detailed output:
>>
>> The vlan tags are clearly being received correctly.  In your previous
>> message it also looks like everything is operating correctly.  It
>> appears that the configuration was changed for output that you posted
>> in this message.
>>
>> I think that your ports are configured as access ports.  You can see
>> that when an untagged packet comes in and is flooded it is tagged
>> before being output to br0, which is presumable a trunk port.
>> However, access ports should not receive tagged packets, which would
>> explain why it gets dropped in the second case.
>>
>> Please post the output of ovs-vsctl list port.
>>
>
>
_______________________________________________
discuss mailing list
discuss@openvswitch.org
http://openvswitch.org/mailman/listinfo/discuss_openvswitch.org

Reply via email to