Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    CARP VHID question

    Scheduled Pinned Locked Moved HA/CARP/VIPs
    7 Posts 2 Posters 3.4k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • JeGrJ
      JeGr LAYER 8 Moderator
      last edited by

      Hi,

      just wanted to drop a quick question about using unique VHID. Am I correct in assuming, that VHIDs must only be unique on something like the same physical interface or same logical VLAN?

      Background: We have a new cluster setup with two WAN uplinks each (WAN1/2), SYNC, Management Interface and DMZ Trunk. The DMZ trunk are two 10gbps lines (LACP LAGG interface) that has multiple VLANs (~50). As we want to deploy dual homing addresses (IPlegacy and IPv6) that would result in around 53*2 CARP VIPs. As the number of VLANs will add up (every new customer project is getting one) the number of VHIDs won't be enough (255).

      So we thought about just using VHID 4 and 6 on those project VLANs on the DMZ as those networks are completely controlled by us and no other VRRP/CARP/Multicast Setup should reside there. It was my understanding that the same VHID only causes havoc when they are discovered on the same network (like same VLAN or interface).

      Is that a correct assumption and way to roll? On both WAN uplinks I have to deploy another VHID as the other side uses Juniper Switches also using VRRP so I have to check with them for not colliding. Sync doesn't need CARP. So would it be a viable alternative to run the v4 CARP with vhid4 and the v6 CARP with vhid6 on all those pesky VLANs?

      Greets
      Jens

      Don't forget to upvote ๐Ÿ‘ those who kindly offered their time and brainpower to help you!

      If you're interested, I'm available to discuss details of German-speaking paid support (for companies) if needed.

      1 Reply Last reply Reply Quote 0
      • jimpJ
        jimp Rebel Alliance Developer Netgate
        last edited by

        Yes, it only has to be unique on each layer 2.

        So long as the multicast traffic from CARP does not cross into the other segments, the same VHID can be used on separate interfaces.

        The GUI allows this now, but it didn't always do so in the past. We loosened the restrictions at some point, though it's been too many years for me to remember when exactly. :-)

        Remember: Upvote with the ๐Ÿ‘ button for any user/post you find to be helpful, informative, or deserving of recognition!

        Need help fast? Netgate Global Support!

        Do not Chat/PM for help!

        1 Reply Last reply Reply Quote 0
        • JeGrJ
          JeGr LAYER 8 Moderator
          last edited by

          So long as the multicast traffic from CARP does not cross into the other segments, the same VHID can be used on separate interfaces.

          What would be a possibility for that to cross into other segments?

          As said, it will be 2 VIPs for each WAN (physical interfaces each) and around 2*50 VIPs for each VLAN on the Trunk Interface (a LAGG interface consisting of 2 10G NICs). So

          ip4@WAN1
          ip6@WAN1
          ip4@WAN2
          ip6@WAN2
          and
          ip4@VLAN10/LAGG0
          ip6@VLAN10/LAGG0
          ip4@VLAN11/LAGG0
          ip6@VLAN11/LAGG0
          โ€ฆ

          should be fine that way?

          Thanks a lot,
          Jens

          Don't forget to upvote ๐Ÿ‘ those who kindly offered their time and brainpower to help you!

          If you're interested, I'm available to discuss details of German-speaking paid support (for companies) if needed.

          1 Reply Last reply Reply Quote 0
          • jimpJ
            jimp Rebel Alliance Developer Netgate
            last edited by

            As long as each interface is on a separate layer 2, it's OK. It's only if you do something questionable like connect multiple interfaces to the same flat network that would have a problem reusing VHIDs.

            Remember: Upvote with the ๐Ÿ‘ button for any user/post you find to be helpful, informative, or deserving of recognition!

            Need help fast? Netgate Global Support!

            Do not Chat/PM for help!

            1 Reply Last reply Reply Quote 0
            • JeGrJ
              JeGr LAYER 8 Moderator
              last edited by

              Ah I see, something like accidentally bridging VLANs together so multiple ones would have the same pf-vhid-based MAC address. Then that setup should be finde I hope. :)

              Don't forget to upvote ๐Ÿ‘ those who kindly offered their time and brainpower to help you!

              If you're interested, I'm available to discuss details of German-speaking paid support (for companies) if needed.

              1 Reply Last reply Reply Quote 0
              • jimpJ
                jimp Rebel Alliance Developer Netgate
                last edited by

                Thinking more like someone who just plugs in multiple interfaces into the same switch without VLANs, or into multiple access ports on the same VLAN, that sort of thing is a problem for it.

                If you have proper physical (separate switches) or virtual (VLAN) segment isolation then you're fine.

                Remember: Upvote with the ๐Ÿ‘ button for any user/post you find to be helpful, informative, or deserving of recognition!

                Need help fast? Netgate Global Support!

                Do not Chat/PM for help!

                1 Reply Last reply Reply Quote 0
                • JeGrJ
                  JeGr LAYER 8 Moderator
                  last edited by

                  Just a quick follow-up: we did our FW exchange last night and - at least on the CARP side - things went as expected -> VHIDs seem to work and failover just fine.

                  Don't forget to upvote ๐Ÿ‘ those who kindly offered their time and brainpower to help you!

                  If you're interested, I'm available to discuss details of German-speaking paid support (for companies) if needed.

                  1 Reply Last reply Reply Quote 0
                  • First post
                    Last post
                  Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.