From owner-freebsd-questions Thu Jan 18 7:23:40 2001 Delivered-To: freebsd-questions@freebsd.org Received: from ra.upan.org (upan.org [204.107.76.19]) by hub.freebsd.org (Postfix) with ESMTP id A571937B401 for ; Thu, 18 Jan 2001 07:23:21 -0800 (PST) Received: from ocsinternet.com (localhost.upan.org [127.0.0.1]) by ra.upan.org (8.11.1/8.11.1) with ESMTP id f0IANgn40117; Thu, 18 Jan 2001 10:23:42 GMT (envelope-from mikel@ocsinternet.com) Message-ID: <3A66C42E.A6857CA5@ocsinternet.com> Date: Thu, 18 Jan 2001 10:23:42 +0000 From: Mikel King X-Mailer: Mozilla 4.76 [en] (X11; U; FreeBSD 4.2-RELEASE i386) X-Accept-Language: en MIME-Version: 1.0 To: Drew Sanford Cc: questions Subject: Re: ifconfig in rc.conf References: <3A670981.4090308@planetwe.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Drew, Just add the following for your alias; ifconfig_dc0_alias0="inet 192.168.1.16 mtu 1462 netmask 255.255.255.255" cheers, Mikel Drew Sanford wrote: > I have a NIC I need to answer to two IP addresses. Lets say > hypothetically I have something like: > > ifconfig_dc0="inet 192.168.1.6 mtu 1462 netmask 255.255.255.0" > > in my rc.conf file. If the machine is up, I type something like: > > ifconfig dc0 alias 192.168.1.16 > > to add the second ip address. If I want this to happen automatically on > startup (FBSD 4.2-stable) I would add: > > ifconfig_dc0="alias 192.168.1.16" > > to my rc.conf, right? I'm trying to verify this because if the machine > goes down, and comes back up, and that doesn't work, I'd hate to have to > rely on my memory to check on it. Thanks in advance for confirming or > correcting my suspicions on this. > > -- > Drew Sanford > Systems Administrator > drew@planetwe.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