On 2011-02-17, Henning Brauer <lists-open...@bsws.de> wrote: > * Harald Dunkel <harald.dun...@aixigo.de> [2011-02-17 16:51]: >> Hi folks, >> >> what would be the correct way to define network aliases >> on a carp interface? Currently I have the code below, but >> I see some packet filter problems around route-to that >> might be related to a misconfigured carp interface. >> >> em1: >> inet 172.12.96.5 255.255.252.0 NONE >> inet alias 172.12.101.5 255.255.255.0 NONE >> inet alias 172.12.126.5 255.255.255.0 NONE >> -inet6 >> group internal >> >> >> carp1: >> inet 172.12.96.4 255.255.252.0 NONE vhid 7 pass xxxxxxxxxxxxx carpdev >> em1 advbase 1 advskew 0 >> inet alias 172.12.101.4 255.255.255.0 NONE >> inet alias 172.12.126.4 255.255.255.0 NONE >> -inet6 >> >> >> Do I have to add similar carpdev lines to the aliases? >> Can I or should I drop the aliases on em1? > > your way to configure aliases is correct, however, the masks are not. > you are screwing up routing. you want an all-ones netmask on each and > every IP address except one per subnet. alas you want 255.255.255.255 > on the carp if's IPs. >
Handy hint: Think twice before you set it up this way if you're redistributing carp interfaces into OSPF...