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

Carp mac address

Scheduled Pinned Locked Moved HA/CARP/VIPs
9 Posts 5 Posters 16.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.
  • H
    hawker
    last edited by Jun 23, 2006, 12:42 PM

    Hi,

    I want to change the mac address of carp interface.

    i try to pass the ether option in the ifconfig line but I've got a error

    I must define a HW address for my carp interface because I have 2 firewall (4 host) using carp in the same network.

    sorry for my english

    1 Reply Last reply Reply Quote 0
    • H
      hoba
      last edited by Jun 23, 2006, 12:53 PM

      You can't specify a MAC for a CARP IP. It's generated randomly on bootup, so it will change on each new reboot unless the same one is taken over from master-slave-master-slave-…(which means unless not both systems are down at the same time it will stay the same). Afaik a static MAC for a CARP IP is not possible. At least the webgui doesn't support it.

      1 Reply Last reply Reply Quote 0
      • H
        hawker
        last edited by Jun 23, 2006, 1:13 PM

        MAC address are not random.

        I boot many time and i always have 00:00:5E:00:01:01 MAC address for the carp interface.

        1 Reply Last reply Reply Quote 0
        • S
          sullrich
          last edited by Jun 23, 2006, 5:38 PM

          You cannot change the MAC address of a carp interface.  Sorry!

          1 Reply Last reply Reply Quote 0
          • J
            Juve
            last edited by Jun 24, 2006, 10:15 AM

            Scott and hoba, I noticed the same problem. Having two CARP cluster on the same network makes things difficult since each cluster gets the same MAC each time it bootup.

            Perhaps something is going wrong with the random generator at machine startup ?  The random generator seems to be ok since it delivers a random MAC but not well initialized, like if it doesn't start with a randomize function….

            1 Reply Last reply Reply Quote 0
            • B
              billm
              last edited by Jun 24, 2006, 8:39 PM

              CARP mac addresses are generated with the first five octets being 00:00:5E:00:01 and the last octet being that of the CARP VHID.  If you want to change this, it's in the kernel, I wouldn't change it unless I knew what I was doing if I were you (it's set the way it is for good reason).

              –Bill

              pfSense core developer
              blog - http://www.ucsecurity.com/
              twitter - billmarquette

              1 Reply Last reply Reply Quote 0
              • J
                Juve
                last edited by Jun 25, 2006, 11:33 AM

                CARP mac addresses are generated with the first five octets being 00:00:5E:00:01 and the last octet being that of the CARP VHID

                So changing the VHID for the second cluster would permit to have the two clusters running on the same subnet ?

                1 Reply Last reply Reply Quote 0
                • S
                  sullrich
                  last edited by Jun 25, 2006, 6:08 PM

                  Yes.

                  1 Reply Last reply Reply Quote 0
                  • H
                    hawker
                    last edited by Jun 25, 2006, 6:41 PM

                    Yes i try, it's OK

                    Thanks

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