View previous topic :: View next topic |
Author |
Message |
yenn n00b
Joined: 26 Apr 2013 Posts: 1
|
Posted: Fri Apr 26, 2013 12:39 pm Post subject: Open vSwitch support in conf.d/net |
|
|
Hi,
I recently tried openvswitch instead of "classic" bridge (bridge-utils) on server. According to http://wiki.gentoo.org/wiki/QEMU_with_Open_vSwitch_network#OpenRC, init script brings switch up, but I'm not sure what is the best way to set IP address of that switch. Can conf.d/net handle Open vSwitch or should I set IP address in init script? |
|
Back to top |
|
|
KaZeR Apprentice
Joined: 04 Feb 2004 Posts: 291 Location: Au fond, à droite.
|
Posted: Mon Aug 05, 2013 7:21 pm Post subject: |
|
|
That doc has a few mistakes. First of all, you don't need the ovs-controller service to run, it's merely a test service.
You can definitely have openRC setup your OVS, without having to add another specific init script :
Code: |
config_enp5s0f0="0.0.0.0"
config_brex="172.16.128.31/24"
routes_brex="default via 172.16.128.1"
dns_servers_brex="8.8.8.8"
|
My OVS bridge has been defined that way :
Code: |
# ovs-vsctl add-br brex
# ovs-vsctl add-port brex enp5s0f0
|
There is two gotchas currently:
1/ you cannot use dashes in the name of your bridge, because of the conf.d/net file doesn't support it (if someone knows how to circumvent this...)
2/ you need to have your net.enp5s0f0, ovsdb-server and ovs-vswitchd services all started at boot
That's all. Also ensure that the openvswitch module is loaded at boot, of course. _________________ Foo. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|