[arch-general] [arch-dev-public] [signoff] coreutils-8.12-2, initscripts-2011.06.3-1, net-tools-1.60-16, udev-171-2, yp-tools-2.12-2, ypbind-mt-1.33-2, iproute2-2.6.38-3

Javier Vasquez j.e.vasquez.v at gmail.com
Fri Jun 10 13:13:32 EDT 2011


On Fri, Jun 10, 2011 at 12:52 AM, Joker-jar <joker-jar at yandex.ru> wrote:
> /etc/conf.d/bridges (bridge-utils) still has old rc.conf example:
>
> # example:
> #
> # in /etc/rc.conf:
> # eth0="eth0 up"
> # eth1="eth1 up"
> # br0="br0 192.168.0.2 netmask 255.255.255.0 up"
> # INTERFACES=(lo eth0 eth1 br0)
> #
> # in /etc/conf.d/bridges
> # bridge_br0="eth0 eth1"
> # BRIDGE_INTERFACES=(br0)
> #
>
> In addition bridged interfaces doesn't work with new rc.conf syntax (unknown
> interface br0). How to set up?


The dchp still works with net-tools installed:

eth0="eth0 up"
br0="dhcp"
INTERFACES=(eth0 br0)

However using netcfg it can be accomplish, it has examples:

/etc/network.d/examples/bridge

I have two profiles, one for dhcp (work) and one for static (home):

% cat /etc/network.d/wired-dhcp
#
DHCLIENT=yes
CONNECTION='bridge'
DESCRIPTION='A basic dhcp ethernet connection using iproute'
INTERFACE='br0'
BRIDGE_INTERFACES="eth0"
IP='dhcp'
CARRIER_TIMEOUT=3

% cat /etc/network.d/wired-static
#
CONNECTION='bridge'
DESCRIPTION='A basic static ethernet connection using iproute'
INTERFACE='br0'
BRIDGE_INTERFACES="eth0"
IP='static'
ADDR='192.168.1.159'
GATEWAY='192.168.1.1'
DNS=('200.91.75.5' '200.91.75.6' '192.168.1.1')
CARRIER_TIMEOUT=3

So I use net-profiles daemon instead of network one, :-)

Notice for some reason dhcpd is not a good option for bridging under
netcfg, since somehow the dhcp client keeps alive after netcfg -a, so
I preferred using dhclient, which works well...

So perhaps you might consider using netcfg for bridging, :-)

-- 
Javier.


More information about the arch-general mailing list