On 02/10/2007, Alan Lord <[EMAIL PROTECTED]> wrote: > Hi all, > > I am wanting to automate the setting up of a Linux bridge on my LFS box. > (It will be a home server and gateway/proxy/filter etc) > > If I understand the bootscripts correctly, I think I need to make a > suitable script under /etc/sysconfig/network-devices/services to deal > with the setting up of the bridge but could someone give me any pointers > on this if they have a clue? > > Basically I want to do the following (in this order) during boot-up and > the reverse during shutdown: > > create the bridge itself with commands something like this (works from > the cli): > > boot_mesg "Configuring Ethernet Bridge..." > brctl addbr br0; #Create Bridge br0 > brctl stp br0 off; #Turn STP off > brctl setfd br0 0; #Set forwarding delay to 0, no STP here > brctl addif br0 eth0; #Add i/f eth0 to bridge > brctl addif br0 eth1; #Add i/f eth1 to bridge > >
You could just add this to the bottom of /etc/rc.local, which gets executed after all other botscripts (with LFS it may just be in /etc/rc.d/rc.local, I don't have one handy at the moment). cmn -- Carlos Martín Nieto http://www.cmartin.tk "¿Cómo voy a decir bobadas si soy mudo?" -- CACHAI -- http://linuxfromscratch.org/mailman/listinfo/lfs-chat FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page
