From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.62) (envelope-from ) id 1I7aM7-0001NH-Kh for garchives@archives.gentoo.org; Sun, 08 Jul 2007 17:15:32 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.14.0/8.14.0) with SMTP id l68HEFSk026693; Sun, 8 Jul 2007 17:14:15 GMT Received: from alnrmhc14.comcast.net (alnrmhc14.comcast.net [204.127.225.94]) by robin.gentoo.org (8.14.0/8.14.0) with ESMTP id l68H9asx021721 for ; Sun, 8 Jul 2007 17:09:37 GMT Received: from spore.ath.cx ([24.245.14.14]) by comcast.net (alnrmhc14) with ESMTP id <20070708170935b14004lemte>; Sun, 8 Jul 2007 17:09:35 +0000 Received: from pascal.spore.ath.cx (pascal.spore.ath.cx [192.168.1.100]) by spore.ath.cx (Postfix) with ESMTP id A60D81D4BA for ; Sun, 8 Jul 2007 12:09:35 -0500 (CDT) Date: Sun, 8 Jul 2007 12:09:35 -0500 From: Dan Farrell To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Static addresses and timeouts Message-ID: <20070708120935.54e20153@pascal.spore.ath.cx> In-Reply-To: <200707081832.04604.e.bachmakov@gmx.net> References: <200707081508.12011.e.bachmakov@gmx.net> <20070708104424.6148d1e2@pascal.spore.ath.cx> <200707081832.04604.e.bachmakov@gmx.net> Organization: Spore, Ltd. X-Mailer: Claws Mail 2.9.1 (GTK+ 2.10.6; x86_64-pc-linux-gnu) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@gentoo.org Reply-to: gentoo-user@lists.gentoo.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Archives-Salt: 33c7cf62-e093-4ae4-a619-b21e3acd46fe X-Archives-Hash: 95741bfd298ff1a34faca862a528dab9 On Sun, 8 Jul 2007 18:32:04 +0200 Eduard Bachmakov wrote: > Am Sonntag, 8. Juli 2007 schrieb Dan Farrell: > > On Sun, 8 Jul 2007 15:08:11 +0200 > > > > Eduard Bachmakov wrote: > > > I want to run a webserver on my PC. Since I am using a NAT-router > > > for internet connection I need the server to have the same ip > > > everytime. That's why I tried to use static routes. > > > The problem is that I get timeouts for about 25-75% of the time. > > > DHCP works without any problems (but I get different ips). The > > > static address is 192.168.2.50, DHCP starts at 192.168.2.100 so > > > there should be no problems of two pcs having the same ip. > > > Here is my /etc/conf.d/net: > > > > config_eth0="'192.168.2.50 netmask 255.255.255.0 broadcast > > > > 192.168.2.255'" routes_eth0="'default via 192.168.2.1'" > > > > fallback_config_eth0="'dhcp'" > > > > > > > > dns_servers="192.168.2.1" > > > > dhcpcd="'-t 10'" > > > > dns_domain="'outer_space'" > > > > > > The timeouts also happen if I use my wlan (with static routes; > > > same pc). > > > > > > So what went wrong? > > > > You've double-quoted all those strings in /etc/conf.d/net -- I would > > recommend removing one of the pairs of quotes, and adding > > parenthases as shown in /etc/conf.d/net.example > > The double quotation is the new style as described in the net.example > (at least at baselayout 2.0.0_alpha3). Quote: > ... > # We've changed from using arrays to evaluated strings. My mistake, sorry ; ) I'm only using 1.12.something-or-other. -- gentoo-user@gentoo.org mailing list