DHCP server RPM installation configuration and its test under Linux

Source: Internet
Author: User
Tags get ip

First, understand the DHCP

The DHCP service provides a mechanism for dynamically specifying IP addresses and configuration parameters. There are both dynamic and static methods.

Second, RPM installation

It's very simple because it's with samba.

First find the main program and several sub-programs RPM installation package. It should all be in the server package of media DVD. Locate the file location with find and RPM-IVH install it. "I can't seem to get a direct command into the DVD ... Then select window to enter ... "After the installation is complete, rpm-qa|grep DHCP can see if the installation was successful.

Third, the configuration

The Master profile is the dhcpd.conf file in the/etc directory, but this file is not available by default.

After the DHCP main package is installed, the file Dhcpd.conf.sample is automatically generated under the/USR/SHARE/DOC/DHCP-3.0.5/folder. We need to copy this file to the ETC folder and rename it to dhcpd.conf.

Execute cp/usr/share/doc/dhcp-3.0.5/dhcpd.conf.sample/etc/dhcp.conf We have a modifiable configuration file template.

Vi/etc/dhcp.conf viewing the configuration file, press I to enter insert mode "I would say the first time the installation is finished, and then go away, and then open when found two configuration files are all blank, so again Ann again?" Later, when the window appeared under the new file Word, it should be the path input is wrong, and then the Linux intimate in the corresponding path is not found in the case of sketching into a file of that name ... Intimate.. 】

"I do not want to be with the text, steal the picture to beg for forgiveness ..."

Attention!!!

Network segment must be its own host network segment, nonsense, or what way with you to request IP it ... Of course, if you use a virtual machine, you will not think this host is ... Real Machine Bar ... 2333 "I really don't have this ..."

Then, the configuration is also very enjoyable to end up.

Then, service dhcpd Restart starts the DHCP service. If it fails, it should be ... The network segment is out of the question ...

Iv. Testing

It seems that there are three kinds of test methods.

No1: Linux native test

First change Linux to DHCP to get IP ... And then...

Service DHCPD Resart

Service Network restart

Ifconfig-a

And then you'll find that you really got the IP in your config range Yes ~ ~ ~ ...

Assuming that you are experimenting on virtual machines, if the NIC run mode is NET, then the reason for the failure is that the host is the DHCP service for the polygons on the Windows real-world machine that has provided the Linux IP more quickly. "Linux with Nat, provided by host Dhcp,nat Service, Windows service there are 4 VM services, DHCP,NAT,USB, main program. 】

Then there are two ways to solve this problem:

1. Change to Bridge connection

2. Turn off the DHCP service of the real machine.

Of course I chose the first kind ...

Then, restart the Network service, perfect.

NO2: providing IP to real machines

Change the host to obtain the IP automatically, obtain the DNS automatically.

Ipconfig/release

Ipconfig/renew

Ipconfig-all

Perfect.

"Strangely, although the host displays the IP and DNS domain name parameters are in the configuration file, but the IP of the DHCP server should not be followed with the IP of Linux ... In fact, there is no ... Tired.. Temporarily ignore this bug "

No3: assigning IP to a specified host

Didn't try ... See links ...

http://zhaoyuqiang.blog.51cto.com/6328846/1208797

DHCP server RPM installation configuration and its test under Linux

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.