Gentoo Archives: gentoo-user

From: Dan Farrell <dan@×××××××××.cx>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Static addresses and timeouts
Date: Sun, 08 Jul 2007 17:15:32
Message-Id: 20070708120935.54e20153@pascal.spore.ath.cx
In Reply to: Re: [gentoo-user] Static addresses and timeouts by Eduard Bachmakov
1 On Sun, 8 Jul 2007 18:32:04 +0200
2 Eduard Bachmakov <e.bachmakov@×××.net> wrote:
3
4 > Am Sonntag, 8. Juli 2007 schrieb Dan Farrell:
5 > > On Sun, 8 Jul 2007 15:08:11 +0200
6 > >
7 > > Eduard Bachmakov <e.bachmakov@×××.net> wrote:
8
9 > > > I want to run a webserver on my PC. Since I am using a NAT-router
10 > > > for internet connection I need the server to have the same ip
11 > > > everytime. That's why I tried to use static routes.
12
13 > > > The problem is that I get timeouts for about 25-75% of the time.
14 > > > DHCP works without any problems (but I get different ips). The
15 > > > static address is 192.168.2.50, DHCP starts at 192.168.2.100 so
16 > > > there should be no problems of two pcs having the same ip.
17
18 > > > Here is my /etc/conf.d/net:
19 > > > > config_eth0="'192.168.2.50 netmask 255.255.255.0 broadcast
20 > > > > 192.168.2.255'" routes_eth0="'default via 192.168.2.1'"
21 > > > > fallback_config_eth0="'dhcp'"
22 > > > >
23 > > > > dns_servers="192.168.2.1"
24 > > > > dhcpcd="'-t 10'"
25 > > > > dns_domain="'outer_space'"
26 > > >
27 > > > The timeouts also happen if I use my wlan (with static routes;
28 > > > same pc).
29 > > >
30 > > > So what went wrong?
31 > >
32 > > You've double-quoted all those strings in /etc/conf.d/net -- I would
33 > > recommend removing one of the pairs of quotes, and adding
34 > > parenthases as shown in /etc/conf.d/net.example
35 >
36 > The double quotation is the new style as described in the net.example
37 > (at least at baselayout 2.0.0_alpha3). Quote:
38 > ...
39 > # We've changed from using arrays to evaluated strings.
40
41 My mistake, sorry ; ) I'm only using 1.12.something-or-other.
42
43 --
44 gentoo-user@g.o mailing list