From owner-freebsd-net Mon Dec 21 23:13:46 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id XAA10553 for freebsd-net-outgoing; Mon, 21 Dec 1998 23:13:46 -0800 (PST) (envelope-from owner-freebsd-net@FreeBSD.ORG) Received: from obie.softweyr.com ([204.68.178.33]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id XAA10546 for ; Mon, 21 Dec 1998 23:13:42 -0800 (PST) (envelope-from wes@softweyr.com) Received: from softweyr.com (zaphod.softweyr.com [204.68.178.35]) by obie.softweyr.com (8.8.8/8.8.8) with ESMTP id AAA29802; Tue, 22 Dec 1998 00:13:33 -0700 (MST) (envelope-from wes@softweyr.com) Message-ID: <367F469C.E57CD5C2@softweyr.com> Date: Tue, 22 Dec 1998 00:13:32 -0700 From: Wes Peters Organization: Softweyr llc X-Mailer: Mozilla 4.5 [en] (X11; U; FreeBSD 3.0-RELEASE i386) X-Accept-Language: en MIME-Version: 1.0 To: Kurt Keller CC: net@FreeBSD.ORG Subject: Re: IP aliases References: <3.0.5.16.19981221225911.439f4d8a@pop.pbdhome.pinboard.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Kurt Keller wrote: > > On my FreeBSD 2.2.5 server I need to assign at least one more IP > address to the ethernet card (only one, not even a slot free for an > additional card). So I did > > ifconfig ed1 inet 192.168.0.8 alias > > ifconfig -a shows the additional address together with the already > assigned one (192.168.0.1) and from other stations, I can also access > it. However, on the server itself no route is created (netstat -nr) for > this new virtual interface, neither can the server access itself (ping, > telnet or anything) on this virtual address. Both addresses, .1 and .8 > are on the same subnet. > > Did I miss something or is this the way FreeBSD is supposed to behave? > I often do this kind of stuff on Solaris because there are not enough > sbus slots for the number of token ring interfaces required. On Solaris > the new virtual interface gets a name of its own (tr0 for the physical > interface, tr0:1, tr0:2, tr0:3 etc. for the added virtual ones) and > also the route entries are created accordingly. I believe you need to add "netmask 255.255.255.255" to the end of the "ifconfig alias" command. Checking... Yup, that's it. -- "Where am I, and what am I doing in this handbasket?" Wes Peters Softweyr LLC http://www.softweyr.com/~softweyr wes@softweyr.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message