Gentoo Archives: gentoo-user

From: Dan Farrell <dan@×××××××××.cx>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] network setup
Date: Sun, 03 Feb 2008 16:47:59
Message-Id: 20080203104757.56c41693@pascal.spore.ath.cx
In Reply to: Re: [gentoo-user] network setup by Mick
1 On Mon, 28 Jan 2008 18:50:51 +0000
2 Mick <michaelkintzios@×××××.com> wrote:
3
4 > On Monday 28 January 2008, Neil Bothwick wrote:
5 > > On Mon, 28 Jan 2008 11:10:18 +0100, Stefán István wrote:
6 > > > can I set up the network startup so that eth0 first tries to get
7 > > > address from a dhcp server, and if it doesn't get any, it sets up
8 > > > with a fixed address? How can I set up this in the /etc/con.d/net?
9 > >
10 > > config_eth0=( "dhcp" )
11 > > fallback_eth0=( "aaa.bbb.ccc.ddd" )
12 > > fallback_route_eth0=( "blah" )
13 > >
14 > > See /etc/conf.d/net.example
15 >
16 > As I understand it this only allows for one fallback type of address
17 > (e.g. 192.168.0.0). If you connect to different routers which have
18 > different LAN address (192.168.0.0, 192.168.2.0, 10.10.10.0, etc.)
19 > then I guess you'll need some sort of additional script?
20
21 That appears to be correct, according to net.example only one fallback
22 route can be accepted.
23
24 You might try a postup function that checks to see whether dhcp is
25 successful and, if not, sets your additional routes manually.
26 --
27 gentoo-user@l.g.o mailing list