Gentoo Archives: gentoo-user

From: "Peter Volkov (pva)" <pva@g.o>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Asking dhcp for a static address
Date: Fri, 06 Jan 2006 09:05:11
Message-Id: 1136537983.4435.10.camel@localhost
In Reply to: [gentoo-user] Asking dhcp for a static address by Sergio Polini
1 On Птн, 2006-01-06 at 08:53 +0100, Sergio Polini wrote:
2 > I can't understand how to ask dhcp for a static address.
3 > I've read /etc/conf.d/net.example, but using
4 >
5 > config_eth0=( <IPaddress> netmask <netmask> brd <broadcast>)
6 >
7 > in /etc/conf.d/net configures my network interface _instead of_
8 > asking
9 > dhcp (the files in /var/lib/dhcpc are not updated).
10
11 Right. This is static configuration. No dhcp.
12
13 > If I use
14 >
15 > dhcpcd_eth0="-s <IPaddress>"
16 >
17 > dhcpcd hangs.
18
19 > Any hints?
20
21 Hm. Information from net.example, expressed in other words:
22
23 First select what dhcp client you are going to use by adding one of
24 # dhclient: emerge net-misc/dhcp
25 # dhcpcd: emerge net-misc/dhcpcd
26 # pump: emerge net-misc/pump
27 # udhcpc: emerge net-misc/udhcp
28 in modules. Fex
29 1. modules=( "dhcpcd" )
30 Now. Tell that you are going to use dhcp on eth0
31 2. config_eth0=( "dhcp" )
32 And then add custom configuration options
33 module_eth0="custom_options"
34 Fex
35 3. dhcpcd_eth0="-s 123.123.123.123"
36
37 BTW. What version of baselayout do you have?
38
39 Peter.

Attachments

File name MIME type
signature.asc application/pgp-signature