[ale] how to do 'gratituous ARP broadcast' + SUMMARY

Jerry Z. Yu z.yu at Ptek.com
Fri Apr 27 10:41:23 EDT 2001


that's exactly the second step I took, asking the network guy to
standby to update my MAC addr in the gateway's ARP cache table in case my
own broadcast fails.

To benefit others interested, I summarized three alternatives
suggested to me for a 'gratituous ARP broadcast'
1) suggested by Denny Chambers.  I used this one and it worked the magic.

send_arp.c from linux-ha.org's heartbeat tarball. compile it and run
as:	 send_arp eth0 myIP myMAC gatewayIP gatewayMAC

2)suggested by Cleveland Flowe

use /usr/sbin/arping from iputils packages. iputils w/ RH62 doesnot have
it but the one w/ RH71 does. According to the man page, it should be
doable as such:
	/usr/sbin/arping -U	( unsolicited ARP mode, update neighbors)
	/usr/sbin/arping -A	(ARP answer mode, update neighbors)

3) suggested by Joseph A. Knapka.
if you has access to the gateway machine or you have a  friendly network
admin, do such on your default gateway machine/route
	/sbin/arp -d myHostName
This is not a broadcast per se, but it should achieve the same goal.


On Fri, 27 Apr 2001, Joseph A. Knapka wrote:

#"Jerry Z. Yu" wrote:
#>
#> anybody has done a 'gratituous ARP broadcast' from a Linux box?
#>
#> /sbin/arp doesnot seem to be it?
#> I am replacing a production box with a new one with the different NIC
#> (aka, different MAC addr). I want to let the gateway machine see the
#> the new MAC right away instead of waiting for ARP cache timeout on the
#> gateway machine.
#>
#> thanks.
#>
#> --
#> To unsubscribe: mail majordomo at ale.org with "unsubscribe ale" in message body.
#
#You could also use "arp -d <hostname>" to flush the new machine's
#address from the
#arp cache on the gateway; it would then re-request the MAC address next
#time it
#had to talk to that machine.
#
#-- Joe
#
#--
#"If I ever get reincarnated... let me make certain I don't come back
# as a paperclip." -- protagonist, H Murakami's "Hard-boiled Wonderland"
#// Linux MM Documentation in progress:
#// http://home.earthlink.net/~jknapka/linux-mm/vmoutline.html
#* Evolution is an "unproven theory" in the same sense that gravity is. *
#--
#To unsubscribe: mail majordomo at ale.org with "unsubscribe ale" in message body.
#

Jerry Z. Yu					+1-404-262-8544 (O)
Systems Engineer				https://punch
IS Support, Voicecom,				www.voicecom.com
A business unit of PTEK Holdings, Inc.		www.ptek.com
-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-
Manage all your important communications ==\
and information in one place using	 ===>	www.orchestrate.com
Voicecom's Orchestrate service.		 ==/


--
To unsubscribe: mail majordomo at ale.org with "unsubscribe ale" in message body.





More information about the Ale mailing list