Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 5 Oct 1997 12:59:34 -0700 (PDT)
From:      Dan Busarow <dan@dpcsys.com>
To:        Vladimir Litovka <doka@vl.net.ua>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: aliases on ed0
Message-ID:  <Pine.UW2.3.95.971005124045.1667A-100000@cedb>
In-Reply-To: <Pine.BSF.3.96.SK.971005203916.2679A-100000@grunt.vl.net.ua>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, 5 Oct 1997, Vladimir Litovka wrote:
> > > try to add alias by calling
> > >  ifconfig ed0 inet 193.124.76.210 netmask 255.255.255.192 alias
> > 
> > Change that to use a netmask of 255.255.255.255 and everything will 
> > work fine.
> 
> Big thanks, :) but why?

When you use the 192 netmask for the alias your are adding a *net*
route to the routing table.  You should have seen an error message like

harvest.beach.net # ifconfig ed1 205.19.184.8 netmask 255.255.255.0 alias
ifconfig: ioctl (SIOCAIFADDR): File exists

because that route has already been added.  When you use the 255 netmask
ifconfig adds a *host* route.

Dan
-- 
 Dan Busarow                                                  714 443 4172
 DPC Systems / Beach.Net                                    dan@dpcsys.com
 Dana Point, California  83 09 EF 59 E0 11 89 B4   8D 09 DB FD E1 DD 0C 82




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.UW2.3.95.971005124045.1667A-100000>