1. Install and configure: DHCP service:
1) Yum list |grep DHCP
2) yum Install dhcp*-y
3) Edit/etc/dhcpd.conf
√RPM-QL DHCP
√ Find dhcpd.conf.example This file, copy to/etc, replace dhcpd.conf
Cp/usr/share/doc/dhcpd.conf.example/etc/dhcpd.conf
√vim/etc/dhcpd.conf
Modified as follows: (note the red part)
***********************************************************************
Ddns-update-style Interim;
Ignore client-updates;
Subnet 192.168.1.0 netmask 255.255.255.0 {
#---Default gateway
Option routers 192.168.1.1;
Option Subnet-mask 255.255.255.0;
# option Nis-domain "domain.org";
# option Domain-name "domain.org";
# option Domain-name-servers 192.168.1.1;
Option time-offset-18000; # Eastern Standard Time
FileName "pxelinux.0";
Next-server 192.168.1.88;
# option Ntp-servers 192.168.1.1;
# option Netbios-name-servers 192.168.1.1;
#---Selects point-to-point node (default is hybrid). Don ' t change this unless
#--You understand Netbios very
# option Netbios-node-type 2;
Range DYNAMIC-BOOTP 192.168.1.100 192.168.1.120;
Default-lease-time 21600;
Max-lease-time 43200;
# We want the nameserver to appear in a fixed address
Host NS {
Next-server marvin.redhat.com;
Hardware Ethernet 00:16:d3:07:68:27;
Fixed-address 192.168.1.88;
}
}
***************************************************************************
√chkconfig DHCPD on
√service dhcpd Restart
√ If the error is not correct, check log log, cat/var/log/message