Date: Thu, 19 Jun 2008 13:06:46 +0200 From: Giulio Ferro <auryn@zirakzigil.org> To: Primeroz lists <primeroz.lists@googlemail.com> Cc: freebsd-net@freebsd.org, Han Hwei Woo <hhw@pce-net.com> Subject: Re: Problems with vlan + carp + alias Message-ID: <485A3DC6.2030500@zirakzigil.org> In-Reply-To: <55b8c6fe0806190330p225ec6d1g65f8424efeab9b41@mail.gmail.com> References: <4859877A.3020300@zirakzigil.org> <4859A3A1.6070105@pce-net.com> <485A28ED.9020103@zirakzigil.org> <55b8c6fe0806190330p225ec6d1g65f8424efeab9b41@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Primeroz lists wrote: > Hi , > > I think you should setup ALL the carp address as alias/32 , like this: > > ifconfig_carp10="vhid 10 pass qweq 192.168.10.10 > <http://192.168.10.10/> netmask 255.255.255.255 <http://255.255.255.0/>" > ifconfig_carp10_alias0="192.168.10.11 <http://192.168.10.11/> netmask > 255.255.255.255 <http://255.255.255.0/>" > ... > ifconfig_carp10_aliasN="192.168.10.N netmask 255.255.255.255 > <http://255.255.255.255>" > > and then please verify your routing table for everythin on 192.168.10 > > netstat -rn | grep 192.168.10 > > What you should have is > > 192.168.10/24 ...... vlan10 > 192.168.10.10 <http://192.168.10.10> .... carp10 > ... > 192.168.10.N .... carp10 > > this is because the NETWORK range should be routed always through the > parent interface (vlan10 in this case) while all the carp addresses > has to be threated as alias. > > if you check now probably you will find that the 192.168.10/24 is > routed through your carp interface ... and that's wrong. > > Ciao > Francesco > Hi Primeroz, thanks for your answer. I set all the carp interfaces, both base and alias, to the 255.255.255.255 netmask as you suggested. This is my netstat now: ... 192.168.10.0/24 link#11 UC 0 0 vlan10 192.168.10.254 link#11 UHLW 2 0 vlan10 192.168.10.10 192.168.10.10 UH 0 0 carp10 192.168.10.11 192.168.10.11 UH 0 0 carp10 192.168.10.12 192.168.10.12 UH 0 0 carp10 ... As you see, the 192.168.10.0/24 is routed through the vlan10 interface, and this should be correct. As before, I can ping 192.168.10.10, but not 192.168.10.11 and above. Could this be a bug of carp with alias interfaces? Thanks again. Giulio.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?485A3DC6.2030500>