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

CARP and Vlans

Scheduled Pinned Locked Moved HA/CARP/VIPs
6 Posts 3 Posters 1.1k 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.
  • B
    bisssane
    last edited by Jul 24, 2018, 12:07 PM

    hi,
    when I do the failover between 2 PfSense (CARP) does it have to synchronize the creation of VLANs?
    when I create a Vlan and its interface in the Pfsense Master, does this have to be created automatically in PfSense Slave?

    1 Reply Last reply Reply Quote 0
    • A
      awebster
      last edited by Jul 24, 2018, 1:21 PM

      No, all your interfaces must first be created on both sides, since the actual real interfaces will each have their own different IP address.
      You must also make sure they use the same NIC and VLAN numbers on each side.
      The Sync will copy over any changes you make to firewall rules, NATs, DNS, DHCP, basically everything EXCEPT the interfaces.

      –A.

      B 1 Reply Last reply Jul 25, 2018, 1:40 PM Reply Quote 2
      • B
        bisssane
        last edited by Jul 24, 2018, 1:25 PM

        haah okeyyy , thank youu

        1 Reply Last reply Reply Quote 0
        • B
          bisssane @awebster
          last edited by Jul 25, 2018, 1:40 PM

          @awebster

          but do I put the same ip address for the 2 interface of the Vlan ( the saùe on the master and the slave )? or I put 2 different ip address

          1 Reply Last reply Reply Quote 0
          • A
            awebster
            last edited by Jul 25, 2018, 2:01 PM

            Each underlying interface must have a unique IP.

            For example:
            LAN-A = LAN Interface on Master =192.168.1.2
            LAN-B = LAN Interface on Backup = 192.168.1.3
            LAN-VIP = CARP VIP address on BOTH = 192.168.1.1

            Hosts will use 192.168.1.1 as their default gateway, and this IP address will map to MAC address 01:00:5e:00:00:xx (xx= VHID number). This MAC address with normally be on the Master pfSense, but if the Backup detects that the Master is down, it will take over the MAC address and send ARP packets to update the network so that the traffic for 192.168.1.1 will arrive at the Backup.

            –A.

            1 Reply Last reply Reply Quote 1
            • D
              Derelict LAYER 8 Netgate
              last edited by Derelict Jul 27, 2018, 8:46 AM Jul 27, 2018, 8:44 AM

              Close.

              ARP responses from the firewalls are always CARP VIP ISAT CARP MAC. But those reponses are sourced from the interface MAC address, not the CARP MAC. The CARP MAC address is included in the ARP ISAT response, not the frame itself.

              What steers the traffic to the proper node that holds the CARP MASTER is the fact that the CARP advertisements are sourced from the CARP MAC address. This tells the switching layer what port to send the traffic to. No traffic ever gets sourced from the CARP MAC at layer 2 other than the CARP advertisements.

              This is why most CARP problems come down to switching, not pfSense itself.

              Chattanooga, Tennessee, USA
              A comprehensive network diagram is worth 10,000 words and 15 conference calls.
              DO NOT set a source address/port in a port forward or firewall rule unless you KNOW you need it!
              Do Not Chat For Help! NO_WAN_EGRESS(TM)

              1 Reply Last reply Reply Quote 0
              2 out of 6
              • First post
                2/6
                Last post
              Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                This community forum collects and processes your personal information.
                consent.not_received