New FreeBSD Screencast Episode about CARP

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"

8 thoughts on "New FreeBSD Screencast Episode about CARP"

  1. 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?

    1. hukl says:

      Fixed. Don’t know what would happen but probably undesired behaviour 🙂

  2. Tim says:

    I really love your FreeBSD videos. Please keep them coming

  3. Paidhi says:

    BTW: Cool song: “CARP license”
    http://www.openbsd.org/lyrics.html#35

  4. Daniel says:

    Can’t wait for the next episode!

  5. Sarah says:

    +1 more videos on FreeBSD please

    1. hukl says:

      Will do over the next 4 weeks. What would you like to see?

  6. mchack says:

    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?

Leave a Reply

Your email address will not be published. Required fields are marked *