Fwd: How does carp computes the MAC address of the a certain
m.seaman at infracaninophile.co.uk
Mon Dec 5 00:58:39 PST 2005
Mark Jayson Alvarez wrote:
> How does carp computes the MAC address of the a certain Virtual IP?
> Perhaps I can set up a route for the virtual IP address manually
> because the kernel keeps on complaining: "arp_trequest: bad gateway
> (!AF_LINK). This is weired because my carp setup is working for the
> past 4 days and it suddenly stopped with the above error.
CARP assigns a special MAC address to the virtual IP:
eg. from one of the HA firewall setups we manage at work:
The last byte (05 in this case) is set to the VHID parameter you put on
the ifconfig line to initialise the carpN interface -- eg.
ifconfig carp0 inet 126.96.36.199 255.255.255.0 188.8.131.52 vhid 5 pass notTellingYou advskew 1
If you have several pairs of systems on the same network all using carp, you
need to ensure that they all use distinct vhid values or else chaos will ensue.
Dr Matthew J Seaman MA, D.Phil. Flat 3
7 Priory Courtyard
PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
Kent, CT11 9PW, UK
More information about the freebsd-questions