Dhcp configuration in linux

Source: Internet
Author: User
Dhcp configuration in linux-Linux Enterprise Application-Linux server application information. For details, refer to the following section. To install the service, you must first have an IP address and the corresponding installation package ~ No. These basic files can be found in DNS.

1. Install the installation package and give the machine a fixed IP address!

2. cp 'rpm-ql dhcp | grep conf. sa '/etc/dhcpd. conf
This is an instance file. copy it.

3. vi/etc/dhcpd. conf
Open the configuration file and you will see some English

Option routers Gateway
Option subnet-mask
Option domain-name domain name
Option domain-name-servers DNS Server
... There are some other... which can be translated in English ~ Relatively simple
Range dynamic-bootp ip Address: the range of ip addresses to be allocated.
Host Name {
Hardware ethernet MAC;
Fixed-adderss IP
}

This indicates that the names used for fixed allocation are unique and cannot be repeated.
Exit save

5. Restart the service and set it to boot
Service dhcpd start
Chkconfig dhcpd on

A simple DHCP is complete.
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.