From owner-freebsd-net Tue Jan 23 14:42:46 2001 Delivered-To: freebsd-net@freebsd.org Received: from modemcable101.200-201-24.mtl.mc.videotron.ca (modemcable140.61-201-24.mtl.mc.videotron.ca [24.201.61.140]) by hub.freebsd.org (Postfix) with SMTP id 1BA2637B400 for ; Tue, 23 Jan 2001 14:42:29 -0800 (PST) Received: (qmail 6688 invoked from network); 23 Jan 2001 22:42:28 -0000 Received: from cognac.local.mindstep.com (HELO cognac) (192.168.10.9) by jacuzzi.local.mindstep.com with SMTP; 23 Jan 2001 22:42:28 -0000 From: "Patrick Bihan-Faou" To: Subject: How to send arp request with no other traffic Date: Tue, 23 Jan 2001 17:43:50 -0500 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Importance: Normal Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hi, How could I perform a arp resolution without attempting to send traffic to the IP address I am looking up ? To rephrase my question, if I use arp(8), to obtain the mac address associated with a specific IP address and that information is not yet in the arp cache, arp(8) returns: bash-2.03$ arp 192.168.10.208 192.168.10.208 (192.168.10.208) -- no entry so to obtain the information I want, I need to first do a ping: bash-2.03$ ping -c 1 192.168.10.208 PING 192.168.10.208 (192.168.10.208): 56 data bytes 64 bytes from 192.168.10.208: icmp_seq=0 ttl=255 time=0.355 ms --- 192.168.10.208 ping statistics --- 1 packets transmitted, 1 packets received, 0% packet loss round-trip min/avg/max/stddev = 0.355/0.355/0.355/0.000 ms bash-2.03$ arp 192.168.10.208 ? (192.168.10.208) at 0:90:27:a7:6a:e0 [ethernet] While this is not a major concern, it would be nice if it was possible to trigger the arp lookup directly without using another command. Maybe with a special switch to the arp(8) command: bash-2.03$ arp -q 192.168.10.208 ? (192.168.10.208) at 0:90:27:a7:6a:e0 [ethernet] Can anybody give me a hint on how I could implement that option ? Patrick. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message