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
Bring up my eth0 and eth1 network devices unnumbered:
Can I just use 0.0.0.0 in the IPv4 file? (using ifconfig just type
0.0.0.0 eth0 up)
Assign an IP address to the bridge
I now have a device-name br0
Using ifconfig I can just add the ip address to the device br0. How can
I deal with this in the LFS bootscripts?
Anyone got any good ideas?
Cheers folks
Alan
--
The way out is open!
http://www.theopensourcerer.com
--
The way out is open!
http://www.theopensourcerer.com
--
http://linuxfromscratch.org/mailman/listinfo/lfs-chat
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page