fedora8配置单个作用域和多个作用域的DHCP服务.doc_第1页
fedora8配置单个作用域和多个作用域的DHCP服务.doc_第2页
fedora8配置单个作用域和多个作用域的DHCP服务.doc_第3页
fedora8配置单个作用域和多个作用域的DHCP服务.doc_第4页
fedora8配置单个作用域和多个作用域的DHCP服务.doc_第5页
全文预览已结束

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

fedora8配置单个作用域和多个作用域的DHCP服务 一、单个作用域假设dhcp服务器地址在192.168.0网段,网关:,dns:8本人水平有限,请高手指点-#先查看dhcp的安装情况,貌似Fedora8里没有dhcp安装包,请自行下载或yumrootlocalhost # rpm -qa | grepdhcplibdhcp6client-0.10-51.fc8libdhcp-1.27-3.fc8dhcpv6-client-0.10-51.fc8libdhcp4client-3.0.6-10.fc8dhcp-3.0.6-10.fc8#先查看一下dhcp的主配文件,需要咱们自己来写,这样很麻烦,我们可以从主配文件中看到有sample的位置,用sample吧,很方便。rootlocalhost # cd /etcrootlocalhost etc# moredhcpd.conf-#dhcpServer Configuration file.# see /usr/share/doc/dhcp*/dhcpd.conf.sample#-rootlocalhost etc# cd /usr/share/docrootlocalhost doc# ls *dhcp*dhcp-3.0.6:api+protocol _Fedora_contrib rfc2131.txtdhcpd.conf.sample IANA-arp-parameters rfc2132.txtdraft-ietf-dhc-authentication-14.txt README rfc2485.txtdraft-ietf-dhc-dhcp-dns-12.txt README.ldap rfc2489.txtdraft-ietf-dhc-failover-07.txt RELNOTES rfc951.txtdraft-ietf-dhc-ldap-schema-01.txt rfc1542.txtdhcpv6-client-0.10:dhcp6c.conf ReadMelibdhcp-1.27:ChangeLog COPYING README TODO-#现在把那个sample复制到/etc下,rootlocalhost doc# cp -p /usr/share/doc/dhcp-3.0.6/dhcpd.conf.sample /etcrootlocalhost doc# cd /etcrootlocalhost etc# ls *dhcp*dhcpd.confdhcpd.conf.sample#把原来那个主配文件改名,因为咱们是直接在sample里改配置,然后改成主配文件名字rootlocalhost etc# mvdhcpd.confdhcpd.conf.bakrootlocalhost etc# vidhcpd.conf.sample-#这是没改动过的ddns-update-style interim;ignore client-updates;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 28 54; default-lease-time 21600; max-lease-time 43200; # we want the nameserver to appear at a fixed address host ns next-server ; hardware ethernet 12:34:56:78:AB:CD; fixed-address 54; -#这是经过修改的ddns-update-style interim;ignore client-updates;subnet netmask #要分配的网段# - default gateway option routers ; #网关 option subnet-mask ; #子网掩码 option nis-domain ; option domain-name ; option domain-name-servers 8; #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; #最大租约时间 # we want the nameserver to appear at a fixed address #这部分是给固定客户端分配IP地址的 host ns next-server ; hardware ethernet 12:34:56:78:AB:CD; #固定客户端MAC地址 fixed-address 54; #固定客户端分配的ip地址 -#别忘了配置完后把名字要改成dhcp的主配置文件名rootlocalhost etc# mvdhcpd.conf.sampledhcpd.conf#启动dhcp服务rootlocalhost etc# servicedhcpd start启动dhcpd: 确定找个客户端,自动获取一下,完成二、多个作用域前面的做法都一样,把sample文件复制到/etc下,改名dhcpd.conf。编辑dhcpd.conf文件rootlocalhost etc# vidhcpd.conf-ddns-update-style interim;ignore client-updates;shared-network holiday group #注意这里要加这么两句,那个“holiday”是给这个超级作用域起的名字subnet netmask #第一个网段# - default gateway option routers ; option subnet-mask ; option nis-domain ; option domain-name ; option domain-name-servers 8; 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; # we want the nameserver to appear at a fixed address host ns1 #假设这台主机分配固定IP next-server ; hardware ethernet 12:34:56:78:AB:CD; fixed-address 00; subnet netmask #第二个网段# - default gateway option routers ; option subnet-mask ; option nis-domain ; option domain-name ; option domain-name-servers 8; 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; # we want the nameserver to appear at a fixed address host ns2 #假设这台

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论