【redhat5.5】dhcp 服务器的配置

来源:互联网 发布:七天网络教师登录 编辑:程序博客网 时间:2024/06/05 01:14
【1】dhcp安装包
          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 gatewayoption routers        10.10.87.1;                         #分配路由器option subnet-mask255.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-servers10.10.68.1;#option netbios-name-servers10.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 addresshost laoban {                                                      #为特定mac绑定特定ipnext-server marvin.redhat.com;hardware ethernet 12:34:56:78:AB:CD;fixed-address 10.10.68.188;}}


【4】  重启hdcpd服务
    service hdcpd restart
原创粉丝点击