Lots of tutorials out there show to set-up carp using ifconfig: https://www.netbsd.org/docs/guide/en/chap-carp.html
I'm wondering if it's possible to do the same using /etc/network/interfaces?
For instance, how can I duplicate this:
# ifconfig carp0 create
# ifconfig carp0 vhid 1 pass lanpasswd \
carpdev em0 advskew 100 10.0.0.1 255.255.255.0
in /etc/network/interfaces?
Thanks!!
Try using a manual interface with the pre-up and up options. I would start with:
The command
man interfaces
should give you documentation on how to use/etc/network/interfaces
.Yes, this is possible. Below is a sample configuration of /etc/network/interfaces:
Cheers