[ovs-discuss] OVS - OpenFlow and NAT
Sudarshan Pathalam (supathal)
supathal at cisco.com
Wed Nov 13 19:26:17 UTC 2013
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,
1. I was hoping to see vnet0 (I guess this is vnic of VM) as a port in br1 above. Does it require extra steps?
2. 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
Thanks in advance,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://openvswitch.org/pipermail/ovs-discuss/attachments/20131113/97176dc1/attachment-0001.html>
More information about the discuss
mailing list