From owner-freebsd-bugs Sat Nov 25 5: 0: 8 2000 Delivered-To: freebsd-bugs@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 5CFEF37B4C5 for ; Sat, 25 Nov 2000 05:00:04 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id FAA85532; Sat, 25 Nov 2000 05:00:04 -0800 (PST) (envelope-from gnats@FreeBSD.org) Date: Sat, 25 Nov 2000 05:00:04 -0800 (PST) Message-Id: <200011251300.FAA85532@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: Peter Pentchev Subject: Re: kern/23090: FreeBSD (all versions) sends ARP requests for MAC resolving of local aliases Reply-To: Peter Pentchev Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org The following reply was made to PR kern/23090; it has been noted by GNATS. From: Peter Pentchev To: nop@sendmail.ru Cc: freebsd-gnats-submit@FreeBSD.org Subject: Re: kern/23090: FreeBSD (all versions) sends ARP requests for MAC resolving of local aliases Date: Sat, 25 Nov 2000 14:53:54 +0200 On Sat, Nov 25, 2000 at 04:32:03AM -0800, nop@sendmail.ru wrote: > > >Number: 23090 > >Category: kern > >Synopsis: FreeBSD (all versions) sends ARP requests for MAC resolving of local aliases [snip] > >Description: > FreeBSD of all 4.x versions sends ARP broadcast request for > resolving MAC address of any local IP, which is _local_ alias > on it's own ethernet interface. It can't find this MAC, because > it's not respond on it's own broadcast. This is problem when, for > example we have mass WEB hosting (IP based) on same machine and > indexing robot on the same machine, which create indexes of any > site, that is hosted on any of aliases on the same machine. We get > "TIMEOUT" for such query. > >How-To-Repeat: > #ifconfig ep0 inet xx.xx.xx.xx alias - create an IP alias in the same network as main IP. > #ping xx.xx.xx.xx > ping: sendto: Host is down > ping: sendto: Host is down > > >Fix: > Problem can be fixed by: > 1) explict arp table change: > arp -s xx.xx.xx.xx MA-CM-AC-MA-CM-AC pub > 2) and of coz by kernel patching, I have no patch. An even easier fix: read the FAQ, which is either installed locally on your system in /usr/share/doc/faq/, or, if you have chosen not to install documentation, on http://www.freebsd.org/FAQ/. There is Chapter 9 there, named Networking, and question 9.8. To quote: 9.8. How can I setup Ethernet aliases? Add netmask 0xffffffff to your ifconfig command-line like the following: # ifconfig ed0 alias 204.141.95.2 netmask 0xffffffff Please try this, and if it does not solve your problem (sure works for me), ask again on the questions mailing list, freebsd-questions@freebsd.org. G'luck, Peter -- This sentence is false. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message