The command ifconfig shows the currently configured interface (eth0 or whatever). This doesn't have to be a statically configured IP address. DHCP can supply it also.
Originally Posted by jdieter
It probably something like this
time comes that i need to change my ip, and i find it is not in the interfaces file. interfaces is setup as dhcp.
iface eth0 inet dhcp
The configuration is requested by dhclient. You will find the leases at
there is no networkmanager installed, no wicd, and a grep -R for my ip address finds NOTHING except settings in exim4.
Where the hell is this ip configuration being stored! 12.04 with no desktop installed.
The dhclient requests the IP address (lease) and I assume your router has been the DHCP server, supplying the address from its the dhcp pool.
This should not stop you from reconfiguring the eth0 interface to a statically configured state. You can use the traditional /etc/network/interfaces file. You should configure the dns servers there too. Ubuntu 12.04 server now uses /etc/resolvconf instead of /etc/resolv.conf.