From owner-freebsd-isp Mon Jan 5 14:01:27 1998 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id OAA18544 for isp-outgoing; Mon, 5 Jan 1998 14:01:27 -0800 (PST) (envelope-from owner-freebsd-isp) Received: from s02.admin.cantv.net (s02.admin.cantv.net [161.196.66.41]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id OAA18535 for ; Mon, 5 Jan 1998 14:01:18 -0800 (PST) (envelope-from lem@cantv.net) Received: from lemtop.cantv.net ([161.196.66.20]) by s02.admin.cantv.net (8.8.8/8.8.8) with SMTP id RAA11937; Mon, 5 Jan 1998 17:59:06 -0400 (GMT-0400) Message-Id: <3.0.5.32.19980105175925.0085e9a0@pop.cantv.net> X-Sender: lem@pop.cantv.net X-Mailer: QUALCOMM Windows Eudora Light Version 3.0.5 (32) Date: Mon, 05 Jan 1998 17:59:25 -0400 To: Karl Pielorz From: =?iso-8859-1?Q?=22Luis_E=2E_Mu=F1oz=22?= Subject: Re: Ifconfig & 2nd IP address - weird... Cc: isp@freebsd.org In-Reply-To: <34B13CDA.AF845AFD@tdx.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Sender: owner-freebsd-isp@freebsd.org X-Loop: FreeBSD.org Precedence: bulk At 08:04 PM 05/01/1998 +0000, Karl Pielorz wrote: >Hi All, > >If I do the following on my BSD box (to serve as a secondary IP for a virtual >web-server):- > >ifconfig de0 192.168.100.2 alias > >"ifconfig -a" then shows:- > >de0: flags=8843 mtu 1500 > inet 192.168.100.1 netmask 0xffffffe0 broadcast 192.168.100.31 > inet 192.168.100.2 netmask 0xffffffe0 broadcast 192.168.100.31 > ether 00:00:c0:eb:a3:0b >lo0: flags=8049 mtu 16384 > inet 127.0.0.1 netmask 0xff000000 >etc... > >(netmask should be 255.255.255.224 - which the above seems to be - this puts >me on a net of 30 hosts...) > >I can ping the .2 address fine from other machines, but I can't ping that >address from the machine itself... You need to add a route to the new 'virtual' address via the loopback address. Something like $ route add 192.168.100.2 127.0.0.1 will probably work. -lem