网站大量收购独家精品文档,联系QQ:2885784924
  1. 1、本文档共8页,可阅读全部内容。
  2. 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
linux dhcp

dhcp服务 一、要求 服务器地址:/24 网关: 分配-0/24 网关为 新建保留分配给AA:BB:CC:DD:EE:FF 二、操作步骤: yum –y install dhcp* cat /usr/share/doc/dhcp-3.0.5/dhcpd.conf.sample /etc/dhcpd.conf 修改/etc/dhcpd.conf 文件(注意:dhcp首先要做与本机同网段的作用域) 行号 原内容 修改后内容 4 subnet netmask subnet netmask 7 option routers ; option routers ; 21 range dynamic-bootp 28 54; range dynamic-bootp 28 54; 复制 复制4-31行并到最后一行粘贴 删除 删除25–30行 26 subnet netmask subnet netmask 29 option routers ; option routers ; 43 range dynamic-bootp 28 54; range dynamic-bootp 54; 50 hardware ethernet 12:34:56:78:AB:CD; hardware ethernet AA:BB:CC:DD:EE:FF; 51 fixed-address 54; fixed-address ; 三、配置文件 文件/etc/dhcpd.conf,以下是文件内容,红色字体是需要修改部分 #ddns-update-style interim; #ignore client-updates; subnet netmask { ping-check true; //分配之前ICMP检测,1S后无响应则分配 ping-timeout 1; # --- default gateway option routers ; option subnet-mask ; option nis-domain ; option domain-name ; //dns域名 option domain-name-servers ; //dns地址 option time-offset -18000; # Eastern Standard Time # option ntp-servers ; # option netbios-name-servers ; # --- 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 28 54; //地址池 default-lease-time 21600; //默认租期时间 (秒) max-lease-time 43200; //最大租期时间 (秒) } subnet netmask { # --- default gateway option routers ; option subnet-mask ; option nis-domain ; option domain-name ; option domain-name-servers ; option time-offset -18000; # Eastern Standard Time # option ntp-servers ; # option netbios-name-servers ; # --- 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 0; default-lease-time 21600; max-lease-time 43200; # we want the nameserver to appear at a fixed address host ns { next-server ; hardware ethernet AA:BB:CC:DD:EE:FF; //新建保留

文档评论(0)

cj80011 + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

1亿VIP精品文档

相关文档