Hi,

I am currently revising a pair of openbsd routers we are running (and btw running them quite happily for a while now!).

These routers have two interfaces, em0 and em1, which are each connected to different switches (ie. em0 of both machines to switch1 and em1 to switch2). em0 hosts all upstreams to which the routers are connected to - no carp interfaces here.

em1 hosts all internal subnets, which are split across approx. 10 vlan interfaces. These vlan interfaces are "carped" between the two boxes - one carp interface per vlan interface.

Both boxes have net.inet.carp.preempt set to 1
Each carp interface has a different vhid

If I do a _ifconfig carp1 down_ on the master, the backup switches to master for carp1, while carp2,carp3,carp4,etc. remain master on the first machine.

Ideally - I guess - since all the mentioned carp interfaces share a physical interface, I would want the backup machine to switch into master state for all carp interfaces on em1, and not only one. If I understand the documentation on carp's vhid correctly, interfaces sharing the same vhid, share the same virtual MAC address, and, in turn, if one of them fails or is being shutdown, all interfaces with the same vhid are being "transferred" to the backup machine.

Is this correct?

Are there any good reasons for not sharing the same vhid across all carp interfaces in the described scenario?

...I would happily try it out myself, but these boxes are in a somewhat mission critical state, so I'd rather not just try and see what happens :)

Thanks for your help!

Best
Philipp

Reply via email to