Date: Wed, 19 Jan 2000 18:51:01 +0100 From: Sameh Ghane <sameh@fr.clara.net> To: Richard Martin <dmartin@origen.com> Cc: freebsd-net@FreeBSD.ORG Subject: Re: Virtual IPs & rc.conf Message-ID: <20000119185101.K10127@noc.fr.clara.net> In-Reply-To: <3885F5E4.9323AE01@origen.com>; from dmartin@origen.com on Wed, Jan 19, 2000 at 11:35:32AM -0600 References: <3885F5E4.9323AE01@origen.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000119185101.K10127>