i have ifconfig eth0 10.50.181.126 up in /etc/init.d/rcS in /etc/network/interfaces i have auto lo iface lo inet loopback auto eth0 iface eth0 inet static address 10.50.181.125 netmask 255.255.252.0 network 10.50.181.0 broadcast 10.50.183.255 gateway 10.50.1.254 but after booting, ip is 10.50.181.126. If i comment out that line in rcS, then it takes ip from DHCP. Linux 2.6.38.8 #23 Fri Oct 7 17:36:54 EDT 2011 armv5tejl GNU /Linux any hints pls ?
totally lost, 1. set /etc/init.d/rcS to use static ip by using ifconfig eth0 10.50.181.126 up 2. reboot, yes it's using static 3. ifdown eth0; ifup eth0 it's taking /etc/network/interfaces and using dhcp now why it's not using dhcp from reboot ?