From owner-freebsd-questions Wed Aug 11 13:28:42 1999 Delivered-To: freebsd-questions@freebsd.org Received: from scientia.demon.co.uk (scientia.demon.co.uk [212.228.14.13]) by hub.freebsd.org (Postfix) with ESMTP id 8ED9114BFE for ; Wed, 11 Aug 1999 13:28:12 -0700 (PDT) (envelope-from ben@scientia.demon.co.uk) Received: from lithium.scientia.demon.co.uk ([192.168.0.3] ident=exim) by scientia.demon.co.uk with esmtp (Exim 3.024 #3) id 11EdQn-00042Y-00; Wed, 11 Aug 1999 19:48:57 +0100 Received: (from ben) by lithium.scientia.demon.co.uk (Exim 3.024 #3) id 11EdQo-0001hL-00; Wed, 11 Aug 1999 19:48:58 +0100 Date: Wed, 11 Aug 1999 19:48:58 +0100 From: Ben Smithurst To: Marc Tardif Cc: freebsd-questions@freebsd.org Subject: Re: virtual ip's in rc.conf Message-ID: <19990811194858.B6274@lithium.scientia.demon.co.uk> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.4i In-Reply-To: Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Marc Tardif wrote: > Is there a way to set virtual ip's directly in the rc.conf file instead of > having to type "ifconfig ed0 alias 192.168.0.2 netmask 0xffffffff". This > is what I have: > ifconfig_ed0="inet 192.168.0.1 netmask 255.255.255.0" > ifconfig_ed0="alias 192.168.0.2 netmask 255.255.255.0" > I looked all over the handbook and all over the mailing list but couldn't > find anything. If anyone could help, I'd appreciate. Have you looked in /etc/defaults/rc.conf? If you had, you would see: #ifconfig_lo0_alias0="inet 127.0.0.254 netmask 0xffffffff" # Sample alias entry. I'm sure you can work it out from there. Alternatively, you could have RTFM (rc.conf(5)) which explains ifconfig_${interface}_alias${n}. -- Ben Smithurst | PGP: 0x99392F7D ben@scientia.demon.co.uk | key available from keyservers and | ben+pgp@scientia.demon.co.uk To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message