From owner-freebsd-net Tue Dec 22 14:22:23 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id OAA24598 for freebsd-net-outgoing; Tue, 22 Dec 1998 14:22:23 -0800 (PST) (envelope-from owner-freebsd-net@FreeBSD.ORG) Received: from mail.pinboard.com (mail.pinboard.com [194.209.195.7]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id OAA24519 for ; Tue, 22 Dec 1998 14:22:17 -0800 (PST) (envelope-from Kurt@pinboard.com) Received: (from uucp@localhost) by mail.pinboard.com (8.9.1/8.9.1/19980920-01/KK) with UUCP id XAA00344; Tue, 22 Dec 1998 23:22:10 +0100 (CET) (envelope-from: Kurt@pinboard.com) Received: from beaver.pbdhome.pinboard.com ([192.168.0.7]) by squirrel.pbdhome.pinboard.com (8.9.1/8.9.1-19980817-01/KK) with SMTP id XAA03332; Tue, 22 Dec 1998 23:18:10 +0100 (CET) (envelope-from: Kurt@pinboard.com) Message-Id: <3.0.5.16.19981222225958.44879f9a@pop.pbdhome.pinboard.com> Organization: PINBOARD - http://www.pinboard.com/ X-Sender: kurt@pop.pbdhome.pinboard.com (Unverified) X-Mailer: QUALCOMM Windows Eudora Pro Version 3.0.5 (16) Date: Tue, 22 Dec 1998 22:59:58 To: net@FreeBSD.ORG From: Kurt Keller Subject: Re: IP aliases Cc: wes@softweyr.com, shigetoh@zip.com.au In-Reply-To: <367F469C.E57CD5C2@softweyr.com> References: <3.0.5.16.19981221225911.439f4d8a@pop.pbdhome.pinboard.com> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by hub.freebsd.org id OAA24555 Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Thanks for your help. I actually had a look in rc.conf as well, but was sure the netmask of 255.255.255.255 was wrong. Actually it does work fine that way. Still, I can't imagine why the netmask on this virtual interface should have all bits set. This would mean, that FreeBSD won't let me simulate subnets on one adapter card. Even though physically such networks would not be separated, the pure logical separation can be handy for testing routing stuff. For example something like 192.168.1.0/255.255.255.192 192.168.1.64/255.255.255.240 192.168.1.96/255.255.255.248 172.17.32.0/255.255.0.0 on one single adapter card can be very handy for simulations. Which makes me wonder whether FreeBSD supports variable length subnet masks. Kurt >Have you looked at /etc/rc.conf file? There is a sample setting for >network alias. >I believe you need to add "netmask 255.255.255.255" to the end of the >"ifconfig alias" command. Checking... >> 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 -- -------------------------------------------------------------------- ¦ Kurt@pinboard.com http://www.pinboard.com/ business ¦ ¦ http://www.pinboard.com/kurt/ private ¦ ¦--------------------------------------------------------------------¦ ¦ Unix and Internet Specialist ¦ -------------------------------------------------------------------- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message