net/ucarp : New rc script with multiple VHID and FIB support

Olivier Cochard-Labbé olivier at cochard.me
Fri Mar 26 10:25:41 UTC 2010


Hi,

I've improved the startup script for net/ucarp by adding multiple VHID
support, and FIB support.
Now, you can have this example of rc.conf configuration with net/ucarp
(up to the 255 VHID):

# uCarp
ucarp_enable="YES"
#ucarp_VHID_option="value"
ucarp_1_if="ed1"
ucarp_1_src="10.0.1.2"
ucarp_1_addr="10.0.1.1"
ucarp_1_shutdown="NO"
ucarp_3_if="ed3"
ucarp_3_src="10.0.3.2"
ucarp_3_pass="passcarp"
ucarp_3_addr="10.0.3.1"
ucarp_3_fib="3"
ucarp_4_if="ed4"
ucarp_4_src="10.0.4.2"
ucarp_4_pass="passcarp4"
ucarp_4_addr="10.0.4.1"
ucarp_4_fib="2"

If you want to try it, you can get it here:
http://bsdrp.svn.sourceforge.net/viewvc/bsdrp/trunk/Files/usr/local/etc/rc.d/ucarp

I've got only one bug to solve (if someone have an idea):
If ucarp is already started, and you start it again, the rc.subr
should detect already running ucarp processes and prevent to launch
other ucarp processes.
But there is a bug somewhere, and rc.subr didn't prevent to start them
again :-(

Regards,

Olivier


More information about the freebsd-ports mailing list