Red HatThis forum is for the discussion of Red Hat Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: Ubuntu 10.04 LTS on IBM Lenovo R61e, RHEL5-6,SLES10-11
Posts: 262
Rep:
DHCP question
Hi
I have RHEL6 running and get IP from DHCP Server.
I only added BOOTPRO=dhcp to /etc/syconfig/network-scripts/ifcfg-eth0 file and everything works.
I only wanted to get IP, MASK, GATEWAY.
Why is this working even without instaling dhclient daemon ?
dhclient will be called as part of the ifup-ethx script at boot time, or whenever the script is run. dhclient is used on the client machine, to ask the dhcp server for an IP address.
the daemon, dhcpd is run on the server, and answers the requests from dhclient.
dhclient is installed by default in every distro i have ever used, as its (in my experience) more common than setting a static address on the client machine.
[root@redhat6 ~]# rpm -qi dhclient-4.1.1-12.P1.el6_0.4.i686
Name : dhclient Relocations: (not relocatable)
Version : 4.1.1 Vendor: Red Hat, Inc.
Release : 12.P1.el6_0.4 Build Date: Wed 06 Apr 2011 07:21:49 PM CEST
Install Date: Fri 15 Apr 2011 01:05:42 PM CEST Build Host: x86-002.build.bos.redhat.com
Group : System Environment/Base Source RPM: dhcp-4.1.1-12.P1.el6_0.4.src.rpm
Size : 648857 License: ISC
Signature : RSA/8, Thu 07 Apr 2011 09:13:23 AM CEST, Key ID 199e2f91fd431d51
Packager : Red Hat, Inc. <http://bugzilla.redhat.com/bugzilla>
URL : http://isc.org/products/DHCP/
Summary : Provides the dhclient ISC DHCP client daemon and dhclient-script
Description :
DHCP (Dynamic Host Configuration Protocol) is a protocol which allows
individual devices on an IP network to get their own network
configuration information (IP address, subnetmask, broadcast address,
etc.) from a DHCP server. The overall purpose of DHCP is to make it
easier to administer a large network.
To use DHCP on your network, install a DHCP service (or relay agent),
and on clients run a DHCP client daemon. The dhclient package
provides the ISC DHCP client daemon.
I don't see any file which is responsible for behavior of dhclient binary file ?
Where I should configure dhclient ?
thx for help.
Last edited by drManhattan; 10-07-2011 at 07:08 AM.
option host-name string;
This option specifies the name of the client. The name may or may not be qualified with the local domain name (it is preferable to use the domain-name option to specify the domain name). See RFC 1035 for character set restrictions. This option is only honored by dhclient-script(8) if the hostname for the client machine is not set.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.