0

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?

8
  • 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, 2013 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, 2013 at 7:40
  • in my case, in the router.
    – Karthik T
    Jan 11, 2013 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, 2013 at 7:47
  • 1
    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, 2013 at 7:57

1 Answer 1

1

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, which is accessed by System Settings -> Network -> click Options button, as shown below:

this image

You must log in to answer this question.

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