Date: Fri, 10 Sep 1999 15:07:31 +0800 From: Peter Kok <cckok00@stlinux.ouhk.edu.hk> To: "freebsd-questions@FreeBSD.ORG" <freebsd-questions@FreeBSD.ORG> Subject: unknow host Message-ID: <37D8AE33.EDD84F90@stlinux.ouhk.edu.hk>
next in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format. --------------3BF989E79318E9290B14A743 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hello all i follow the web as file:///C|/freebsd/ppp/ppp12.html but i couldn't ping the freebsd box as address not as name from the local name but freebsd box can ping itself as address and name please teach me tks Peter --------------3BF989E79318E9290B14A743 Content-Type: text/html; charset=us-ascii; name="ppp12.html" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="ppp12.html" <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"> <HTML> <HEAD> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1"> <TITLE>Creating the List of other LAN Hosts(/etc/hosts)</TITLE> </HEAD> <BODY text="#000000" bgcolor="#ffffff"> <IMG SRC="../../gifs/bar.gif" ALT="" WIDTH="565" HEIGHT="33" BORDER=0 usemap="#bar"> <map name="bar"> <area shape="rect" coords="1,1,111,31" href="../../index.html" ALT=""> <area shape="rect" coords="112,11,196,31" href="../../ports/index.html" ALT=""> <area shape="rect" coords="196,12,257,33" href="../../support.html" ALT=""> <area shape="rect" coords="256,12,365,33" href="../../docs.html" ALT=""> <area shape="rect" coords="366,13,424,32" href="../../commercial/commercial.html" ALT=""> <area shape="rect" coords="425,16,475,32" href="../../search/search.html" ALT=""> <area shape="rect" coords="477,16,516,33" href="../../search/index-site.html" ALT=""> <area shape="rect" coords="516,15,562,33" href="../../index.html" ALT=""> <area shape="rect" href="../../index.html" coords="0,0,564,32" ALT=""> </map> <br clear=all> <A HREF="ppp.html"><EM>PPP - Pedantic PPP Primer</EM></A> <b>:</b> <A HREF="ppp6.html"><EM>FreeBSD System Configuration</EM></A> <b>:</b> <EM>Creating the List of other LAN Hosts(<code>/etc/hosts</code>)</EM><BR> <b>Previous:</b> <A HREF="ppp11.html"><EM>Enabling Packet Forwarding</EM></A><BR> <b>Next:</b> <A HREF="ppp13.html"><EM>Testing the FreeBSD system</EM></A> <HR NOSHADE> <H2><A NAME="12"></A>3.4. Creating the List of other LAN Hosts(<code>/etc/hosts</code>)</H2> <p>The final step in configuring the LAN side of the FreeBSD system is to create a list of the names and TCP/IP addresses of the various systems that are connected to the Local Area Network. This list is stored in the '<code>/etc/hosts</code>' file.</p> <p>The default version of this file has only a single host name listing in it: the name and address of the loopback device ('lo0'). By networking convention, this device is always named "localhost" and always has an IP address of 127.0.0.1. (See the interface configuration example in Section 3.2.)</p> <p>To edit the <code>/etc/hosts</code> file enter the following command: <blockquote><code> <pre> # ee /etc/hosts </pre> </code></blockquote> </p> <p>Scroll all the way to the bottom of the file (paying attention to the comments along the way; there's some good information there!) and enter (assuming our sample network) the following IP addresses and host names: <blockquote><code> <pre> 192.168.1.1 curly curly.my.domain # FreeBSD System 192.168.1.2 larry larry.my.domain # Windows '95 System 192.168.1.3 moe moe.my.domain # Windows for Workgroups System 192.168.1.4 shemp shemp.my.domain # Windows NT System </pre> </code></blockquote> </p> <p>(No changes are needed to the line for the '<code>127.0.0.1 localhost</code>' entry.)</p> <p>Once you've entered these lines, press the 'Esc' key to invoke the control menu. Select "leave editor" and be sure to select "save changes" when prompted.</p> <HR NOSHADE> <A HREF="ppp.html"><EM>PPP - Pedantic PPP Primer</EM></A> <b>:</b> <A HREF="ppp6.html"><EM>FreeBSD System Configuration</EM></A> <b>:</b> <EM>Creating the List of other LAN Hosts(<code>/etc/hosts</code>)</EM><BR> <b>Previous:</b> <A HREF="ppp11.html"><EM>Enabling Packet Forwarding</EM></A><BR> <b>Next:</b> <A HREF="ppp13.html"><EM>Testing the FreeBSD system</EM></A> <hr> <address> <a href="../../mailto.html">freebsd-questions@freebsd.org</a> </address> </BODY> </HTML> --------------3BF989E79318E9290B14A743-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?37D8AE33.EDD84F90>