Basic configuration of DHCP service on wdOS

Source: Internet
Author: User
In The wdOS operating system, the basic configuration of the DHCP service dynamic host allocation Protocol (DHCP) is a standard TCP/IP protocol that simplifies the management of host IP address allocation. You can use the DHCP server to manage dynamic IP address allocation and other related environment configurations (such as DNS, WINS, Gateway...
In The wdOS operating system, the basic configuration of the DHCP service dynamic host allocation Protocol (DHCP) is a standard TCP/IP protocol that simplifies the management of host IP address allocation. You can use the DHCP server to manage dynamic IP address allocation and other related environment configurations (such as DNS, WINS, and Gateway settings ). Www.2cto.com DHCP avoids errors caused by manual IP addresses and subnet masks. It also avoids address conflicts caused by assigning an IP address to multiple workstations. Reduces the burden of managing IP address settings, and greatly reduces the time required to configure or reconfigure workstations in the network by using DHCP servers, you can also set the IP address lease period flexibly by setting the DHCP server. At the same time, the update process of the DHCP address lease will help the user determine that the customer's settings need to be updated frequently (for example, customers who use hosts often change locations ), these changes are automatically completed by the client and the DHCP server without interference from the network administrator. I. Installation: before installation, first run the rpm-qa | grep dhcp command to check whether the DHCP software package has been installed in the system. note: The Dhcpv6-client-l.0.10-20.e15 is the dhcp client Ipv6 software package, to help the client obtain the dynamic IP address, the dhcp master package is not displayed, indicating that the dhcp service has not been installed. Www.2cto.com can be automatically completed with the yum install dhcp command in one click. Simple and convenient. Note: if the following error is displayed when running yum install dhcp, the cause is that you must create a software library for this command before using the yum command. To create a software library, you will use another command, that is, the createrepo command, which is used to create a software library for yum. Because the createrepo command is not installed in the default installation, you must first install it using the rpm command. When the installation is complete, check the installation again: Note: dhcp-3.0.5-31.el5 this is the main DHCP package, including DHCP service and relay agent www.2cto.com dhcpv6-client-1.0.10-20.el5 this is the DHCP client IPv6 package, help the client get dynamic IP address when the DHCP master package installed will automatically generate the master configuration file template file/usr/share/doc/dhcp-3.0.5/dhcpd. conf. sample, and a blank dhcpd will be created under the/etc directory. conf main configuration file. now we copy the template configuration file to the/etc directory and replace the blank dhcpd. conf main configuration file. Then you can edit the dhcpd. conf file. Note: If you want to overwrite/etc/dhcpd. conf, input y to overwrite it. II. Simple case configuration step environment: There are 30 computers with IP address segments 192.168.1.0/24 and the gateway is 192.168.1.1. 192.168.1.10-192.168.1.20 must be kept as the server's fixed address, the common client CIDR block is 192.168.1.200-192.168.1.250. Other remaining addresses are used as the standby address www.2cto.com 1. Dhcp server configuration: Next, you need to configure the main configuration file dhcpd. conf to view the main configuration file and modify the configuration option routers 192.168.1.1; # set the default gateway address www.2cto.com option subnet-mask 255.255.255.0; # set the subnet mask range dynamic-bootp 192.168.1.200 192.168.1.250; # set the address pool range to default-lease-time 21600; # set the default address lease time to max-lease-time 43200; # set the lease time for the maximum client address the following content is the IP address retained by the specific machine (I have not made any configuration) now the installation and configuration is complete, but it cannot work now, for the following reasons: VMware has a DHCP function and is enabled by default. we must disable it here, In addition, the network must be connected. Disable the DHCP function provided by VMware: Click "Edit" = "virtual Network Editor ". As I chose NAT for network connection, it was VMnet8. click VMnet8, we found that the "Use local DHCP service to distribute IP address to VMs" option below is selected. we checked the previous option and click OK to save it. In this way, the built-in DHCP function www.2cto.com is disabled and the dhcpd service needs to be restarted after modification to take effect. 2. DHCP client configuration: enable another operating system on the VM, you can use dhclient eth0 to configure the DHCP client, or disable the Nic eth0 to restart the network service, so that the modification takes effect for www.2cto.com and then use ifconfig to check whether the IP address is obtained successfully. Note: the DHCP client obtains the IP address starting from the maximum IP address. we can see that the obtained IP address is 192.168.1.250, which is exactly the opposite of widows.
Author Zhou _ chuchu
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.