76 lines
1.9 KiB
HTML
76 lines
1.9 KiB
HTML
<HTML>
|
|
<HEAD>
|
|
<TITLE>hostaddr(1)</TITLE>
|
|
</HEAD>
|
|
<BODY>
|
|
<H1>hostaddr(1)</H1>
|
|
<HR>
|
|
<PRE>
|
|
|
|
</PRE>
|
|
<H2>NAME</H2><PRE>
|
|
hostaddr - show ethernet address, IP address or hostname
|
|
|
|
|
|
</PRE>
|
|
<H2>SYNOPSIS</H2><PRE>
|
|
<STRONG>hostaddr</STRONG> [<STRONG>-eia</STRONG>] [<STRONG>-E</STRONG> <EM>eth</EM>-<EM>device</EM>] [<STRONG>-I</STRONG> <EM>ip</EM>-<EM>device</EM>]
|
|
|
|
|
|
</PRE>
|
|
<H2>DESCRIPTION</H2><PRE>
|
|
Without any of the <STRONG>-eia</STRONG> options, <STRONG>hostaddr</STRONG> shows the ethernet address, IP
|
|
address and hostname of the local host on one line in the given order.
|
|
With options only the wanted fields are shown, still in the same order,
|
|
not in option order.
|
|
|
|
|
|
</PRE>
|
|
<H2>OPTIONS</H2><PRE>
|
|
|
|
<STRONG>-e</STRONG> Show the ethernet address.
|
|
|
|
<STRONG>-i</STRONG> Show the IP address. This will not work if no IP address has been
|
|
found by RARP or by setting it with <STRONG><A HREF="../man8/ifconfig.8.html">ifconfig(8)</A></STRONG>.
|
|
|
|
<STRONG>-a</STRONG> Show the fully qualified hostname. The IP address is shown again if
|
|
it can't be translated to a host name. (This usually indicates that
|
|
the DNS reverse address translation tables are incomplete.)
|
|
|
|
|
|
</PRE>
|
|
<H2>SEE ALSO</H2><PRE>
|
|
<STRONG><A HREF="../man8/ifconfig.8.html">ifconfig(8)</A></STRONG>, <STRONG><A HREF="../man8/rarpd.8.html">rarpd(8)</A></STRONG>, <STRONG><A HREF="../man8/nonamed.8.html">nonamed(8)</A></STRONG>, <STRONG><A HREF="../man8/set_net_default.8.html">set_net_default(8)</A></STRONG>, <STRONG><A HREF="../man8/boot.8.html">boot(8)</A></STRONG>.
|
|
|
|
|
|
</PRE>
|
|
<H2>DIAGNOSTICS</H2><PRE>
|
|
"Timeout"
|
|
<STRONG>Hostaddr</STRONG> timed out trying to get the IP address. This means that the
|
|
network connection is out of order or that the setup of the machine is
|
|
bad.
|
|
|
|
|
|
</PRE>
|
|
<H2>AUTHOR</H2><PRE>
|
|
Kees J. Bot (kjb@cs.vu.nl)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</PRE>
|
|
</BODY>
|
|
</HTML>
|