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 1OAwV2-0007zc-Rk for garchives@archives.gentoo.org; Sun, 09 May 2010 02:44:13 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C6EBDE073C; Sun, 9 May 2010 02:43:07 +0000 (UTC) Received: from mail-vw0-f53.google.com (mail-vw0-f53.google.com [209.85.212.53]) by pigeon.gentoo.org (Postfix) with ESMTP id 9A359E073C for ; Sun, 9 May 2010 02:43:07 +0000 (UTC) Received: by vws18 with SMTP id 18so114254vws.40 for ; Sat, 08 May 2010 19:43:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type; bh=k121d7owbQWl7jOpTmljnZV5xT3C2LoEJAWOGWSI61Y=; b=pTWbSQuPJBOMCXPxQJG/enzI1a9eX0mlUWLuBNMUa8wf7fQy77E4EgYxRrRtmd8i/o 3PHfycuUGl0D7tfGC5+1hHQY4E+NJZQLVRJBEGh6Xkee+SIuuKRIGmpIKyClUAJP8S7u 47g8qHA/k2vUO/Fu9ioQLegibJpmt9R+P0lrE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=how7NVBhFcDuGWZFWX3CZsB8JffA8FQhBpr8nzorKguI4fjwIdUxLVd1VwGD3mtDVl /VKnsPTs8jJCZS1ZA4eeLZg4rKpQBqhIqDmGaAMyr6e0g5hTQkB88zegrmmt7LumENdL KVRogk9pUI+BdbSJffMtIZUsd+Nnx7r+pFuFI= 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 Received: by 10.220.129.75 with SMTP id n11mr812525vcs.3.1273372986884; Sat, 08 May 2010 19:43:06 -0700 (PDT) Received: by 10.220.169.8 with HTTP; Sat, 8 May 2010 19:43:06 -0700 (PDT) In-Reply-To: <4BE525E0.8090500@jaftan.com.au> References: <4BE3F9DD.7060302@jaftan.com.au> <4BE525E0.8090500@jaftan.com.au> Date: Sun, 9 May 2010 10:43:06 +0800 Message-ID: Subject: Re: [gentoo-user] arping network profile issue From: Zhou Rui To: gentoo-user@lists.gentoo.org Content-Type: multipart/alternative; boundary=e0cb4e887cf58cc6250486204041 X-Archives-Salt: 5ec86081-c5f0-4d16-bcc7-9a1a18c39d39 X-Archives-Hash: 4cf564d8f3aa4c2afb2c82cd8506b750 --e0cb4e887cf58cc6250486204041 Content-Type: text/plain; charset=UTF-8 I found this in gentoo wiki, and the same configuration in /etc/conf.d/net.example http://en.gentoo-wiki.com/wiki/Network_profiles_with_arping I guess, it works like, first you find a specific IP/MAX pair w/ ARP, then a manual configuration according the IP/MAC. 2010/5/8 Adam > 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 > > > -- BR, Zhou Rui --e0cb4e887cf58cc6250486204041 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable I found this in gentoo wiki, and the same configuration in /etc/conf.d/net.= example
http://en.gentoo-wiki.com/wiki/Network_profiles_with_arping
I guess, it works like, first you find a specific IP/MAX pair w/ ARP, then = a manual configuration according the IP/MAC.


2010/5/8 Adam <adam@jaftan.com.au>
On 05/08/10 15:25, Zhou Rui wrote:
> What I want is finding a gateway out with ARP, and then assign the cor= rect
> gateway/route table,

You cant discover a router with ARP. ARP finds the MAC address of a h= ost
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_Protoco= l





--
BR,
Zhou Rui
--e0cb4e887cf58cc6250486204041--