【1】dhcp安装包
yum install dhcp*
【2】dhcp默认配置文件
/etc/dhcpd.conf
【3】 编辑配置文件dhcp.conf
【4】 重启hdcpd服务
service hdcpd restart
yum install dhcp*
【2】dhcp默认配置文件
/etc/dhcpd.conf
【3】 编辑配置文件dhcp.conf
ddns-update-style interim;
ignore client-updates;
subnet 10.10.68.0 netmask 255.255.255.0 { #指定dhcp服务工作的网段
# --- default gateway
option routers 10.10.87.1; #分配路由器
option subnet-mask 255.255.255.0; #子网掩码选项
#option nis-domain "domain.org"; #下一个预定
#option domain-name "domain.org"; #域名
option domain-name-servers 10.10.68.1; #dns地址
option time-offset -18000; # Eastern Standard Time
# option ntp-servers 10.10.68.1;
# option netbios-name-servers 10.10.68.1;
# option netbios-node-type 2;
range dynamic-bootp 10.10.68.20 10.10.68.200; #指定分配的地址段
default-lease-time 21600; #默认租期(请求续租时间)
max-lease-time 43200; #最大租期
# we want the nameserver to appear at a fixed address
host laoban { #为特定mac绑定特定ip
next-server marvin.redhat.com;
hardware ethernet 12:34:56:78:AB:CD;
fixed-address 10.10.68.188;
}
}
【4】 重启hdcpd服务
service hdcpd restart