[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Who am I under DHCP?
- To: IGLU <linux-il(at-nospam)linux.org.il>
- Subject: Re: Who am I under DHCP?
- From: Oleg Goldshmidt <ogoldshmidt(at-nospam)computer.org>
- Date: 28 Mar 2001 14:22:39 +0200
- Delivered-To: linux.org.il-linux-il@linux.org.il
- In-Reply-To: Tzafrir Cohen's message of "Tue, 27 Mar 2001 22:19:44 +0200 (IST)"
- Organization: Speaking for myself only.
- Original-Sender: ogoldshmidt@computer.org
- References: <Pine.GSO.3.95-heb-2.07.1010327170530.14727U-100000@csd>
- Reply-To: ogoldshmidt(at-nospam)computer.org
- Sender: ogoldshmidt(at-nospam)comgates.co.il
- Sender: linux-il-bounce(at-nospam)cs.huji.ac.il
- User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Cuyahoga Valley)
Tzafrir Cohen <tzafrir@technion.ac.il> writes:
> 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
When I saw Daniel's message yesterday, I checked that, and
ifconfig/netstat, and was surprised to see different IP addresses.
Any explanation?
--
Oleg Goldshmidt | ogoldshmidt@NOSPAM.computer.org
"I'd rather write programs to write programs than write programs."
=================================================================
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