Making NetworkManager work together with openrc scripts

Because there’s several things NetworkManager can’t handle, such as bridging network, many people wondered if NetworkManager could work together with openrc scripts. The answer is yes and my project will help you achieve this.

The solution is very easy. You could tell NetworkManager which network interface should be managed and which shouldn’t. Let’s take an example:

Suppose you have two network interface: eth0 and eth1. You’d like to use bridge on eth0 and let NetworkManager help you manage eth1.

config_eth0=( “null” )
bridge_br0=”eth0″
config_br0=( “192.168.1.10/24” )
config_eth1=( “dhcp” )

What you shoud do is using net.eth0 to support bridge. Meanwhile, you should disable eth0 for NetworkManager by adding:

managed_eth0=”false”
# Fill in mac address of eth0, required by the plug-in
mac_eth0=”xx:xx:xx:xx:xx:xx”

And we are done 🙂

eth0 and br0 configuration will be reserved by the plug-in. You could do anything that NetworkManager supports to eth1.

Advertisements

  1. Progress of Gentoo NetworkManager Plug-in – Writing support finished « Open is Fun
  2. Gentoo NetworkManager plug-in improvement and next plan « Mu Qiao's Blog

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: