[nycbug-talk] ucarp question
Isaac Levy
ike at lesmuug.org
Tue Sep 19 18:12:14 EDT 2006
On Sep 17, 2006, at 8:02 PM, Yarema wrote:
> --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/
Oh. Boy I feel stupid. So UCarp is REALLY just the Carp, I feel
like an idiot, I thought UCarp brought up the ipalias all by itself.
(*doh!*) But it ONLY does the Carp. Boy I feel stupid.
So, I'll do it again when I'm back touching that machine again,
adding the appropriate ifconfig alias statements to the up and down
scripts.
Rocket-
.ike
More information about the talk
mailing list