Building The Network You Need With PF, The OpenBSD Packet Filter: BSDCan 2016, Ottawa, Canada, June 8th 2016 | ||
---|---|---|
Prev | Next |
on the master
$ sudo ifconfig carp0 192.0.2.19 carpdev sis0 vhid 1 $ sudo ifconfig carp1 192.168.1.1 carpdev sis1 vhid 2
on the backup
$ sudo ifconfig carp0 192.0.2.19 carpdev sis0 vhid 1 advskew 100 $ sudo ifconfig carp1 192.168.1.1 carpdev sis1 vhid 2 advskew 100
NOTE: On OpenBSD 5.7 onwards, explicit carpdev is required
the master announces every (1 + 0/256) seconds
the backup announces every (1 + 100/256) seconds
Note Multicast by default. Use carppeer option for unicast. It' also possible to set the MAC address explicitly with the lladdr option.
Also see Henning Brauer's notes