From owner-freebsd-questions Fri Sep 10 0: 7:41 1999 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.asiaonline.net (mx1.asiaonline.net [202.85.0.229]) by hub.freebsd.org (Postfix) with ESMTP id 824711539E for ; Fri, 10 Sep 1999 00:07:34 -0700 (PDT) (envelope-from cckok00@stlinux.ouhk.edu.hk) Received: from stlinux.ouhk.edu.hk (ip95-152.asiaonline.net [202.85.95.152]) by mx1.asiaonline.net (8.9.3/8.9.3) with ESMTP id PAA06929 for ; Fri, 10 Sep 1999 15:05:52 +0800 (HKT) Message-ID: <37D8AE33.EDD84F90@stlinux.ouhk.edu.hk> Date: Fri, 10 Sep 1999 15:07:31 +0800 From: Peter Kok X-Mailer: Mozilla 4.6 [en] (Win98; I) X-Accept-Language: en MIME-Version: 1.0 To: "freebsd-questions@FreeBSD.ORG" Subject: unknow host Content-Type: multipart/mixed; boundary="------------3BF989E79318E9290B14A743" Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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" Creating the List of other LAN Hosts(/etc/hosts)
PPP - Pedantic PPP Primer : FreeBSD System Configuration : Creating the List of other LAN Hosts(/etc/hosts)
Previous: Enabling Packet Forwarding
Next: Testing the FreeBSD system

3.4. Creating the List of other LAN Hosts(/etc/hosts)

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 '/etc/hosts' file.

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.)

To edit the /etc/hosts file enter the following command:

 # ee /etc/hosts 

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:

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

(No changes are needed to the line for the '127.0.0.1 localhost' entry.)

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.


PPP - Pedantic PPP Primer : FreeBSD System Configuration : Creating the List of other LAN Hosts(/etc/hosts)
Previous: Enabling Packet Forwarding
Next: Testing the FreeBSD system
freebsd-questions@freebsd.org
--------------3BF989E79318E9290B14A743-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message