Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have Ubuntu 12.04.1 and would like to know if my IP address for the network connection is set statically or dynamically. cat /etc/network/interfaces is not especially helpful as it only shows

auto lo
iface lo inet loopback

Any other way to get this information?

share|improve this question
Atleast in my case static means router gives me a static IP by DHCP, may not be easy to distinguish from dynamic – Karthik T Jan 11 '13 at 7:32
But the IP address is 'either' statically allocated, i.e. does not change after logins, or is dynamically allocated, i.e. may change after log-in. This has to be configured somewhere, and therefore some information must be found in some files. But which one, and what contents? – Alex Jan 11 '13 at 7:40
in my case, in the router. – Karthik T Jan 11 '13 at 7:45
@Karthik: I do not use a router in my case. The machine is connected to the LAN directly (company LAN system). – Alex Jan 11 '13 at 7:47
For what its worth, you should be able to see in network manager (or equivalent if they have replaced it) setting whether it is static IP or DHCP – Karthik T Jan 11 '13 at 7:57

To summarize the long chain of comments.

Important point to note is that when you say static ip, it could mean static ip from clients point of view or static ip from routers point of view. So from clients side, they would be static ip vs curiously static dynamic ip.

If you are on a company lan, it is all the more likely it is the latter, though could be former as well.

If you are interested in only the former (pure client side static IP), you should be able to find it from /etc/network/interfaces (not sure why you are not able to see), and from network manager gui in Ubuntu, as shown below:

this image

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .