Gentoo Archives: gentoo-user

From: Sergio Polini <sp_rm_it@×××××.it>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Re: Asking dhcp for a static address
Date: Fri, 06 Jan 2006 13:39:57
Message-Id: 200601061434.07996.sp_rm_it@yahoo.it
In Reply to: [gentoo-user] Re: Asking dhcp for a static address by Peter
1 Peter:
2 > iface_eth0="192.168.2.100 broadcast 192.168.0.255 netmask
3 255.255.255.0"
4 > #iface_eth0="dhcp"
5 > #dhcpcd_eth0="-N"
6 > gateway="eth0/192.168.2.1"
7 >
8 > This last part is important. Your PC has to find the gateway.
9
10 Done. But it doesn't work :-(
11
12 > You might also have to add the
13 > gateway address to /etc/resolv.conf as the nameserver otherwise you
14 > might lose internet and network connections.
15
16 Yes, I can't get names resolved.
17 Do you mean that I should add
18
19 nameserver 192.168.2.1
20
21 (i.e., my gateway address, which is different ;-) to /etc/resolv.conf?
22 My resolv.conf after a dhcp connession is:
23
24 domain fastwebnet.it
25 nameserver 213.156.54.80
26 nameserver 213.156.54.81
27
28 (Fastweb is my provider).
29
30 What should my resolv.conf look like?
31 Thanks.
32 Sergio
33 --
34 gentoo-user@g.o mailing list

Replies

Subject Author
[gentoo-user] Re: Re: Asking dhcp for a static address Peter <pete4abw@×××××××.net>