[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Who am I under DHCP?




On Tue, 27 Mar 2001, Daniel Feiglin wrote:

> I am connected to a LAN via DHCP. Is there a utility or API which
> returns my current IP address? Where is it "stored" in the system? An
> RTFM would be fine.

It depends on your client...

For instance, for the standard dhcpcd of redhat, and using eth0, this is:

/etc/dhcpc/dhcpcd-eth0.info

see dhcpcd (1)

-- 
Tzafrir Cohen
mailto:tzafrir@technion.ac.il
http://www.technion.ac.il/~tzafrir


=================================================================
To unsubscribe, send mail to linux-il-request@linux.org.il with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail linux-il-request@linux.org.il