From owner-freebsd-net Thu Jan 20 3:54:52 2000 Delivered-To: freebsd-net@freebsd.org Received: from intranova.net (blacklisted.intranova.net [209.3.31.70]) by hub.freebsd.org (Postfix) with SMTP id 3AACE153DA for ; Thu, 20 Jan 2000 03:54:50 -0800 (PST) (envelope-from oogali@intranova.net) Received: (qmail 94503 invoked from network); 20 Jan 2000 06:57:02 -0000 Received: from missnglnk.wants.to-fuck.com (HELO hydrant.intranova.net) (user57123@209.201.95.10) by blacklisted.intranova.net with SMTP; 20 Jan 2000 06:57:02 -0000 Date: Thu, 20 Jan 2000 06:53:40 -0500 (EST) From: Omachonu Ogali To: Richard Martin Cc: freebsd-net@freebsd.org Subject: Re: Virtual IPs & rc.conf In-Reply-To: <3885F5E4.9323AE01@origen.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Why not do: # -- Main IP ifconfig_xl0="inet x.x.x.x" # -- Aliases ifconfig_xl0_alias0="inet alias x.x.x.x netmask 0xffffffff" ifconfig_xl0_alias1="inet alias x.x.x.x netmask 0xffffffff" ifconfig_xl0_alias2="inet alias x.x.x.x netmask 0xffffffff" ifconfig_xl0_alias3="inet alias x.x.x.x netmask 0xffffffff" And so on... I don't see a need for static routes, as that all fits into /etc/rc.conf Omachonu Ogali Intranova Networking Group On Wed, 19 Jan 2000, Richard Martin wrote: > I'm a bit new to FreeBSD, and not quite sure how to add routes for virtual IPs > we host into the startup file. > > I know that the commands: > > ifconfig xl0 alias [new ip] netmask 0xffffffff > route add -host [new ip] -interface xl0 > > will add the ip and route to the routing table, but I can't seem to get this > into the startup scripts correctly. > > I have tried fiddling with the static_route command, but no success and its a > pain to have to reboot to try each new iteration > > Is this what goes in rc.conf? /usr/local/etc/rc.d? > > if_config_xl0="alias [new ip] netmask 0xffffffff" > static_route="-host [new ip] -interface xl0" > > We have a lot of IPs to add, maybe just use a script run at boot? > > Thanks, > > > -- > Richard Martin dmartin@origen.com > > OriGen Biomedical Tel: +1 512 474 7278 > 2525 Hartford Rd. Fax: +1 512 708 8522 > Austin, TX 78703 http://www.formed.net > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-net" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message