On Mon, 28 Jan 2008 18:50:51 +0000 Mick <[EMAIL PROTECTED]> wrote: > On Monday 28 January 2008, Neil Bothwick wrote: > > On Mon, 28 Jan 2008 11:10:18 +0100, Stefán István wrote: > > > can I set up the network startup so that eth0 first tries to get > > > address from a dhcp server, and if it doesn't get any, it sets up > > > with a fixed address? How can I set up this in the /etc/con.d/net? > > > > config_eth0=( "dhcp" ) > > fallback_eth0=( "aaa.bbb.ccc.ddd" ) > > fallback_route_eth0=( "blah" ) > > > > See /etc/conf.d/net.example > > As I understand it this only allows for one fallback type of address > (e.g. 192.168.0.0). If you connect to different routers which have > different LAN address (192.168.0.0, 192.168.2.0, 10.10.10.0, etc.) > then I guess you'll need some sort of additional script?
That appears to be correct, according to net.example only one fallback route can be accepted. You might try a postup function that checks to see whether dhcp is successful and, if not, sets your additional routes manually. -- gentoo-user@lists.gentoo.org mailing list