Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 26 Feb 2001 17:29:58 -0800
From:      Justin C.Walker <justin@mac.com>
To:        <Freebsd-Net@Freebsd.Org> <freebsd-net@freebsd.org>
Subject:   Re: Quick question about IP aliasing
Message-ID:  <20010227055759.FFEA10024.femail11.sdc1.sfba.home.com@lilith>
In-Reply-To: <NCBBLOALCKKINBNNEDDLAEJIDLAA.jonathan@graehl.org>

next in thread | previous in thread | raw e-mail | index | archive | help
I think that Roger meant something like:

    "... instead, or ..."  <-- "," added.

He's saying they are the same.

FWIW, there used to be an "IP alias" tutorial (not the "pedantic ppp" 
tutorial) referenced from the freebsd web site, but it's disappeared.  
The former went into a bit of detail on what is going on when you 
install an alias.

Basically, it's like this (the essence of this has already been 
mentioned):

   - if you install an alias on an interface whose network number matches 
an existing address, you can do one of two things:
     -- specify the netmask as "-1"
     -- specify the "correct" netmask, ignore the returned error (the 
alias is installed), and then add an appropriate route for the new 
address.  The former seems like less work.

   - if the alias is not on an existing subnet, then use the correct 
netmask.

For the original requestor's case, the first alias is installed with the 
"correct" netmask, and the subsequent ones (on the subnet defined by the 
first alias) get installed with the "-1" netmask.

Regards,

Justin

On Monday, February 26, 2001, at 05:09 PM, Jonathan Graehl wrote:

>> do 'netmask 255.255.255.255' instead or 'netmask 0xffffffff' since 
>> this is
>> an alias... for some reason otherwise services may not bind to the ip
>> correctly
>
> Why would this be?  The two are numerically equivalent.
>
> -Jon
>
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-net" in the body of the message
>

Justin C. Walker, Curmudgeon-At-Large *
Institute for General Semantics       |
                                       |   When lutefiske is outlawed
Nexsi Corp.                           |   Only outlaws will have 
lutefiske
1959 Concourse Drive                  |
San Jose, CA  95131                   |
*-------------------------------------*-------------------------------*


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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010227055759.FFEA10024.femail11.sdc1.sfba.home.com>