Re: [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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



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


[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux