Complete DHCP Configuration Guide in RHEL5

Source: Internet
Author: User
I believe everyone should know the role and benefits of the DHCP service. I will not elaborate on it here. The dhcp-3.0.5-7.el5.i386.rpm needs to be installed to implement DHCP in rhel5. Its configuration file is/etc/dhcpd. conf, and the lease database file is/var/lib/dhcpd. leases. When you open the file for the first time, only the path of the example file (for example) is notified. You can overwrite the configuration file and modify it. Dhcpd. co

I believe everyone should know the role and benefits of the DHCP service. I will not elaborate on it here. Dhcp-3.0.5-7.el5.i386.rpm needs to be installed to implement DHCP in rhel 5, its configuration file is/etc/dhcpd. conf, and the lease database file is/var/lib/dhcpd. leases.

When you open the file for the first time, only the path of the example file (for example) is notified. You can overwrite the configuration file and modify it.

 

The dhcpd. conf file has two major parts: global configuration and local configuration (for example ). When global configuration conflicts with local configuration, local configuration has a higher priority.

 

● Common parameters:
● Ddns-update-style (none | interim | ad-hoc): defines the supported DNS dynamic update types, this parameter is required and must be placed in the first line and can only be used in ● global configuration.
● None: not supported.
● Interim: DNS interactive update mode.
● Ad-hoc: Special DNS update mode.
● Ignore-client-updates: ignore client updates. This parameter can only be used in global configuration.
● Default-lease-time: default IP address lease time, in seconds. This parameter can be used in global configuration and local configuration.
● Mas-lesase-time: Maximum Client IP lease time, in seconds. This parameter can be set globally or locally.
● Common statements:
● Subnet network No. netmask subnet mask {.....} : Define the scope.
● Starting IP address of range ending IP Address: Dynamic IP address range.
● Common options:
● Option routes IP Address: Default Gateway. This option can be used in both global and local configurations.
● Option subnet-mask subnet mask: Default subnet mask. This option can be used in both global and local configurations.
● Option domain-name-servers: DNS server address. This option can be used in both global and local configurations.
● Option domain-name: DNS suffix. This option can be used in both global and local configurations.
● Option time-offset: Specifies the Greenwich Mean time leading time (in seconds) for the client. This option can be used in global configuration and local configuration.
● Let's look at a configuration instance. The network topology in the instance is as follows:

 

ddns-update-style interim;ignore client-updates;option domain-name“demo.zqin”;subnet 192.168.159.0 netmask 255.255.255.0 {        option routers     192.168.159.18;option subnet-mask255.255.255.0;option domain-name-servers192.168.159.1;option domain-name“example.zqin”;option time-offset-18000;range dynamic-bootp 192.168.159.20 192.168.100.250;default-lease-time 21600;max-lease-time 43200;}

The preceding configuration only needs to be modified in the example file provided in rhel. when compiling the configuration file, pay attention to the following issues:

Related Article

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.