Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Open vSwitch support in conf.d/net
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
yenn
n00b
n00b


Joined: 26 Apr 2013
Posts: 1

PostPosted: Fri Apr 26, 2013 12:39 pm    Post subject: Open vSwitch support in conf.d/net Reply with quote

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
View user's profile Send private message
KaZeR
Apprentice
Apprentice


Joined: 04 Feb 2004
Posts: 291
Location: Au fond, à droite.

PostPosted: Mon Aug 05, 2013 7:21 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
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