Coming back to my own question :), For those who are interested in this because I know a lot of people are trying to use CARP with a single ISP (DHCP/DHCPv6/...) running into some problems like I do... I am currently scripting this to CARP events so that in case of MASTER/BACKUP the WAN link on the BACKUP stays down until needed.
Bringing the interface down:
pkill -f dhclient
pkill -f dhcp6c
pkill -f rtsold
pkill -f dpinger
ifconfig <iface> -alias <wan-ipv4>
ifconfig <iface> inet6 <wan-ipv6> delete
configctl interface linkup stop <iface>
ifconfig <iface> down
Bringing the interface up again:
configctl interface linkup start <iface>
configctl interface reconfigure <iface>
I might post a full script etc. if wanted...
EDIT: added pkill -f rtsold, noticed interface came back to RUNNING state after a while.
Regards,
Steven
Bringing the interface down:
pkill -f dhclient
pkill -f dhcp6c
pkill -f rtsold
pkill -f dpinger
ifconfig <iface> -alias <wan-ipv4>
ifconfig <iface> inet6 <wan-ipv6> delete
configctl interface linkup stop <iface>
ifconfig <iface> down
Bringing the interface up again:
configctl interface linkup start <iface>
configctl interface reconfigure <iface>
I might post a full script etc. if wanted...
EDIT: added pkill -f rtsold, noticed interface came back to RUNNING state after a while.
Regards,
Steven
"