In the network configuration, it's allowed that we do not have to
assign the gateway, especially for private IP address, e.g. ============================= IP address: 192.168.1.1. Netmask: 255.255.255.0 Gateway: none ============================= Therefore, when assigning this with boot parameter: ip=192.168.1.1:::255.255.255.0::eth0 The networking service will fail to be started due to empty gateway in the /etc/network/interfaces file, i.e. ============================= iface eth0 inet static address 192.168.1.1 netmask 255.255.255.0 gateway ============================= Attached please find the patch for live-boot-2.0.3 to allow no gateway assigning. My 2 cents. Regards, Steven. -- Steven Shiau <steven _at_ nchc org tw> <steven _at_ stevenshiau org> National Center for High-performance Computing, Taiwan. http://www.nchc.org.tw Public Key Server PGP Key ID: 1024D/9762755A Fingerprint: A2A1 08B7 C22C 3D06 34DB F4BC 08B3 E3D7 9762 755A |
--- 23networking 2010-09-03 00:26:35.000000000 +0800 +++ 23networking.new 2010-09-04 10:22:26.000000000 +0800 @@ -65,9 +65,13 @@ iface ${ifname} inet static address ${ifaddress} netmask ${ifnetmask} +EOF +if [ -n "${ifgateway}" ]; then + cat >> "${IFFILE}" << EOF gateway ${ifgateway} EOF +fi done else