I read the FAQ. In my system I have only one NIC through which I am connected to the internet.
so I did the following: # ovs-vsctl add-br br0 # ovs-vsctl add-port br0 em1 # ifconfig em1 0.0.0.0 # ifconfig br0 <ip> netmask <mask> # ip route del default dev em1 # ip route add default dev br0 # dhclient br0 # ovs-vsctl show 667ae087-8a68-47e3-ba17- 406fc2df42bc Bridge "br0" Port "br0" Interface "br0" type: internal Port "em1" Interface "em1" # ifconfig -a br0: flags=4419<UP,BROADCAST, RUNNING,PROMISC,MULTICAST> mtu 1500 inet XX.XX.XX.XX netmask 255.255.240.0 broadcast ++.++.++.++ inet6 fe80::1ec1:deff:fe65:6fee prefixlen 64 scopeid 0x20<link> ether 1c:c1:de:65:6f:ee txqueuelen 0 (Ethernet) RX packets 286290 bytes 54385389 (51.8 MiB) RX errors 0 dropped 284 overruns 0 frame 0 TX packets 20230 bytes 3545570 (3.3 MiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 em1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 inet6 fe80::1ec1:deff:fe65:6fee prefixlen 64 scopeid 0x20<link> ether 1c:c1:de:65:6f:ee txqueuelen 1000 (Ethernet) RX packets 307970 bytes 58277898 (55.5 MiB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 21322 bytes 3835886 (3.6 MiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 device interrupt 19 memory 0xf3000000-f3020000 lo: flags=73<UP,LOOPBACK,RUNNING> mtu 16436 inet 127.0.0.1 netmask 255.0.0.0 inet6 ::1 prefixlen 128 scopeid 0x10<host> loop txqueuelen 0 (Local Loopback) RX packets 12 bytes 1090 (1.0 KiB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 12 bytes 1090 (1.0 KiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 Now I can use the internet again. How IP addresses are manipulated in Open Vswitch? If I create virtual machines connected to br0. There IP address will also be in the same subnet of XX.XX.XX.XX.? For a different subnet, do I have to create another bridge? Is it required for every bridge to ported to a physical NIC? Can I create a DHCP server in Open Vswitch? Thanks, On Thu, Jul 19, 2012 at 3:46 PM, Ben Pfaff <b...@nicira.com> wrote: > On Thu, Jul 19, 2012 at 10:43:06AM +0200, Arindam Choudhury wrote: > > So in OpenVSwitch, we create a bridge and connect it with the ethernet > card. > > > > So, is it mean that the guests will be in the same subnet of the host? > > Not necessarily. > > > Is it possible to put guests on a different subnet? > > Yes. > > > I am very new and trying to understand linux bridging and OpenVSwitch. > Can > > you suggest me some reading? > > The FAQ: http://openvswitch.org/faq/ >
_______________________________________________ discuss mailing list discuss@openvswitch.org http://openvswitch.org/mailman/listinfo/discuss