From owner-freebsd-questions Mon May 29 9:29: 0 2000 Delivered-To: freebsd-questions@freebsd.org Received: from ux1.schottle.net (ux1.schottle.net [199.88.145.11]) by hub.freebsd.org (Postfix) with ESMTP id 703C537BC1A for ; Mon, 29 May 2000 09:28:56 -0700 (PDT) (envelope-from tom@schottle.net) Received: from schottle.net (ntw1.schottle.net [199.88.145.20]) by ux1.schottle.net (8.9.3/8.9.3) with ESMTP id MAA24782; Mon, 29 May 2000 12:28:51 -0400 (EDT) (envelope-from tom@schottle.net) Message-ID: <39329AC3.1C5AD0B1@schottle.net> Date: Mon, 29 May 2000 12:28:51 -0400 From: Tom Schottle X-Mailer: Mozilla 4.73 [en] (WinNT; U) X-Accept-Language: en MIME-Version: 1.0 To: Alex Kwan Cc: FreeBSD-Questions Subject: Re: Setting up IP aliasing on a FreeBSD machine References: <000701bfc924$0e594400$5c0540ca@alexkwan> <3931F04E.2B5FFC0A@schottle.net> <001a01bfc92a$e88e1be0$5c0540ca@alexkwan> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG That looks right. But I'm not sure. I've been using bind (named) from when it was defined/implemented. (I still remember HOSTS.TXT on MILNET (shudder!).) I have no idea how to configure M$ Windoze boxes in a non-bind environment. When you have time, I would suggest you get the O'Reilly book (Cricket) and learn about DNS. It's a basic skill that anyone who will manage a UNIX system needs to be proficient. You'll need DNS as soon as you have another FreeBSD box (managing duplicate /etc/hosts files is error prone) or connect your network to the Internet. Alex Kwan wrote: > > Hi! Tom, > > Thanks, I wanted to setup my FreeBSD machine to a Intranet Server > for a small business, Can I setup my /etc/hosts files as follows: > > 127.0.0.1 localhost > 192.168.1.1 alex.my.com alex > 192.168.1.2 web.net.com web > 192.168.1.3 mail.mynet.com mail > > Thanks > > > Here's the lines from my rc.conf, changed of course. Change the > > hostname, ethernet interface, addresses, and netmask to suit. > > > > hostname="my.domain.com" > > network_interfaces="lo0 xl0" > > ifconfig_lo0="inet 127.0.0.1" > > ifconfig_xl0="inet 123.123.123.100 netmask 255.255.255.0" > > ifconfig_xl0_alias0="inet 123.123.123.200 netmask 255.255.255.0" > > ifconfig_xl0_alias1="inet 123.123.123.201 netmask 255.255.255.0" > > ifconfig_xl0_alias2="inet 123.123.123.202 netmask 255.255.255.0" > > > > Tom Schottle > > tom@schottle.net > > > > > > Alex Kwan wrote: > > > > > > How to setup IP aliasing on a FreeBSD box > > > (one ethernet card three IPs and three domain names)? > > > Where is the document? > > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > > > with "unsubscribe freebsd-questions" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message