1. <var id="fe6gj"></var>

    <rp id="fe6gj"><nav id="fe6gj"></nav></rp>

    <noframes id="fe6gj"><cite id="fe6gj"></cite>

    <ins id="fe6gj"><button id="fe6gj"><p id="fe6gj"></p></button></ins>
    1. <tt id="fe6gj"><i id="fe6gj"><sub id="fe6gj"></sub></i></tt>
        始創于2000年 股票代碼:831685
        咨詢熱線:0371-60135900 注冊有禮 登錄
        • 掛牌上市企業
        • 60秒人工響應
        • 99.99%連通率
        • 7*24h人工
        • 故障100倍補償
        您的位置: 網站首頁 > 幫助中心>文章內容

        Linux系統下架設DHCP服務器的方法

        發布時間:  2012/8/11 11:24:17
          1、OS系統版本
         
        [root@server~]#more/etc/redhat-release
         
        RedHatEnterpriseLinuxASrelease4(NahantUpdate4)
         
        2、查看系統是否已經安裝DHCP服務端軟件
         
        [root@server~]#rpm-qa|grepdhcp
         
        dhcpv6_client-0.10-14_EL4
         
        3、將光盤mount上去,然后安裝DHCP服務端軟件
         
        [root@server~]#mount/media/cdrom
         
        mount:blockdevice/dev/hdciswrite-protected,mountingread-only
         
        [root@serverRPMS]#find/media/cdrom-name"dhcp*"
         
        /media/cdrom/RedHat/RPMS/dhcpv6-0.10-14_EL4.i386.rpm
         
        /media/cdrom/RedHat/RPMS/dhcpv6_client-0.10-14_EL4.i386.rpm
         
        /media/cdrom/RedHat/RPMS/dhcp-3.0.1-58.EL4.i386.rpm
         
        /media/cdrom/RedHat/RPMS/dhcp-devel-3.0.1-58.EL4.i386.rpm
         
        [root@serverRPMS]#rpm-ivh/media/cdrom/RedHat/RPMS/dhcp-3.0.1-58.EL4.i386.rpm
         
        [root@serverRPMS]#rpm-qa|grepdhcp
         
        dhcp-3.0.1-58.EL4
         
        dhcpv6_client-0.10-14_EL4
         
        到這兒已經安裝成功了,哈哈
         
        4、查看一下,都有那些文件
         
        [root@serverRPMS]#rpm-qlgrepdhcp
         
        ……
         
        /etc/dhcpd.conf——dhcp配置文件
         
        /etc/rc.d/init.d/dhcpd
         
        /etc/rc.d/init.d/dhcrelay
         
        /etc/sysconfig/dhcpd
         
        /etc/sysconfig/dhcrelay
         
        /usr/bin/omshell
         
        /usr/sbin/dhcpd
         
        /usr/sbin/dhcrelay
         
        /usr/share/doc/dhcp-3.0.1
         
        /usr/share/doc/dhcp-3.0.1/README
         
        /usr/share/doc/dhcp-3.0.1/RELNOTES
         
        /usr/share/doc/dhcp-3.0.1/dhcpd.conf.sample——dhcp配置文件的模板
         
        /usr/share/man/man1/omshell.1.gz
         
        /usr/share/man/man5/dhcp-eval.5.gz
         
        /usr/share/man/man5/dhcpd.conf.5.gz
         
        /usr/share/man/man5/dhcpd.leases.5.gz
         
        /usr/share/man/man8/dhcpd.8.gz
         
        /usr/share/man/man8/dhcrelay.8.gz
         
        /var/lib/dhcp
         
        /var/lib/dhcp/dhcpd.leases——分配IP的那個日志文件
         
        5、[root@serverRPMS]#more/etc/dhcpd.conf
         
        這兒有沒有什么東東的,還是把模板文件COPY過來吧
         
        [root@serverRPMS]#cp/usr/share/doc/dhcp-3.0.1/dhcpd.conf.sample/etc/dhcpd.conf
         
        6、查看配置文件,并根據自己的要求更改
         
        [root@serverRPMS]#more/etc/dhcpd.conf
         
        ddns-update-styleinterim;
         
        ignoreclient-updates;
         
        subnet192.168.0.0netmask255.255.255.0{
         
        #——defaultgateway
         
        optionrouters192.168.0.1;
         
        optionsubnet-mask255.255.255.0;
         
        #optionnis-domain"domain.org";
         
        optiondomain-name"wiscom.com.cn";
         
        optiondomain-name-servers219.141.136.10,211.147.6.3;
         
        optiontime-offset-18000;#EasternStandardTime
         
        #optionntp-servers192.168.1.1;
         
        #optionnetbios-name-servers192.168.1.1;
         
        #——Selectspoint-to-pointnode(defaultishybrid)。Don'tchangethisunless
         
        #——youunderstandNetbiosverywell
         
        #optionnetbios-node-type2;
         
        rangedynamic-bootp192.168.0.128192.168.0.254;
         
        default-lease-time21600;
         
        max-lease-time43200;
         
        #wewantthenameservertoappearatafixedaddress
         
        hostns{
         
        next-servermarvin.redhat.com;
         
        hardwareethernet12:34:56:78:AB:CD;
         
        fixed-address207.175.42.254;
         
        }
         
        }
         
        上面都已經很明了,該配置的都配置了
         
        7、啟動DHCP服務器啦
         
        [root@serverRPMS]#servicedhcpdstart
         
        Startingdhcpd:[OK]
         
        8、查看日志,看看是否有錯
         
        [root@serverRPMS]#tail-20/var/log/messages
         
        Dec918:05:19serverdhcpd:Wrote0deletedhostdeclstoleasesfile.
         
        Dec918:05:19serverdhcpd:Wrote0newdynamichostdeclstoleasesfile.
         
        Dec918:05:19serverdhcpd:Wrote0leasestoleasesfile.
         
        Dec918:05:19serverdhcpd:InternetSystemsConsortiumDHCPServerV3.0.1
         
        Dec918:05:19serverdhcpd:
         
        Dec918:05:19serverdhcpd:Copyright2004InternetSystemsConsortium.
         
        Dec918:05:19serverdhcpd:Allrightsreserved.
         
        Dec918:05:19serverdhcpd:Forinfo,pleasevisithttp://www.isc.org/sw/dhcp/
         
        Dec918:05:19serverdhcpd:Wrote0deletedhostdeclstoleasesfile.
         
        Dec918:05:19serverdhcpd:Wrote0newdynamichostdeclstoleasesfile.
         
        Dec918:05:19serverdhcpd:ListeningonLPF/eth0/00:0c:29:c5:06:fc/192.168.0/24
         
        Dec918:05:19serverdhcpd:Wrote0leasestoleasesfile.
         
        Dec918:05:19serverdhcpd:ListeningonLPF/eth0/00:0c:29:c5:06:fc/192.168.0/24
         
        Dec918:05:19serverdhcpd:SendingonLPF/eth0/00:0c:29:c5:06:fc/192.168.0/24
         
        Dec918:05:19serverdhcpd:SendingonLPF/eth0/00:0c:29:c5:06:fc/192.168.0/24
         
        Dec918:05:19serverdhcpd:
         
        Dec918:05:19serverdhcpd:SendingonSocket/fallback/fallback-net
         
        Dec918:05:19serverdhcpd:SendingonSocket/fallback/fallback-net
         
        Dec918:05:19serverdhcpd:
         
        Dec918:05:20serverdhcpd:dhcpdstartupsucceeded
        本文出自:億恩科技【www.endtimedelusion.com】

        服務器租用/服務器托管中國五強!虛擬主機域名注冊頂級提供商!15年品質保障!--億恩科技[ENKJ.COM]

      1. 您可能在找
      2. 億恩北京公司:
      3. 經營性ICP/ISP證:京B2-20150015
      4. 億恩鄭州公司:
      5. 經營性ICP/ISP/IDC證:豫B1.B2-20060070
      6. 億恩南昌公司:
      7. 經營性ICP/ISP證:贛B2-20080012
      8. 服務器/云主機 24小時售后服務電話:0371-60135900
      9. 虛擬主機/智能建站 24小時售后服務電話:0371-60135900
      10. 專注服務器托管17年
        掃掃關注-微信公眾號
        0371-60135900
        Copyright© 1999-2019 ENKJ All Rights Reserved 億恩科技 版權所有  地址:鄭州市高新區翠竹街1號總部企業基地億恩大廈  法律顧問:河南亞太人律師事務所郝建鋒、杜慧月律師   京公網安備41019702002023號
          0
         
         
         
         

        0371-60135900
        7*24小時客服服務熱線

         
         
        av不卡不卡在线观看_最近2018年中文字幕_亚洲欧美一区二区三区_一级A爱做片免费观看国产_日韩在线中文天天更新_伊人中文无码在线