From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1OAflY-0004IZ-5p for garchives@archives.gentoo.org; Sat, 08 May 2010 08:52:08 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 48A78E06FE; Sat, 8 May 2010 08:50:42 +0000 (UTC) Received: from rix.jaftan.com.au (ppp114-244.static.internode.on.net [150.101.114.244]) by pigeon.gentoo.org (Postfix) with ESMTP id F3C1FE06FE for ; Sat, 8 May 2010 08:50:41 +0000 (UTC) Received: from localhost (unknown [127.0.0.1]) by rix.jaftan.com.au (Postfix) with ESMTP id 66F174A3C72 for ; Sat, 8 May 2010 08:50:40 +0000 (UTC) Received: from rix.jaftan.com.au ([127.0.0.1]) by localhost (rix.jaftan.com.au [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id qAcBNzhRzwjg for ; Sat, 8 May 2010 18:50:39 +1000 (EST) Received: from [192.168.1.12] (unknown [192.168.1.12]) by rix.jaftan.com.au (Postfix) with ESMTP id 84BCB4A3C71 for ; Sat, 8 May 2010 18:50:39 +1000 (EST) Message-ID: <4BE525E0.8090500@jaftan.com.au> Date: Sat, 08 May 2010 18:50:40 +1000 From: Adam User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.9) Gecko/20100416 Thunderbird/3.0.4 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] arping network profile issue References: <4BE3F9DD.7060302@jaftan.com.au> In-Reply-To: X-Enigmail-Version: 1.0.1 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Archives-Salt: 81bc3e3c-3399-4d24-9cc4-7275755aab91 X-Archives-Hash: 500ecb82af9c2d6c2c067a37f2e220ae On 05/08/10 15:25, Zhou Rui wrote: > What I want is finding a gateway out with ARP, and then assign the correct > gateway/route table, You cant discover a router with ARP. ARP finds the MAC address of a host that's associated with a given IP address. Ways of getting a ipv4 gateway are; - manual configuration - DHCP - http://en.wikipedia.org/wiki/ICMP_Router_Discovery_Protocol