Problems with vlan + carp + alias

Primeroz lists primeroz.lists at googlemail.com
Thu Jun 19 10:46:18 UTC 2008


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 netmask
255.255.255.255<http://255.255.255.0/>
"
ifconfig_carp10_alias0="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"

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 .... 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

On Thu, Jun 19, 2008 at 10:37 AM, Giulio Ferro <auryn at zirakzigil.org> wrote:

> Han Hwei Woo wrote:
>
>> Hi Giulio,
>>
>> Since the IP's are on the same subnet, you should try using a netmask of
>> 255.255.255.255 on the aliases.
>>
>>
> Hi Han,
> Sorry no, changing the mask to 255.255.255.255 of the aliases doesn't
> change the situation.
> Anyway exactly the same configuration works with non-vlan physical
> interfaces.
>
> Note: I can ping the aliased addresses on the local machine; I can't ping
> those addresses from
> other machine on the same vlan.
>
>
> Giulio.
>
> _______________________________________________
> freebsd-net at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-net
> To unsubscribe, send any mail to "freebsd-net-unsubscribe at freebsd.org"
>


More information about the freebsd-net mailing list