Date: Tue, 22 Dec 1998 00:13:32 -0700 From: Wes Peters <wes@softweyr.com> To: Kurt Keller <Kurt@pinboard.com> Cc: net@FreeBSD.ORG Subject: Re: IP aliases Message-ID: <367F469C.E57CD5C2@softweyr.com> References: <3.0.5.16.19981221225911.439f4d8a@pop.pbdhome.pinboard.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?367F469C.E57CD5C2>