Re: which command can be used to show IP address
Andrew M.A. Cater wrote:
> On Sun, Feb 19, 2006 at 03:42:49PM -0800, Serena Cantor wrote:
>
>>I use sarge.
>>
>>I have cable modem connection, use DHCP to config, Do
>>I have fixed IP? I plan to set up web site using it.
>>
>
> If you use DHCP to configure your cable modem, chances are that you
> have a dynamic IP of some sort. Depending on your cable company,
> that IP may _effectively_ be static: if the lease on the IP address
> doesn't run out (the computer stays connected/connects once a day
> or whatever), then you'll probably keep the same IP for a considerable
> period - though this isn't guaranteed. For example, if I build a new
> machine/restart my cable modem, then the initial lease is, I think, for
> only about an hour. Once renewed, it's more than 24 hours - so doesn't
> run out readily.
>
> The command you want to check your ip address is
>
> ipconfig -a (possibly piped through less to give you a page of output at
> a time - it can generate quite a lot of output) so
>
> ipconfig -a | less
It is ipconfig in Windows. In Linux, it is ifconfig (or /sbin/ifconfig
if /sbin is not in your $PATH).
->HS
Reply to: