1

I am using Lubuntu 14.04 with kernel 3.19 and can't find file where are inet addresses stored (etc. 192.168.1.11). Man page for ifconfig state files:

/proc/net/socket #can't find at all
/proc/net/dev
/proc/net/if_inet6

unfortunately nor in any of those are useful informations.

I found something in /proc/net/fib_trie but is it place ifconfig parsing from?

EDIT: Address is set by DHCP.

1

DHCP assigned IP addresses are dynamic (the client contacts the server regularly to ask for a new one, which most of the time is just the same, even the same as you got the last round if it hasn't been reused in the meantime).

As a result, it makes no sense to keep this information in a file, it is just set for the interface, and reset if needed.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.