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 <a...@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 > 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