From owner-freebsd-net Tue Aug 28 16:26:20 2001 Delivered-To: freebsd-net@freebsd.org Received: from elm.phenome.org (elm.phenome.org [194.153.169.3]) by hub.freebsd.org (Postfix) with ESMTP id C79DA37B407 for ; Tue, 28 Aug 2001 16:26:16 -0700 (PDT) (envelope-from joshua@roughtrade.net) Received: from localhost (joshua@localhost [127.0.0.1]) by localhost (8.12.0.Beta19/8.12.0.Beta19/Debian 8.12.0.Beta19) with ESMTP id f7SNQFvR000336 for ; Wed, 29 Aug 2001 00:26:15 +0100 Date: Wed, 29 Aug 2001 00:26:15 +0100 (BST) From: Joshua Goodall X-X-Sender: To: Subject: Re: Gratuitous ARP (summary) In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Tue, 28 Aug 2001, Mitch Collinsworth wrote: > It's not clear what Jushua is asking for, but my guess is proxy arp. > See arp(8), in particular the -s flag. Then I will clarify and say that what I want is precisely described in section 4.7 of TCP/IP Illustrated Vol. 1 (Stevens) and looks like this on a tcpdump: bloo:~# tcpdump -teli fxp0 arp net 10.1.1 & tcpdump: listening on fxp0 0:a0:c9:ca:73:5f Broadcast arp 42: arp who-has 10.1.1.1 tell 10.1.1.1 and is primarily used for collision detection and network-local arp-cache priming, but also has applications in IP address migration (a common high-availability technique). I should not have described it as an "arp reply" since it is, of course, an "arp who-has". However a synthesis of the suggestions from Terry & Ruslan yields what I wanted: a) in the case where the address is an alias, re-issuing the ifconfig ... alias results in a gratuitous ARP for the alias address without losing the subnet route & ARP cache entries. However I use a netmask of 255.255.255.255 for all aliases in the same subnet as the primary, in line with the ifconfig(8) manual. b) in the case where the address is the primary address of the interface, an ifconfig will cycle the route *and* delete the ARP cache entries for the subnet. However, using arping to the interface primary address (not broadcast) gives a correctly formatted, non-destructive gratuitous ARP. So I'm happy now. Curiously, an ifconfig for an alias will generate a gratuitous ARP for that alias even if the -arp option is supplied. I'm not sure this is correct behaviour. Joshua To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message