欢迎来到天天文库
浏览记录
ID:55737278
大小:58.50 KB
页数:6页
时间:2020-06-03
《周见资料fedora8配置单个作用域和多个作用域的DHCP服务.doc》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、fedora8配置单个作用域和多个作用域的DHCP服务一、单个作用域假设dhcp服务器地址在192.168.0网段,网关:192.168.0.1,dns:202.100.64.68本人水平有限,请高手指点----------------------------------------------------------------------------------#先查看dhcp的安装情况,貌似Fedora8里没有dhcp安装包,请自行下载或yum[root@localhost~]#rpm-qa
2、grep dhcplibdhcp6client-0.1
3、0-51.fc8libdhcp-1.27-3.fc8dhcpv6-client-0.10-51.fc8libdhcp4client-3.0.6-10.fc8dhcp-3.0.6-10.fc8#先查看一下dhcp的主配文件,需要咱们自己来写,这样很麻烦,我们可以从主配文件中 看到有sample的位置,用sample吧,很方便。[root@localhost~]#cd/etc[root@localhostetc]#more dhcpd.conf---------------------------------------------------------
4、-------------------------## dhcp ServerConfigurationfile.# see/usr/share/doc/dhcp*/dhcpd.conf.sample#----------------------------------------------------------------------------------[root@localhostetc]#cd/usr/share/doc[root@localhostdoc]#ls*dhcp*dhcp-3.0.6:api+protocol
5、 __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.
6、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下,[root@localhos
7、tdoc]#cp-p/usr/share/doc/dhcp-3.0.6/dhcpd.conf.sample/etc[root@localhostdoc]#cd/etc[root@localhostetc]#ls*dhcp*dhcpd.conf dhcpd.conf.sample#把原来那个主配文件改名,因为咱们是直接在sample里改配置,然后改成主配文件名字[root@localhostetc]#mv dhcpd.conf dhcpd.conf.bak[root@localhostetc]#vi dhcpd.conf.sample---------
8、---------------------------------------------------------------------#这是没改动过的ddns-update-styleinterim;ignoreclient-updates;subnet192.168.0.0netmask255.255.255.0{#---defaultgateway optionrouters 192.168.0.1; optionsubnet-mask 255.255.255.0;
9、 optionnis-domain "domain.or
此文档下载收益归作者所有