Gentoo Archives: gentoo-user

From: Nikos Chantziaras <realnc@×××××.de>
To: gentoo-user@l.g.o
Subject: [gentoo-user] Re: What do I put in the /etc/conf.d/net....
Date: Mon, 28 Sep 2009 01:31:03
Message-Id: h9p3jj$5mo$1@ger.gmane.org
In Reply to: Re: [gentoo-user] Re: What do I put in the /etc/conf.d/net.... by David Juhl
1 On 09/27/2009 04:45 PM, David Juhl wrote:
2 > It added the route but didn't add anything as far as nameservers are
3 > concerned.... Why?
4 >
5
6 What works and what doesn't? Can you ping IPs?
7
8 ping 74.125.45.100
9
10 If yes, you have connectivity and the route works. If it was actually
11 working even before you added the "routes_eth0" setting in
12 /etc/conf.d/net, then the route is not the problem and that setting is
13 not needed in your case.
14
15 Can you ping domain names?
16
17 ping google.com
18
19 If yes, DNS works. If not, the IP in /etc/resolv.conf is wrong.
20 Specifying it in conf.d/net instead of resolv.conf doesn't help if it's
21 just the wrong IP. Usually it's the router's IP though. So if it
22 doesn't work, you might try to use your ISP's DNS directly. You can
23 either phone them, or search at their homepage for info, or Google
24 "ISP_Name DNS" and start from there.
25
26
27 > David
28 >
29 > On Sat, 2009-09-26 at 21:08 -0500, David Juhl wrote:
30 >> I feel like a idiot.... my device isn't eth0 it is wlan0 and defined it
31 >> as such... No wonder I didn't catch it...
32 >>
33 >> Thanks
34 >>
35 >> David
36 >> On Sun, 2009-09-27 at 04:22 +0300, Nikos Chantziaras wrote:
37 >>> On 09/26/2009 11:11 PM, David Juhl wrote:
38 >>>> What do I put in the /etc/conf.d/net to specify name servers? I can't
39 >>>> seem to modify the /etc/resolv.conf and get it to sick at boot.
40 >>>
41 >>> Depends on how you connect. If you're behind a router/gateway device
42 >>> that does NAT (this includes most "DSL modems"), you use the device's IP
43 >>> as nameserver in /etc/resolv.conf as well as routes_ethN in
44 >>> /etc/conf.d/net. For example, if your router's IP is 192.168.1.1, you
45 >>> use this in /etc/resolv.conf:
46 >>>
47 >>> nameserver 192.168.1.1
48 >>>
49 >>> And this in /etc/conf.d/net:
50 >>>
51 >>> routes_eth0="default via 192.168.1.1"