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

【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 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
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值