On Fri, Jun 10, 2011 at 12:52 AM, Joker-jar <joker-jar@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.