You have to use a nr instead of a string e.g.
carp0 instead of
carpHA1. From the
carp(4) man page.
Code:
A carp interface can be created at runtime using the ifconfig carpN
create command or by setting up a hostname.if(5) configuration file for
netstart(8).
Code:
j65nko@hercules[~/SNAP/AMD64]sudo ifconfig carp0 vhid 1 pass mypass\
carpdev re0 175.0.0.11 netmask 255.0.0.0
j65nko@hercules[~/SNAP/AMD64] ifconfig carp0
carp0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
lladdr 00:00:5e:00:01:01
priority: 0
carp: MASTER carpdev re0 vhid 1 advbase 1 advskew 0
groups: carp
inet6 fe80::200:5eff:fe00:101%carp0 prefixlen 64 scopeid 0x7
inet 175.0.0.11 netmask 0xff000000 broadcast 175.255.255.255