A DHCP service is built on Linux system servers to achieve two basic functions: 1, auto-assign ip;2, manually assign IP

Source: Internet
Author: User
Tags get ip
Build DHCP service on Linux system server, realize two basic functions: 1, automatically assign IP address, 2, specify IP address manually.
First prepare two virtual machines as the experimental object, a Linux system as a server, a windows7 system as a client, both using the same virtual NIC Vmnet1, and using only host mode.
Determine if the disc status on the server is connected,

Use commands to view and Mount discs

Check that the DHCP package is installed, and if not, use RPM to install it. Copy the DHCP configuration file template and modify the configuration file to edit the DHCP, make the relevant settings and save the exit
= "alt=" Linux system server to build a DHCP service to achieve two basic functions: 1, automatically assign ip;2, manually specify IP "/>

Start the DHCP service

Change the NIC of the client to get IP automatically

Open the CMD Command Input window for the client, enter the command to automatically obtain the IP address assigned by the DHCP service, and you can see that the client obtains the IP assigned automatically

The first feature (auto-assigned IP) implements

Next, implement the second function.
Enter the command to view the client's Nic MAC address

On the Linux server, edit the configuration file that sets the DHCP, bind the client's MAC address, and specify the IP address

Restart the DHCP service

Frees the current IP address on the client and re-obtains the IP address specified by DHCP

The experiment is complete.

A DHCP service is built on Linux system servers to achieve two basic functions: 1, auto-assign ip;2, manually assign IP

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.