I am having trouble figuring out how I should configure a physical
interface and a carp virtual interface where the carp IP will serve as
a default route for hosts on the network and also hold some aliases
for server re-directs. From what I have seen the routes built at
startup "home" the route for the network on the interface that is
configured with the actual network mask so:

>/etc/hostname.em0
>inet A.B.C.14 255.255.255.240 A.B.C.15 rdomain 2
>
>/etc/hostname.carp0
>vhid 9 pass XXXXXXXX rdomain 2
>inet A.B.C.1 255.255.255.255 A.B.C.15 rdomain 2
>inet alias A.B.C.3 255.255.255.255 A.B.C.15 rdomain 2
>inet alias A.B.C.4 255.255.255.255 A.B.C.15 rdomain 2

Will put the A.B.C.0/28 entry in table 2 to:

>A.B.C.0/28  link#1  UC  0  0  -  4 em0

Changing the masks so carp0 has the open mask on its first ip and em0
is all 1s yields:

>A.B.C.0/28  link#9 UC  0  0  -  4 carp0

Is it better for that to be on carp0 instead of em0, given that carp0
will be the router for that network?

Reply via email to