My box encounter a power failure. After booting again, the ubuntu server (which I installed on the box) does not automatically acquire a Network IP (I didn't set a LAN-static ip for that box - the IP is generated by a router). I'm getting freaking because I cannot find a usb keyboard around the place (everyone at my place is using ps2 keyboard which my box does not support any more).
I'm gonna bring it back to my friend house to have thing fixed. However, can anyone help explaining why my Ubuntu 10.04 does not acquire an IP after a power failure? How can I prevent this behavior?
After power failure, the observed identity of my NIC changed, result in a new eth1 device being created, which in turn creates the mess. I edited the
/etc/udev/rules.d/70-persistent-net.rules
(as described in my another question here: Ubuntu is showing weird HWAddress for eth0 after a power failure) and rebooted the box. The problems has gone away. Thank you guys for helping.You might want to look for an usb2ps2 cable like this:
There are many possible scenarios in your situation, like:
But frankly, get yourself an UPS if you don't have one yet, it protects against sudden power failures.
How do you know it doesn't have an IP? If you're trying to connect to some service on it perhaps that service wasn't set to startup on reboot?
Phuong,
Does /var/log/messages give you any insight into what the dhcp-client is attempting to do?
If you don't have that information, its possible that dhcp-client is attempting to reacquire its old lease, but the DHCP server might be configured to prevent that from happening. You might need to check which options are enabled for dhcp-client.