Subject: Re: alias netmask
To: None <current-users@netbsd.org>
From: Geoff Adams <gadams@avernus.com>
List: current-users
Date: 04/09/2003 10:39:30
--Apple-Mail-6-725019731
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset=US-ASCII; format=flowed

On Tuesday, April 8, 2003, at 03:06 PM, Caffeinate The World wrote:

> From FreeBSD Handbook:
>
> For example, consider the case where the fxp0 interface is connected to
> two networks, the 10.1.1.0 network with a netmask of 255.255.255.0 and
> the 202.0.75.16 network with a netmask of 255.255.255.240. We want the
> system to appear at 10.1.1.1 through 10.1.1.5 and at 202.0.75.17
> through 202.0.75.20.
>
> The following entries configure the adapter correctly for this
> arrangement:
>
>      ifconfig_fxp0="inet 10.1.1.1 netmask 255.255.255.0"
>      ifconfig_fxp0_alias0="inet 10.1.1.2 netmask 255.255.255.255"
>      ifconfig_fxp0_alias1="inet 10.1.1.3 netmask 255.255.255.255"
>      ifconfig_fxp0_alias2="inet 10.1.1.4 netmask 255.255.255.255"
>      ifconfig_fxp0_alias3="inet 10.1.1.5 netmask 255.255.255.255"
>      ifconfig_fxp0_alias4="inet 202.0.75.17 netmask 255.255.255.240"
>      ifconfig_fxp0_alias5="inet 202.0.75.18 netmask 255.255.255.255"
>      ifconfig_fxp0_alias6="inet 202.0.75.19 netmask 255.255.255.255"
>      ifconfig_fxp0_alias7="inet 202.0.75.20 netmask 255.255.255.255"

The only reason I can think of for this configuration is that only the 
first interface address within any given network will respond to 
broadcast packets on that network.

That said, I've always used the netmask appropriate for the network on 
each alias, and I've never had problems.

- Geoff

--Apple-Mail-6-725019731
content-type: application/pgp-signature; x-mac-type=70674453;
	name=PGP.sig
content-disposition: inline
content-transfer-encoding: 7bit

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (Darwin)

iD8DBQE+lDCtQz98e6UCqO0RAmMSAKCkAVM74WZrfK7pNsGFMi7Kwi8M+ACgnGey
8CJqBxh0HvMwSk8kS3qLY+k=
=ZqN0
-----END PGP SIGNATURE-----

--Apple-Mail-6-725019731--