From owner-freebsd-questions Wed May 12 16:31:47 1999 Delivered-To: freebsd-questions@freebsd.org Received: from blues.ghis.net (as1f-2.wag.interact.net.au [203.37.48.130]) by hub.freebsd.org (Postfix) with ESMTP id 25C4C15D0C for ; Wed, 12 May 1999 16:31:33 -0700 (PDT) (envelope-from jim@blues.ghis.net) Received: (from jim@localhost) by blues.ghis.net (8.9.3/8.9.3) id JAA57789; Thu, 13 May 1999 09:31:09 +1000 (EST) Date: Thu, 13 May 1999 09:31:08 +1000 From: Jim Mock To: "Michael G." Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Dynamic IP address Message-ID: <19990513093108.E57394@blues.ghis.net> Reply-To: jim@blues.ghis.net References: <99051219000900.00342@Nikki.ibm.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.4i In-Reply-To: <99051219000900.00342@Nikki.ibm.net> Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Wed, 12 May 1999 at 18:58:00 -0400, Michael G. wrote: > I checked the archives ..but couldn't find this answer... > > How can I check what my current IP address when I log into my > ISP...as it is dynamically allocated at connection? arp didn't > seem to get me anywhere because I don't know what my machine is > called???...from the outside... Try 'netstat -rn'. It'll give you something like this.. [jim@blues:~]$ netstat -rn Routing tables Internet: Destination Gateway Flags Refs Use Netif Expire default 203.37.7.2 UGSc 11 0 tun0 127.0.0.1 127.0.0.1 UH 0 41002 lo0 203.37.7.2 203.37.48.130 UH 12 0 tun0 ^^^^^^^^^^^^^ that should be your ip Also, 'ifconfig tun0' will provide it as well.. [jim@blues:~]$ ifconfig tun0 tun0: flags=8051 mtu 1500 inet 203.37.48.130 --> 203.37.7.2 netmask 0xffffff00 ^^^^^^^^^^^^^^^^^^ that's your ip Hope this helps, -- - Jim Mock - jim@blues.ghis.net - systems administrator - ghis.NET - - work: http://www.ghis.net/ - personal: http://www.ghis.net/~jim/ - - FreeBSD 'zine: http://www.freebsdzine.org/ - jim@freebsdzine.org - - FreeBSD: http://advocacy.freebsd.org/ - jim@advocacy.FreeBSD.org - To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message