[ovs-discuss] OVS - OpenFlow and NAT

Sudarshan Pathalam (supathal) supathal at cisco.com
Wed Nov 13 22:09:21 UTC 2013


Gurucharan,You are right.

host:~# brctl show
bridge name	bridge id		STP enabled	interfaces
virbr0		8000.fe5400df9430	yes		vnet0

I had hoped, virt-install with, --bridge br1 option, would have associated
vnet0 with br1 (ovs)
So should I brctl delif of vnet0,virbr0 and followed by ova-vsctl add-port
of vnet0,virbr0?

Thanks,



On 11/13/13 11:32 AM, "Gurucharan Shetty" <shettyg at nicira.com> wrote:

>On Wed, Nov 13, 2013 at 11:26 AM, Sudarshan Pathalam (supathal)
><supathal at cisco.com> wrote:
>> Hello,
>>
>> I have KVM and OVS setup in Ubuntu 12.04 server,running couple of VM.
>> I'd like to test OpenFlow on OVS while allowing bidirectional traffic
>> between VM (in private subnet) and hosts on the physical LAN (in public
>> subnet).
>> Created OVS bridge,
>>
>> host:~#ovs-vsctl add-br br1
>> host:~#ovs-vsctl add-port eth1
>> host:~#ovs-vsctl add-port br1 eth1
>>
>> Created VM,
>> host:~#virt-install --connect qemu:///system --name vm1 --ram 2000
>>--vcpus 2
>> --disk /var/lib/libvirt/images/vm1.img --cdrom
>> /var/lib/libvirt/ubuntu-12.04.3-server-amd64.iso --graphics vnc
>>--virt-type
>> kvm --bridge br1
>>
>> host:~#ovs-vsctl show
>> 4d79704f-06ec-41cb-a8dd-d38a82e7ad17
>>     Bridge "br1"
>>         Port "br1"
>>             Interface "br1"
>>                 type: internal
>>         Port "eth1"
>>             Interface "eth1"
>>
>> host:~# ovs-vsctl list-ports br1
>> eth1
>>
>> Right now I have the following interfaces,
>> br1,eth0,eth1,lo,ovs-system,virbr0,vnet0 etc
>>
>> host:~# lsmod | grep br
>> bridge                 90989  0
>> stp                    12976  1 bridge
>> root at supathal-2:~# lsmod | grep open
>> openvswitch            66857  0
>>
>> (Noob) Questions,
>>
>> I was hoping to see vnet0 (I guess this is vnic of VM) as a port in br1
>> above. Does it require extra steps?
>> Was wondering
>>
>> if I could bind eth1 to virbr0 (no ip address on eth1 instead apply ip
>> address to virbr0)
>> attach virbr0 to br1 (OVS) and configure iptables
>It looks to me that your VMs are not talking through OVS but rather
>through linux bridge. (brctl show may provide hints)
>'ovs-vsctl show' should be showing VMs attached to a bridge.
>
>I generally use libvirt to attach VM interfaces to OVS. There is a
>INSTALL.Libvirt that explains how to integrate OVS with libvirt.
>
>
>
>>
>> Thanks in advance,
>>
>>
>>
>>
>> _______________________________________________
>> discuss mailing list
>> discuss at openvswitch.org
>> http://openvswitch.org/mailman/listinfo/discuss
>>




More information about the discuss mailing list