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