From owner-freebsd-net Wed Jan 19 9:51:52 2000 Delivered-To: freebsd-net@freebsd.org Received: from pouet.noc.fr.clara.net (zion.noc.fr.clara.net [212.43.195.29]) by hub.freebsd.org (Postfix) with ESMTP id 777BE1530D for ; Wed, 19 Jan 2000 09:51:49 -0800 (PST) (envelope-from sameh@fr.clara.net) Received: by pouet.noc.fr.clara.net (Postfix, from userid 1000) id 0EE26583; Wed, 19 Jan 2000 18:51:01 +0100 (CET) Date: Wed, 19 Jan 2000 18:51:01 +0100 From: Sameh Ghane To: Richard Martin Cc: freebsd-net@FreeBSD.ORG Subject: Re: Virtual IPs & rc.conf Message-ID: <20000119185101.K10127@noc.fr.clara.net> References: <3885F5E4.9323AE01@origen.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Mailer: Mutt 1.0i In-Reply-To: <3885F5E4.9323AE01@origen.com>; from dmartin@origen.com on Wed, Jan 19, 2000 at 11:35:32AM -0600 Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Le Wed, Jan 19, 2000 at 11:35:32AM -0600, Richard Martin écrivit: > 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 > > 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" Almost: ifconfig_xl0_alias[number]="inet [newip] netmask [your_netmask]" ... If you have multiple IPs (apparently), and routes, you can try: route_[name]="-net [IP] -netmask [netmask] [router_ip]" ... and then: static_routes="[name_route1] [name_route2] ..." -- Sameh Ghane To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message