[nycbug-talk] ucarp question

Yarema yds at CoolRat.org
Sun Sep 17 20:02:59 EDT 2006


--On Friday, September 15, 2006 1:19 AM -0400 Isaac Levy <ike at lesmuug.org> 
wrote:

> My ucarp line looks like this:
> --
> ucarp interface=rl0 --srcip=10.0.1.242 --vhid=1 --pass=mypassword \
>        --preempt --addr=10.1.1.240 \
>        --upscript=/etc/vip-up.sh --downscript=/etc/vip-down.sh
>
> Running it looks like this:
> --
> [root at monkey ~]# ucarp interface=rl0 --srcip=10.0.1.242 --vhid=1 --
> pass=mypassword --preempt --addr=10.1.1.240 --upscript=/etc/vip-up.sh
> --downscript=/etc/vip-down.sh
> [INFO] Using [re0] as a network interface
> [INFO] Local advertised ethernet address is [00:14:6c:c0:14:cc]
> [WARNING] Switching to state: MASTER
> [WARNING] Spawning [/etc/vip-up.sh re0]
> hello up

Ike,

What does your /etc/vip-up.sh script actually look like?  Does it have the 
requisite ifconfig ... alias command to actually assign the virtual IP to 
the interface in question?

As an aside I've found renaming interfaces akin to:

ifconfig_fxp0_name="wan0"
ifconfig_vge0_name="lan0"
ifconfig_vr0_name="sync0"

in /etc/rc.conf extremely useful.  This way all scripts, ifconfig commands 
and pf rules can reference the descriptive name rather than the driver name 
of the interface.

-- 
Yarema
http://yds.CoolRat.org/



More information about the talk mailing list