Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 25 Nov 2000 05:00:04 -0800 (PST)
From:      Peter Pentchev <roam@orbitel.bg>
To:        freebsd-bugs@FreeBSD.org
Subject:   Re: kern/23090: FreeBSD (all versions) sends ARP requests for MAC resolving of local aliases
Message-ID:  <200011251300.FAA85532@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR kern/23090; it has been noted by GNATS.

From: Peter Pentchev <roam@orbitel.bg>
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200011251300.FAA85532>