CentOS5.5DHCP server installation guide: 1. install the dhcprpm package directly with yum-ydhcp. You can also go to the http://pbone.net to download it. 2. after installation, copy the configuration file dhcpd. conf file in/usr/share/doc/dhcp-3.0/dhcpd. conf. example copy the sample file to CentOS 5.5 DHCP server installation guide:
1. directly use yum-y dhcp to install the dhcp rpm package. You can also go to the http://pbone.net to download it.
2. after installation, copy the configuration file dhcpd. conf file in/usr/share/doc/dhcp-3.0/dhcpd. conf. for example, copy the sample file and rename it to/etc/dhcpd. conf.
3. the contents of vi/etc/dhcpd. conf are as follows. I have modified this file.
Download dhcpd. conf for CentOS 5.5
Ddns-update-style interim;
Ignore client-updates;
Subnet 192.168.10.0 netmask 255.255.255.0 {// a client in the subnet that dynamically specifies an IP address. in this subnet declaration, a set of IP address ranges must be included.
Option nis-domain "my.lk.org ";
Option domain-name "my.lk.org ";
Option domain-name-servers 202.101.172.35; // dns IP address
Option time-offset-18000; # Eastern Standard Time
# Option ntp-servers 192.168.1.1;
# Option netbios-name-servers 192.168.1.1;
# --- Selects point-to-point node (default is hybrid). Dont change this unless
# -- You understand Netbios very well
# Option netbios-node-type 2;
Range dynamic-bootp 192.168.10.128 192.168.10.254; // address pool range address
Default-lease-time 21600; // default ip address lease time unit: Seconds
Max-lease-time 43200; // The maximum lease duration of an ip address is in seconds.
# We want the nameserver to appear at a fixed address // It is used to bind the mac physical address of the server.
Host ns {
Next-server stationx.example.com;
Hardware ethernet 00: 0C: 29: 7E: 7F: 86;
Fixed-address 192.168.10.223;
}
}
4. service dhcpd start can be started. if you want to start the service, select the dhcpd asterisk in ntsysv.
The configuration file can also be written as follows:
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