Re: which command can be used to show IP address
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
You might want to look at registering your ip with one of the dynamic
dns services, who will effectively map your address to a static
for you. ddns rings a bell as a Debian package.
HTH,
Andy
Reply to: