From owner-freebsd-questions Thu Nov 23 6:55:42 2000 Delivered-To: freebsd-questions@freebsd.org Received: from mail2.wmptl.com (mail2.wmptl.com [216.94.6.26]) by hub.freebsd.org (Postfix) with ESMTP id 0990237B4C5 for ; Thu, 23 Nov 2000 06:55:39 -0800 (PST) Received: from wmptl.com ([10.0.0.168]) by mail2.wmptl.com (8.9.3/8.9.3) with ESMTP id JAA69120; Thu, 23 Nov 2000 09:41:27 -0500 (EST) (envelope-from webmaster@wmptl.com) Message-ID: <3A1D2F71.1A219E9@wmptl.com> Date: Thu, 23 Nov 2000 09:53:37 -0500 From: Nathan Vidican Reply-To: webmaster@wmptl.com X-Mailer: Mozilla 4.72 [en] (Win95; I) X-Accept-Language: en MIME-Version: 1.0 To: Stefan Lesicnik Cc: questions@freebsd.org Subject: Re: 2nd ip address and routing. References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Stefan Lesicnik wrote: > > Ive noticed, im not sure of the theory why, that when you alias your nic, > you need to make the alias's subnet 255.255.255.255 > > ie > > > ifconfig_ex0="inet 10.0.0.1 netmask 255.255.255.0" > > ifconfig_ex0_alias0="inet 10.0.0.2 netmask 255.255.255.255" > > defaultrouter="10.0.0.254" > > I might be wrong > > Just a thought, > > Stefan > > On Thu, 23 Nov 2000, Nathan Vidican wrote: > > > "J. Buesink" wrote: > > > > > > Hi, > > > > > > I'm trying to give my ex0 a second ip adress with ifconfig, this works > > > I've also added a route to another gateway, this works. > > > > > > But where and how can I save this configuration in the files? > > > Could somebody give me a sample config file? > > > > > > Kind regards in advanche. > > > > > > Jorg Buesink, The Netherlands > > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > > > with "unsubscribe freebsd-questions" in the body of the message > > > > /etc/rc.conf, you'd add something similar to this: > > > > ifconfig_ex0="inet 10.0.0.1 netmask 255.255.255.0" > > ifconfig_ex0_alias0="inet 10.0.0.2 netmask 255.255.255.0" > > defaultrouter="10.0.0.254" > > > > Take a look at /etc/defaults/rc.conf for all the possible configuration > > variables.. > > > > -- > > Nathan Vidican > > webmaster@wmptl.com > > Windsor Match Plate & Tool Ltd. > > http://www.wmptl.com/ > > > > > > 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 Never done it that way personally; the machine this message is being sent through, (our mailserver), has several NIC's, each with several IP addresses. They are aliased using the same netmask. For example, I have one NIC, (on internal LAN), aliasing 16IP addresses in the 10.0.0.255 network, all using 255.255.255.0 as their netmask. This may be incorrect, but it works? -- Nathan Vidican webmaster@wmptl.com Windsor Match Plate & Tool Ltd. http://www.wmptl.com/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message