Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 25 May 2003 12:00:55 +0930
From:      Malcolm Kay <malcolm.kay@internode.on.net>
To:        Andy Farkas <andyf@speednet.com.au>, Grant Peel <grant@thenetnow.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: IP alias Networking Errors.
Message-ID:  <200305251200.55652.malcolm.kay@internode.on.net>
In-Reply-To: <20030525121135.C23835-100000@hewey.af.speednet.com.au>
References:  <20030525121135.C23835-100000@hewey.af.speednet.com.au>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, 25 May 2003 11:51, Andy Farkas wrote:
> On Sat, 24 May 2003, Grant Peel wrote:
> > fxp0: flags=3D8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> mt=
u 1500
> >         inet 65.39.193.154 netmask 0xfffffff0 broadcast 65.39.193.159
> >         inet 65.39.193.155 netmask 0xffffffff broadcast 65.39.193.155
> >         inet 65.39.193.156 netmask 0xffffffff broadcast 65.39.193.156
> >         inet 65.39.193.157 netmask 0xffffffff broadcast 65.39.193.157
> >         inet 216.187.107.125 netmask 0xffffffff broadcast 216.187.107=
=2E125
> >         inet 216.187.107.126 netmask 0xffffffff broadcast 216.187.107=
=2E126    =20
> >         inet 216.187.107.123 netmask 0xffffffff broadcast 216.187.107=
=2E123
> >         inet 216.187.107.124 netmask 0xffffffff broadcast 216.187.107=
=2E124
> >         ether 00:06:5b:ee:40:32
> >         media: Ethernet autoselect (100baseTX <full-duplex>)
> >         status: active
>
> ...
>
> > When the next group of IP were assigned to me, and I set them as alia=
ses
> > on this machine, thats when I started getting the errors.
>
> When you add aliases for a different subnet, the netmask should be the
> proper one for the subnet ie. netmask 0xfffffff0.

=46rom the man pages (ifconfig(8)):
alias   Establish an additional network address for this interface.  This
             is sometimes useful when changing network numbers, and one w=
ishes
             to accept packets addressed to the old interface.  If the ad=
dress
             is on the same subnet as the first network address for this
             interface, a non-conflicting netmask must be given.  Usually
             0xffffffff is most appropriate.

Malcolm



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