DHCP server configuration in RHEL4

Source: Internet
Author: User
Configuration of DHCP server in RHEL4-Linux Enterprise Application-Linux server application information. The following is a detailed description. DHCP server configuration

1. Server Configuration

1> check whether the DHCP server software is installed, do not install first, the default system is not installed. rpm-qa | grep dhcp rpm-ivh dhcp-3.0.1-12_EL.i386.rpm

2> Modify/etc/dhcpd. the conf file is empty by default and needs to be created by yourself. However, there is a template file in the system. You can copy the template file and modify the template file as required.

Cp/usr/share/doc/dhcp-3.0.1/dhcpd. conf. sample/etc/sample

3> start service dhcpd start

2. Client Configuration

Set the interface configuration file BOOTPROTO = dhcp, and restart the network interface or dhclient.

Configuration File description
/Etc/dhcpd. conf DHCP configuration file. The DHCP package does not provide this file, you need to copy the template file first
/Usr/sbin/dhcpd DHCP server execution File
/Etc/rc. d/init. d/dhcpd DHCP server startup script
/Etc/sysconfig/dhcrelay network interface for DHCP relay
/Etc/sysconfig/dhcpd specifies the network interface to provide the DHCP service
/Var/lib/dhcp/dhcpd. lease file of the DHCP server

Configure an instance
XX company needs to build a DHCP server in the LAN as follows

1> the default lease period is 21600 S.

2> the maximum lease time is 43200 S.

3> the domain name of all hosts in the LAN is abc.com.

4> the IP address of the DNS server used by the client is 192.168.1.1.

5> declare that the IP address range used for Dynamic Allocation in the subnet 192.168.1.0/24 is 192.168.1.100 ~ 192.168.1.200. The subnet mask of the allocated IP address is 255.255.255.0. The default gateway address is 192.168.1.1.

6> In the subnet 192.168.1.0/24, a server host named SERVER01 needs to be assigned a fixed IP address 192.168.1.11. the MAC address of the server network interface is b0: c0: c3: 22: 46: 81. other configurations of the server 01 host use the default configurations of the subnet,

The configuration file in dhcpd. conf is as follows:
QUOTE:

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.