NetBSD-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: automatically configuring carp(4)
Thanks Manuel.
> What's the recommended way of configuring carp(4) so it will be
configured each time a machine starts? Is it putting the 'ifconfig
carp0 create' command, etc. in /etc/rc.local, or perhaps creating a
/etc/ifconfig.carp0 file and adding a
net_interfaces="carp0"
line to /etc/rc.conf ?
just adding a /etc/ifconfig.carp0 should do it.
Yes, that's worked:
% cat /etc/ifconfig.carp0
create
vhid 1 pass password 192.168.2.5 255.255.255.0
% grep carp0 /etc/rc.conf
net_interfaces="ex0 carp0"
%
and on the second of the two machines in the group:
% cat /etc/ifconfig.carp0
create
vhid 1 advskew 100 pass password 192.168.2.5 255.255.255.0
% grep carp0 /etc/rc.conf
net_interfaces="ex0 carp0"
%
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? 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? If so, could you
post the contents of the /etc/ifconfig.* files you're using for
reference?
Ray
Home |
Main Index |
Thread Index |
Old Index