Carp mac address



  • 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



  • 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.



  • 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.



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



  • 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….



  • 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



  • 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 ?



  • Yes.



  • Yes i try, it's OK

    Thanks


Log in to reply