[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Who am I under DHCP?
- To: Daniel Feiglin <dilogsys(at-nospam)inter.net.il>
- Subject: Re: Who am I under DHCP?
- From: Tzafrir Cohen <tzafrir(at-nospam)technion.ac.il>
- Date: Tue, 27 Mar 2001 22:19:44 +0200 (IST)
- cc: IGLU <linux-il(at-nospam)linux.org.il>
- Delivered-To: linux.org.il-linux-il@linux.org.il
- In-Reply-To: <3AC0A2A6.7E118C2F@inter.net.il>
- Reply-To: Tzafrir Cohen <tzafrir(at-nospam)technion.ac.il>
- Sender: linux-il-bounce(at-nospam)cs.huji.ac.il
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