Date: Fri, 19 May 1995 20:15:49 +0800 (CST) From: Brian Tao <taob@gate.sinica.edu.tw> To: FREEBSD-HACKERS-L <freebsd-hackers@FreeBSD.org> Subject: Re: alias ( secondary IP ) for Ethernet Ifaces in FreeBSD Message-ID: <Pine.BSI.3.91.950519185231.3158B-100000@leo>
next in thread | raw e-mail | index | archive | help
John A. Booth <john@gab.unt.edu> wrote:
>
> > ifconfig ep0 alias 199.199.199.22
>
> That should do it, I've got 20 aliases on a 3-22 Snap. Thing is
> after a few it give the following for each aditional aliases.
> ifconfig ioctl (SIOCAIOCTL) : file exists
> The alises seem to work ok (all of them), but I find that messages
> disconcerting. It is using the ep0 interface btw.
# netstat -i
Name Mtu Network Address Ipkts Ierrs Opkts Oerrs Coll
ed1 1500 <Link>00.00.e8.08.ce.73 796092 1 294953 3 21079
ed1 1500 140.109.40 aries 796092 1 294953 3 21079
ed1 1500 140.109 scorpio 796092 1 294953 3 21079
ed1 1500 140.109 140.109.40.239 796092 1 294953 3 21079
ed1 1500 140.109 140.109.40.251 796092 1 294953 3 21079
ed1 1500 140.109 140.109.40.244 796092 1 294953 3 21079
lp0* 1500 <Link> 0 0 0 0 0
lp0* 1500 none none 0 0 0 0 0
lo0 16384 <Link> 504 0 504 0 0
lo0 16384 your-net localhost 504 0 504 0 0
Although the additional aliases work, it appears the error is
generated if they reside in an already defined net class. I forgot to
add "netmask 0xffffff00" to my aliases, so they were all given the
default B-class mask. The first alias (scorpio) did not generate an
error, but the second and subsequent ones did. If I specify a C-class
netmask for the first alias, then the error is generated immediately.
It doesn't seem to hurt though. I was able to setup five virtual
Web servers on my machine in about two minutes using the Apache 0.6.2
server. No fuss, no muss, and runs like a dream (can even have each
virtual server open separate access and error log files). Too bad
those poor admins with their expensive HP's and SGI's and Suns can't
have it this easy. :)
--
Brian ("Though this be madness, yet there is method in't") Tao
taob@gate.sinica.edu.tw <-- work ........ play --> taob@io.org
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSI.3.91.950519185231.3158B-100000>
