Networking Forums

Networking Forums > Computer Networking > Linux Networking > dhclient setup question

Reply
Thread Tools Display Modes

dhclient setup question

 
 
zagman
Guest
Posts: n/a

 
      02-07-2006, 03:06 AM
Hello

How do I set up dhclient to use a custom dhclient.conf setup instead of
ifcfg-eth0?? I am running Whitebox Linux (based on RHEL) the matter
what I put in dhclient.conf it is ignored. I had been running FreeBSD
(for 10yrs) before which uses dhclient.conf by default. so I'm a
little new with "LINUX" networking. I want tp put the following in
dhclient.conf:

interface "eth0" {}
send fqdn.fqdn "myhome.net.net";
send fqdn.encoded on;
send fqdn.server-update off;

This computer is part of a home network I want to set it up so my
dhcpd/dns server gets its dns server updated automatically when the
client boots up. I do have full control of the dhcpd and dns server

Thanks,

Dave.

 
Reply With Quote
 
 
 
 
Postmaster
Guest
Posts: n/a

 
      02-07-2006, 03:27 AM

"zagman" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed) ups.com...
> Hello
>
> How do I set up dhclient to use a custom dhclient.conf setup instead of
> ifcfg-eth0?? I am running Whitebox Linux (based on RHEL) the matter
> what I put in dhclient.conf it is ignored. I had been running FreeBSD
> (for 10yrs) before which uses dhclient.conf by default. so I'm a
> little new with "LINUX" networking. I want tp put the following in
> dhclient.conf:
>
> interface "eth0" {}
> send fqdn.fqdn "myhome.net.net";
> send fqdn.encoded on;
> send fqdn.server-update off;
>
> This computer is part of a home network I want to set it up so my
> dhcpd/dns server gets its dns server updated automatically when the
> client boots up. I do have full control of the dhcpd and dns server
>
> Thanks,
>
> Dave.
>


Dave,

In /etc/sysconfig/network-scripts/ifcfg-eth0 put

DHCP_HOSTNAME=myhome.net.net

Now ifdown eth0; ifup eth0;

That's it.. your dns server will get the dns update.

At least, it does for me :-)

Enjoy,
Postmaster


 
Reply With Quote
 
prg
Guest
Posts: n/a

 
      02-07-2006, 04:09 AM

zagman wrote:
> Hello
>
> How do I set up dhclient to use a custom dhclient.conf setup instead of
> ifcfg-eth0?? I am running Whitebox Linux (based on RHEL) the matter
> what I put in dhclient.conf it is ignored. I had been running FreeBSD
> (for 10yrs) before which uses dhclient.conf by default. so I'm a
> little new with "LINUX" networking. ...


Worse yet, you're new to the joys of Red Hat networking ;-)

> ... I want tp put the following in
> dhclient.conf:
> interface "eth0" {}
> send fqdn.fqdn "myhome.net.net";
> send fqdn.encoded on;
> send fqdn.server-update off;


I think you can control these via /etc/dhclient-ethX.conf. Red Hat
(and Suse) use separate config files for each interface, but their
locations are not obvious or completely documented in the manuals IIRC.
The ultimate source for how Red Hat brings up the network interfaces
is in /etc/sysconfig/network-scripts/ifup. The leases file, btw, will
end up in /var/lib/dhcp/dhclient-ethX.leases.

You will almost certainly run into other gotchas and lose precious hair
trying to find some of the config files. Save your hair; check the
scripts :-)

In this case, the idea is OK if the execution leaves something to be
desired. You will notice that there are _multiple_ files/locations in
/etc/sysconfig/networking (and sub dirs) thanks to "profiles", ie.,
multiple configs for _each_ interface. Makes hand edits and scripting
a PITA. Worse yet is the way the supplied gui tools completely
overwrite the files they address without saving a backup (or warning).
Be warned before venturing down the road of hand editing the config
files.

> This computer is part of a home network I want to set it up so my
> dhcpd/dns server gets its dns server updated automatically when the
> client boots up. I do have full control of the dhcpd and dns server


You might want to check the Red Hat manuals for some background and
intro into how the network scripts work, though the ifup script is not
_that_ hard to follow.

http://www.redhat.com/docs/manuals/e...KSCRIPTS-FILES
Will provide a more complete review of what you _can_ put in
ifconfig-ethX.
Check here also (all files worth a look):
/usr/share/doc/initscripts-[xxx]/sysconfig.txt

The gui tools are explained here (it's a good idea to review what they
do to be forwarned):

http://www.redhat.com/docs/manuals/e...rk-config.html

I confess to being a bit rusty on these so don't take what I've said
too literally, except about viewing the scripts.

good luck,
prg

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
IP setup question Karl Prust Network Routers 0 11-26-2007 10:02 AM
IP setup question Karl Prust Network Routers 0 11-26-2007 10:00 AM
VPN setup question Mauro Windows Networking 2 11-28-2006 11:47 PM
FTP setup question gjb Windows Networking 2 01-20-2004 01:10 AM
dhclient question tom mccarthy Linux Networking 5 12-18-2003 05:52 PM



1 2 3 4 5 6 7 8 9 10 11