NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: automatically configuring carp(4)



On Thu, Jun 04, 2009 at 04:59:37PM +1000, Ray Phillips wrote:
>> But if you're running carp on vlan (like a do) you can't use auto_ifconfig
>> because it's going to do it in the wrong order. The solution is to set
>> auto_ifconfig=NO and list all interfaces in net_interfaces
>
> Could you expand on that a bit please?  Would the kernel (?) try to  
> configure carp before the physical interface?

Not the kernel, the /etc/rc.d/network script. 

> Do you mean you have  
> separate 802.1Q VLANs defined on your NetBSD machine's NIC and one (or 
> more) of the NIC's IPs are in a carp(4) group?

Yes (so it's not the NIC's IPs but the IPs on the different vlan
interfaces)

> If so, could you post the 
> contents of the /etc/ifconfig.* files you're using for reference?

Quite easy, something like:
/etc/ifconfig.wm0
up

/etc/ifconfig.vlan0
create
vlan 574 vlanif wm0
inet 10.0.0.1 netmask 255.255.255.0 

/etc/ifconfig.carp0
create
vhid 1 advskew 100 pass password 132.227.1.1 255.255.255.0

(132.227.1.1 being the public IP shared by the 2 boxes, and 10.0.0.1
the IP used for internal communication with the second member of the
CARP).

-- 
Manuel Bouyer, LIP6, Universite Paris VI.           
Manuel.Bouyer%lip6.fr@localhost
     NetBSD: 26 ans d'experience feront toujours la difference
--


Home | Main Index | Thread Index | Old Index