[ovs-discuss] Am i using the linux kernel or OVS for packet processing?

Jesse Gross jesse at nicira.com
Wed Jul 8 04:46:03 UTC 2015


eth2 is not the interface to a VM - it is the uplink to the physical
network. A VM interface is actually connected to a particular virtual
machine.

There are several tutorials about setting up OVS available online. I
would recommend that you follow one and then try to make modifications
from there.

On Tue, Jul 7, 2015 at 9:17 PM, Abhishek Verma
<abhishekv.verma at gmail.com> wrote:
> Hi,
>
> I dont understand.
>
> eth2 is my VM port. And i have added that to the OVS bridge "mybridge"
>
> Am i missing something?
>
> Thanks, Abhishek
>
> On Wed, Jul 8, 2015 at 8:50 AM, Jesse Gross <jesse at nicira.com> wrote:
>>
>> On Tue, Jul 7, 2015 at 8:11 PM, Abhishek Verma
>> <abhishekv.verma at gmail.com> wrote:
>> > Hi,
>> >
>> > I want to test OVS between two virtual machines hosted over the same
>> > host. I
>> > created an OVS bridge where i added the NIC that connects the two VMs
>> > and
>> > used ifconfig to assign an IP address to the bridge port.
>> >
>> > With this i am able to ping the two VMs.
>> >
>> > root at VirtualBox:/home/akabra# ovs-vsctl show
>> > e71e7608-7bfe-4293-ac5a-8705355ba16e
>> >
>> >     Bridge mybridge
>> >         Port mybridge
>> >             Interface mybridge
>> >                 type: internal
>> >         Port "eth2"
>> >             Interface "eth2"
>> > root at VirtualBox:/home/akabra#
>> >
>> > root at VirtualBox:/home/akabra# ifconfig
>> > eth2      Link encap:Ethernet  HWaddr 08:00:27:7b:2d:b2
>> >           inet6 addr: fe80::a00:27ff:fe7b:2db2/64 Scope:Link
>> >           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>> >           RX packets:1074400 errors:0 dropped:0 overruns:0 frame:0
>> >           TX packets:3290 errors:0 dropped:0 overruns:0 carrier:0
>> >           collisions:0 txqueuelen:1000
>> >           RX bytes:1003962152 (1.0 GB)  TX bytes:363441 (363.4 KB)
>> >
>> > mybridge  Link encap:Ethernet  HWaddr 08:00:27:7b:2d:b2
>> >           inet addr:2.2.2.2  Bcast:2.2.2.255  Mask:255.255.255.0
>> >           inet6 addr: fe80::c8f8:7cff:fe8a:5b4a/64 Scope:Link
>> >           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>> >           RX packets:36387 errors:0 dropped:0 overruns:0 frame:0
>> >           TX packets:3160 errors:0 dropped:0 overruns:0 carrier:0
>> >           collisions:0 txqueuelen:0
>> >           RX bytes:8220698 (8.2 MB)  TX bytes:340708 (340.7 KB)
>> >
>> > I did exactly the same on the other VM and am able to ping between the
>> > two
>> > VMs.
>>
>> You need to add the VM ports to OVS. Currently only traffic between
>> eth2 and the hypervisor host is going through OVS.
>
>



More information about the discuss mailing list