Skip site navigation (1)Skip section navigation (2)
Date:      21 Aug 2002 23:22:55 +0000
From:      Josh Paetzel <friar_josh@webwarrior.net>
To:        adrian kok <adriankok2000@yahoo.com.hk>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: confusion about netmask
Message-ID:  <1029972179.226.8.camel@markx.vladsempire.net>
In-Reply-To: <20020822040145.62091.qmail@web21209.mail.yahoo.com>
References:  <20020822040145.62091.qmail@web21209.mail.yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 2002-08-22 at 04:01, adrian kok wrote:
> Hi all
> 
> I read the handbook about netmask for virtual host
> It shows as follows
> Except the first one using 255.255.255.0
> the rest is using 255.255.255.255
> 
> Why? and If I use all as 255.255.255.0
> what is the problem?
> 
> On the other hands, I use it (all 255.255.255.0) in
> the virtual hosts in 
> eth0.0 eth0.1 in linux
> 
> Is it different from freebsd fxp0?
> 
> Thank you for your help
> 
> 
> 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
> 
What you give here is exactly what you need.  I don't know if it's
different from linux or not, but it is correct.  The alias IPs need to
have the netmask 255.255.255.255

Josh



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1029972179.226.8.camel>