Heya all, wanted just to point to a small bug in the network boot scripts. (/sbin/ifup; /sbin/ifdown; /lib/lsb/ipv4-static; /lib/lsb/ipv4-static-route; /etc/init.d/network )
For simple network setups it isn't a problem but for complex route setups it is. The problem is in /sbin/ifup. The problematic part is: > # Set the route default gateway if requested > if [ -n "${GATEWAY}" ]; then > if ip route | grep -q default; then > log_warning_msg "\nGateway already setup; skipping." > else > log_info_msg "Setting up default gateway..." > ip route add default via ${GATEWAY} dev ${IFACE} > evaluate_retval > fi > fi > It will always set up a default gateway even if you don't want one for instance if you use "TYPE=ipv4-static-route" So if you have multiple network cards with several static routes it will setup the first one it reads as default gateway and the other it won't setup at all. I.E.: Two network cards. 1. network card eth0 (Address 10.0.0.0/16 and routes for 192.168.0.0/16 via 10.0.0.1 and 172.16.0.0/16 via 10.0.0.1) 2. network card eth1 (Address 5.5.5.5/24 and default gateway through 5.5.5.1) With this setup it will put default gateway through 10.0.0.1 and the rest it won't setup because it states that the default gateway is already setup. I had the problem. I installed the network scripts from LFS 7.0 and they work as expected. Thanks...
-- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page