Gentoo Archives: gentoo-user

From: Jerry McBride <mcbrides9@×××××××.net>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Static ip address
Date: Wed, 13 Dec 2006 01:16:37
Message-Id: 200612122011.57036.mcbrides9@comcast.net
In Reply to: [gentoo-user] Static ip address by Felipe Ribeiro
1 On Tuesday 12 December 2006 16:15, Felipe Ribeiro wrote:
2
3 > Did they change anything on how you configure your static ip address?
4 > I've updated my system today and connot access the internet anymore,
5 > when using my static ip address, just dhcp.
6 >
7 > I used to use my /etc/conf.d/net like this:
8 >
9 > config_eth0=("192.168.254.2 netmask 255.255.255.0 broadcast
10 > 192.168.254.255") routes_eth0=("default via 192.168.254.254")
11 >
12
13 Yes! Much has changed in baselayout... The more recent versions
14 rewrite /etc/resolv.conf with the data you spec in /etc/conf.d/net
15
16 Here's a simple /etc/conf.d/net file I have set for a client on my home lan:
17
18 modules=("ifconfig")
19 config_eth0=("192.168.0.12 netmask 25.255.255.0 broadcast 192.168.0.255")
20 routes_eth0=("default via 192.168.0.1")
21 dns_domain_eth0=("my.domain")
22 dns_search_eth0=("search hs.ma.comcast.net.")
23 dns_servers_eth0=("68.87.75.255 68.87.64.255")
24
25
26 Cheers...
27
28 --
29
30 Jerry McBride
31 --
32 gentoo-user@g.o mailing list