Today I’ve tried out CARP, the Common Address Redundancy Protocol, which allows you to easily set up automatic failover for machines which usually become single points of failure in your infrastructure like loadbalancers, firewalls and routers.
It was so easy and quick that I made a short video demonstrating it:
Commands
# Machine 1 ifconfig carp0 create ifconfig carp0 vhid 1 advskew 100 pass foobartralala 10.8.0.130/24 # Machine 2 ifconfig carp0 create ifconfig carp0 vhid 1 advskew 200 pass foobartralala 10.8.0.130/24
If you want to make that set up permanent put something similar to your /etc/rc.conf:
cloned_interfaces="carp0" ifconfig_carp0="vhid 1 advskew 100 pass foobartralala 10.8.0.130/24"
You set advskew to 200 on machine 2, but “100” in the article above…
What happens, if I really set the priority to the same level on both machines?
Fixed. Don’t know what would happen but probably undesired behaviour 🙂
I really love your FreeBSD videos. Please keep them coming
BTW: Cool song: “CARP license”
http://www.openbsd.org/lyrics.html#35
Can’t wait for the next episode!
+1 more videos on FreeBSD please
Will do over the next 4 weeks. What would you like to see?
The 4 weeks are over 🙂
Please do some more Screencasts!
I’d be most pleased about the continuation of what you started. You promised setting up a wordpress with nginx in the 04 screencast but never did.
Also I’d like to see how you set up your database jail and your mail jail 🙂
Pretty please with sugar on top?