Subject: Re: alias netmask
To: None <current-users@netbsd.org>
From: Caffeinate The World <mochaexpress@yahoo.com>
List: current-users
Date: 04/08/2003 12:06:37
--- Greywolf <greywolf@starwolf.com> wrote:
> # Internal (house) network.  /24.  That's all I need, and NATing
> anything
> # else is just insane.
> 	inet 10.11.11.11 netmask 0xffffff00 broadcast 10.11.11.255
> # External real-world address for www, ftp, etc.  /29 (8 addrs)
> 	inet alias 64.139.13.178 netmask 0xfffffff8 broadcast 64.139.13.183
> # NAT address to the outside world (this is my NAT box), also /29
> # since it's within the same address space as the above.
> 	inet alias 64.139.13.181 netmask 0xfffffff8 broadcast 64.139.13.183

I use the same methods as you greywolf. However, according to the
FreeBSD people, since alias 64.139.13.178/29, then the alias
64.139.13.181 following that should be /32.

Which is the righ logic? or is there one?

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

Thomas

__________________________________________________
Do you Yahoo!?
Yahoo! Tax Center - File online, calculators, forms, and more
http://tax.yahoo.com