From owner-freebsd-isp Mon Jan 5 11:59:55 1998 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id LAA06163 for isp-outgoing; Mon, 5 Jan 1998 11:59:55 -0800 (PST) (envelope-from owner-freebsd-isp) Received: from caladan.tdx.co.uk (caladan.tdx.co.uk [195.188.177.4]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id LAA06156 for ; Mon, 5 Jan 1998 11:59:49 -0800 (PST) (envelope-from kpielorz@tdx.co.uk) Received: from tdx.co.uk (lorca-tx.tdx.co.uk [195.188.177.242]) by caladan.tdx.co.uk (8.8.5/8.8.5) with ESMTP id TAA00636 for ; Mon, 5 Jan 1998 19:38:36 GMT Message-ID: <34B13CDA.AF845AFD@tdx.co.uk> Date: Mon, 05 Jan 1998 20:04:42 +0000 From: Karl Pielorz Organization: TDX X-Mailer: Mozilla 4.04 [en] (WinNT; I) MIME-Version: 1.0 To: isp@freebsd.org Subject: Ifconfig & 2nd IP address - weird... Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-isp@freebsd.org X-Loop: FreeBSD.org Precedence: bulk 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... I've checked the arp table - which shows the ARP for 192.168.100.2 as being 'incomplete', but even if I manually edit the arp table and put the right ethernet address in there - the machine can't ping itself on the 2ndry IP address... I'm running ipfw but with 'add allow all from any to any' as the only rule, and I'm also running 'gateway_enable="YES"' in my rc.conf... netstat -r shows:- 192.168.100.1 0:0:c0:eb:a3:b UHLW 1 1008 lo0 192.168.100.2 link#2 UHLW 0 2 If I'm really unlucky (i.e. after a while) I get: (root) caladan>ping 192.168.100.2 PING 192.168.100.2 (192.168.100.2): 56 data bytes ping: sendto: Host is down ping: wrote 192.168.100.2 64 chars, ret=-1 ping: sendto: Host is down ping: wrote 192.168.100.2 64 chars, ret=-1 ping: sendto: Host is down ping: wrote 192.168.100.2 64 chars, ret=-1 Though other external machines continue to ping it fine... :-( (Traceroute displays the same info - host is down). The system's running 2.2.2-RELEASE... - and also has 1 other interface, "fxp0" - which works fine - and only has 1 IP address bound to it... Any suggestions? (I'm sure this is something simple & silly ;-) Regards, Karl Pielorz