Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 19 Jan 2000 12:58:50 -0500
From:      Mikel <mikel@ocsny.com>
To:        Richard Martin <dmartin@origen.com>
Cc:        freebsd-net@FreeBSD.ORG
Subject:   Re: Virtual IPs & rc.conf
Message-ID:  <3885FB5A.5DAE854C@ocsny.com>
References:  <3885F5E4.9323AE01@origen.com>

next in thread | previous in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format.
--------------6A5CC793CBBF007C7F222B88
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

excerpt from my rc.conf:
#rjpcopycenter.com had to add these comments in for my sanity...this file has 50
0r 60 aliases...;(
ifconfig_xl0_alias1="inet 208.239.172.2 netmask 0xffffff00"
#afsp.org
ifconfig_xl0_alias2="inet 208.239.172.3 netmask 0xffffff00"
#cameronassoc.com
ifconfig_xl0_alias3="inet 208.239.172.4 netmask 0xffffff00"


excerpt from my rc.local:
route add -host 204.107.76.110 -interface xl0
route add -host 208.239.172.2 -interface xl0
route add -host 208.239.172.3 -interface xl0
route add -host 208.239.172.4 -interface xl0
route add -host 208.239.172.5 -interface xl0

hope that helps...

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

--
Cheers,
Mikel
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~+
| Optimized Computer Solutions, Inc        http://www.ocsny.com
| 39 W14th Street, Suite 203                   212 727 2238  x132
| New York, NY 10011
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~+
|  Labor rates:      Tech                  $125 hourly
|                          Net Engineer      $150 hourly
|                          Phone Support   $ 33 quarter hourly
|                          Lost Password   $ 45 per incedent
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~+
| http://www.ocsny.com/~mikel
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~+


--------------6A5CC793CBBF007C7F222B88
Content-Type: text/x-vcard; charset=us-ascii;
 name="mikel.vcf"
Content-Transfer-Encoding: 7bit
Content-Description: Card for Mikel
Content-Disposition: attachment;
 filename="mikel.vcf"

begin:vcard 
n:King;Mikel
x-mozilla-html:TRUE
org:Optimized Computer Solutions
version:2.1
email;internet:mikel@ocsny.com
title:Procurement Manager
tel;fax:2124638402
tel;home:http://www.upan.org/vizkr
tel;work:2127272100
adr;quoted-printable:;;39 W14th St.=0D=0ASte 203;New York;NY;10011;US
x-mozilla-cpt:;0
fn:Mikel King
end:vcard

--------------6A5CC793CBBF007C7F222B88--



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?3885FB5A.5DAE854C>