From: Dan Farrell <dan@spore.ath.cx>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Static addresses and timeouts
Date: Sun, 8 Jul 2007 12:09:35 -0500 [thread overview]
Message-ID: <20070708120935.54e20153@pascal.spore.ath.cx> (raw)
In-Reply-To: <200707081832.04604.e.bachmakov@gmx.net>
On Sun, 8 Jul 2007 18:32:04 +0200
Eduard Bachmakov <e.bachmakov@gmx.net> wrote:
> Am Sonntag, 8. Juli 2007 schrieb Dan Farrell:
> > On Sun, 8 Jul 2007 15:08:11 +0200
> >
> > Eduard Bachmakov <e.bachmakov@gmx.net> 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
prev parent reply other threads:[~2007-07-08 17:15 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-07-08 13:08 [gentoo-user] Static addresses and timeouts Eduard Bachmakov
[not found] ` <20070708104424.6148d1e2@pascal.spore.ath.cx>
2007-07-08 16:32 ` Eduard Bachmakov
2007-07-08 17:09 ` Dan Farrell [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20070708120935.54e20153@pascal.spore.ath.cx \
--to=dan@spore.ath.cx \
--cc=gentoo-user@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox