Re: Configuring DHCP



Hi,
I traced thar NM v0.7 calls dhclient with these parameters for me:
-d -sf /usr/lib/NetworkManager/nm-dhcp-client.action
-pf /var/run/dhclient-wlan0.pid -lf /var/run/dhclient-wlan0.lease 
-cf /etc/dhclient-wlan0.conf wlan0
So you can specify the options for dhclient in /etc/dhclient-wlan0.conf
, changing wlan0 with the interface you have, instead of 
/etc/dhcp3/dhclient.conf

BR,
Hristo

On Fri, 2 May 2008 00:57:24 +0300
"Nick Palamarchuk" <lupinedreamer gmail com> wrote:

> Hello all,
> 
> DHCP server on my network sends routes in rfc3442 format. So I have to
> configure NetworkManager to understand this format.
> 
> My /etc/dhcp3/dhclient.conf looks like this:
> 
> option rfc3442-classless-static-routes code 121 = array of unsigned integer
> 8;
> 
> request subnet-mask, broadcast-address, routers,
>         domain-name, domain-name-servers, host-name,
>         netbios-name-servers, netbios-scope,
>         rfc3442-classless-static-routes;
> 
> I also have script for setting this routes in
> /etc/dhcp3/dhclient-exit-hooks.d
> 
> But NetworkManager dont use this options. I found only way for making it
> work: to re-run dhclient by hand (or by script in /etc/network/if-up.d/ )
> 
> Tell me plz if there is better way.


--
Hristo Hristov
VAS Engineer
Opencode Systems Ltd
Tel : +359 2 971 8314
Mob : +359 89 6890522
Fax : +359 2 971 8231
www.opencode.com


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]