Re: aka on FreeBSD

From: Alex Rousskov (rousskov@measurement-factory.com)
Date: Wed Mar 12 2003 - 10:57:25 MST


On Wed, 12 Mar 2003, Bryn Reeves wrote:

> Sorry to pester again but I've a small problem with our polygraph
> setup. I'm using the perl scripts and 'aka' tool to do IP aliasing.
>
> Our setup is a class B net with addresses in 10.6.n.m and a netmask of
> 255.255.0.0 - this is set explicitly in the ifconfig lines of rc.conf on
> all hosts.
>
> On one host, aliases are being created with the correct netmask of
> 255.255.0.0 however the other machine is using 255.255.255.0
> (class-c) which is wrong!
>
> Where does aka pick up netmask settings from? The primary IP of the
> interface concerned has correct netmask, but the aliases don't. I'm
> pretty sure I've just confused things somewhere along the line (it's
> taken some tinkering to get to this stage and I've probably broken
> something!)

You can specify the subnet explicitly with aka (or PGL). For example,
        aka lo0 172.16.1.1-10/16

If there is no explicit subnet, Polygraph tries to guess it based on
the number of ranges in the address specification. For more than one
range (more than one dash), /16 is used. Otherwise, /24 is used.

Please keep in mind that recent FreeBSD releases may insist on /32
subnets used for Polygraph-like aliases.

Alex.

-- 
                            | HTTP performance - Web Polygraph benchmark
www.measurement-factory.com | HTTP compliance+ - Co-Advisor test suite
                            | all of the above - PolyBox appliance



This archive was generated by hypermail 2b29 : Mon Feb 06 2006 - 12:00:26 MST