亚洲av成人无遮挡网站在线观看,少妇性bbb搡bbb爽爽爽,亚洲av日韩精品久久久久久,兔费看少妇性l交大片免费,无码少妇一区二区三区

  免費(fèi)注冊(cè) 查看新帖 |

Chinaunix

  平臺(tái) 論壇 博客 文庫
123下一頁
最近訪問板塊 發(fā)新帖
查看: 5895 | 回復(fù): 23
打印 上一主題 下一主題

[服務(wù)應(yīng)用] DHCP服務(wù)器搭建遇到的問題,求幫忙 [復(fù)制鏈接]

論壇徽章:
0
跳轉(zhuǎn)到指定樓層
1 [收藏(0)] [報(bào)告]
發(fā)表于 2013-05-08 17:21 |只看該作者 |倒序?yàn)g覽
我的Linux系統(tǒng)是基于虛擬機(jī)創(chuàng)建的,在搭建DHCP服務(wù)器過程中遇到以下問題
1、在修改/etc/dhcpd.conf文件時(shí),subnet XXXXXXXXXXXX 其中XXXXXXXXXXXX應(yīng)該填寫什么。虛擬機(jī)網(wǎng)絡(luò)IP地址為192.168.44.128,WIN7本地連接IP地址為192.168.9.100
2、進(jìn)行cp /usr/share/doc/dhcp-4.2.4/dhcpd.conf.sample /etc/dhcpd.conf ,其中dhcpd.conf文件中的內(nèi)容應(yīng)該怎樣修改啊,我的文件內(nèi)容如下,請(qǐng)問應(yīng)該怎樣進(jìn)行修改。
1 # dhcpd.conf
      2 #
      3 # Sample configuration file for ISC dhcpd
      4 #
      5
      6 # option definitions common to all supported networks...
      7 option domain-name "example.org";
      8 option domain-name-servers ns1.example.org, ns2.example.org;
      9
     10 default-lease-time 600;
     11 max-lease-time 7200;
     12
     13 # Use this to enble / disable dynamic dns updates globally.
     14 #ddns-update-style none;
     15
     16 # If this DHCP server is the official DHCP server for the local
     17 # network, the authoritative directive should be uncommented.
     18 #authoritative;
     19
     20 # Use this to send dhcp log messages to a different log file (you also
     21 # have to hack syslog.conf to complete the redirection).
     22 log-facility local7;
     23
     24 # No service will be given on this subnet, but declaring it helps the
     25 # DHCP server to understand the network topology.
     26
     27 subnet 10.152.187.0 netmask 255.255.255.0 {
     28 }
     29
     30 # This is a very basic subnet declaration.
     31
     32 subnet 10.254.239.0 netmask 255.255.255.224 {
     33   range 10.254.239.10 10.254.239.20;
     34   option routers rtr-239-0-1.example.org, rtr-239-0-2.example.org;
     35 }
     36
     37 # This declaration allows BOOTP clients to get dynamic addresses,
     38 # which we don't really recommend.
     39
     40 subnet 10.254.239.32 netmask 255.255.255.224 {
     41   range dynamic-bootp 10.254.239.40 10.254.239.60;
     42   option broadcast-address 10.254.239.31;
     43   option routers rtr-239-32-1.example.org;
     44 }
      45
     46 # A slightly different configuration for an internal subnet.
     47 subnet 10.5.5.0 netmask 255.255.255.224 {
     48   range 10.5.5.26 10.5.5.30;
     49   option domain-name-servers ns1.internal.example.org;
     50   option domain-name "internal.example.org";
     51   option routers 10.5.5.1;
     52   option broadcast-address 10.5.5.31;
     53   default-lease-time 600;
     54   max-lease-time 7200;
     55 }
     56
     57 # Hosts which require special configuration options can be listed in
     58 # host statements.   If no address is specified, the address will be
     59 # allocated dynamically (if possible), but the host-specific information
     60 # will still come from the host declaration.
     61
     62 host passacaglia {
     63   hardware ethernet 0:0:c0:5d:bd:95;
     64   filename "vmunix.passacaglia";
     65   server-name "toccata.fugue.com";
     66 }
     67
     68 # Fixed IP addresses can also be specified for hosts.   These addresses
     69 # should not also be listed as being available for dynamic assignment.
     70 # Hosts for which fixed IP addresses have been specified can boot using
     71 # BOOTP or DHCP.   Hosts for which no fixed address is specified can onl        y
     72 # be booted with DHCP, unless there is an address range on the subnet
     73 # to which a BOOTP client is connected which has the dynamic-bootp flag
     74 # set.
     75 host fantasia {
     76   hardware ethernet 08:00:07:26:c0:a5;
     77   fixed-address fantasia.fugue.com;
     78 }
     79
     80 # You can declare a class of clients and then do address allocation
     81 # based on that.   The example below shows a case where all clients
     82 # in a certain class get addresses on the 10.17.224/24 subnet, and all
     83 # other clients get addresses on the 10.0.29/24 subnet.
     84
     85 class "foo" {
     86   match if substring (option vendor-class-identifier, 0, 4) = "SUNW";
     87 }
     88
     89 shared-network 224-29 {
     90   subnet 10.17.224.0 netmask 255.255.255.0 {
     91     option routers rtr-224.example.org;
     92   }
     93   subnet 10.0.29.0 netmask 255.255.255.0 {
     94     option routers rtr-29.example.org;
     95   }
     96   pool {
     97     allow members of "foo";
     98     range 10.17.224.10 10.17.224.250;
     99   }
    100   pool {
    101     deny members of "foo";
    102     range 10.0.29.10 10.0.29.230;
    103   }
    104 }
3、在終端輸入service dhcpd start時(shí),提示Redirecting to /bin/systemctl  start dhcpd.service 請(qǐng)問是什么意思啊,怎么解決呢?

論壇徽章:
381
CU十二周年紀(jì)念徽章
日期:2014-01-04 22:46:58CU大牛徽章
日期:2013-03-13 15:32:35CU大;照
日期:2013-03-13 15:38:15CU大;照
日期:2013-03-13 15:38:52CU大;照
日期:2013-03-14 14:08:55CU大;照
日期:2013-04-17 11:17:19CU大;照
日期:2013-04-17 11:17:32CU大;照
日期:2013-04-17 11:17:37CU大;照
日期:2013-04-17 11:17:42CU大;照
日期:2013-04-17 11:17:47CU大;照
日期:2013-04-17 11:17:52CU大牛徽章
日期:2013-04-17 11:17:56
2 [報(bào)告]
發(fā)表于 2013-05-08 18:00 |只看該作者
subnet XXXXXXXXXXXX 其中XXXXXXXXXXXX應(yīng)該填寫什么--->寫上虛擬機(jī)網(wǎng)絡(luò)192.168.44.0

3、在終端輸入service dhcpd start時(shí),提示Redirecting to /bin/systemctl猀琀愀爀琀 dhcpd.service 請(qǐng)問是什么意思啊,怎么解決呢?

你用的是fedora吧,那個(gè)是正常的,fedora新版本用systemd取代了以前的init.d

論壇徽章:
0
3 [報(bào)告]
發(fā)表于 2013-05-10 08:28 |只看該作者
用的是fedora 17版的,但是運(yùn)行service dhcpd start時(shí),DHCP服務(wù)器并沒有成功啟動(dòng)。

論壇徽章:
381
CU十二周年紀(jì)念徽章
日期:2014-01-04 22:46:58CU大牛徽章
日期:2013-03-13 15:32:35CU大;照
日期:2013-03-13 15:38:15CU大牛徽章
日期:2013-03-13 15:38:52CU大牛徽章
日期:2013-03-14 14:08:55CU大;照
日期:2013-04-17 11:17:19CU大牛徽章
日期:2013-04-17 11:17:32CU大;照
日期:2013-04-17 11:17:37CU大;照
日期:2013-04-17 11:17:42CU大;照
日期:2013-04-17 11:17:47CU大;照
日期:2013-04-17 11:17:52CU大;照
日期:2013-04-17 11:17:56
4 [報(bào)告]
發(fā)表于 2013-05-10 08:29 |只看該作者
報(bào)錯(cuò)信息是啥

論壇徽章:
0
5 [報(bào)告]
發(fā)表于 2013-05-10 08:44 |只看該作者
就是Redirecting to /bin/systemctl  start dhcpd.service

論壇徽章:
0
6 [報(bào)告]
發(fā)表于 2013-05-10 08:46 |只看該作者
幫忙看看配置文件該怎么修改啊,這么多內(nèi)容,都不知道該改哪兒,什么該刪什么該改?

論壇徽章:
381
CU十二周年紀(jì)念徽章
日期:2014-01-04 22:46:58CU大;照
日期:2013-03-13 15:32:35CU大;照
日期:2013-03-13 15:38:15CU大;照
日期:2013-03-13 15:38:52CU大牛徽章
日期:2013-03-14 14:08:55CU大牛徽章
日期:2013-04-17 11:17:19CU大牛徽章
日期:2013-04-17 11:17:32CU大;照
日期:2013-04-17 11:17:37CU大;照
日期:2013-04-17 11:17:42CU大;照
日期:2013-04-17 11:17:47CU大;照
日期:2013-04-17 11:17:52CU大;照
日期:2013-04-17 11:17:56
7 [報(bào)告]
發(fā)表于 2013-05-10 09:10 |只看該作者
本帖最后由 chenyx 于 2013-05-10 09:12 編輯

27行以后的都可以刪除,然后添加你自己的subnet
照著32~35行的內(nèi)容添加
  1. subnet 192.168.44.0 netmask 255.255.255.0 {
  2.         range 192.168.44.10 192.168.44.20;
  3.        option routers 192.168.44.2;
  4.        option domain-name-servers 192.168.42.1;
  5.       }
復(fù)制代碼

論壇徽章:
381
CU十二周年紀(jì)念徽章
日期:2014-01-04 22:46:58CU大;照
日期:2013-03-13 15:32:35CU大;照
日期:2013-03-13 15:38:15CU大;照
日期:2013-03-13 15:38:52CU大牛徽章
日期:2013-03-14 14:08:55CU大牛徽章
日期:2013-04-17 11:17:19CU大;照
日期:2013-04-17 11:17:32CU大;照
日期:2013-04-17 11:17:37CU大;照
日期:2013-04-17 11:17:42CU大;照
日期:2013-04-17 11:17:47CU大;照
日期:2013-04-17 11:17:52CU大;照
日期:2013-04-17 11:17:56
8 [報(bào)告]
發(fā)表于 2013-05-10 09:12 |只看該作者
range后面是你想分配的ip范圍
routers指定的是dhcp客戶端獲取到的網(wǎng)關(guān)的ip
domain-name-servers客戶端獲取的dns的地址

論壇徽章:
0
9 [報(bào)告]
發(fā)表于 2013-05-10 09:39 |只看該作者
謝謝
1、查看端口的啟用情況
#netstat -tlunp
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name   
tcp        0      0 127.0.0.1:631           0.0.0.0:*               LISTEN      1104/cupsd         
tcp        0      0 127.0.0.1:25            0.0.0.0:*               LISTEN      1175/sendmail: acce
tcp6       0      0 :::631                  :::*                    LISTEN      1/systemd           
udp        0      0 0.0.0.0:631             0.0.0.0:*                           1/systemd           
udp        0      0 0.0.0.0:60642           0.0.0.0:*                           515/avahi-daemon: r
udp        0      0 0.0.0.0:5353            0.0.0.0:*                           515/avahi-daemon: r
udp        0      0 0.0.0.0:9516            0.0.0.0:*                           642/dhclient        
udp        0      0 0.0.0.0:68              0.0.0.0:*                           642/dhclient        
udp6       0      0 :::9011                 :::*                                642/dhclient        
端口打開了,但是在查看日志文件的時(shí)候,卻顯示
May 10 09:26:39 ZXL dhcpd:
May 10 09:26:39 ZXL dhcpd: exiting.
May 10 09:28:50 ZXL dhcpd: Internet Systems Consortium DHCP Server 4.2.4-P2
May 10 09:28:50 ZXL dhcpd: Copyright 2004-2012 Internet Systems Consortium.
May 10 09:28:50 ZXL dhcpd: All rights reserved.
May 10 09:28:50 ZXL dhcpd: For info, please visit https://www.isc.org/software/dhcp/
May 10 09:28:50 ZXL dhcpd: Not searching LDAP since ldap-server, ldap-port and ldap-base-dn were not specified in the config file
May 10 09:28:50 ZXL dhcpd: Wrote 0 leases to leases file.
May 10 09:28:50 ZXL dhcpd:
May 10 09:28:50 ZXL dhcpd: No subnet declaration for start (no IPv4 addresses).
May 10 09:28:50 ZXL dhcpd: ** Ignoring requests on start.  If this is not what
May 10 09:28:50 ZXL dhcpd:    you want, please write a subnet declaration
May 10 09:28:50 ZXL dhcpd:    in your dhcpd.conf file for the network segment
May 10 09:28:50 ZXL dhcpd:    to which interface start is attached. **
May 10 09:28:50 ZXL dhcpd:
May 10 09:28:50 ZXL dhcpd:
May 10 09:28:50 ZXL dhcpd: Not configured to listen on any interfaces!
May 10 09:28:50 ZXL dhcpd:
May 10 09:28:50 ZXL dhcpd: This version of ISC DHCP is based on the release available
May 10 09:28:50 ZXL dhcpd: on ftp.isc.org.  Features have been added and other changes
May 10 09:28:50 ZXL dhcpd: have been made to the base software release in order to make
May 10 09:28:50 ZXL dhcpd: it work better with this distribution.
May 10 09:28:50 ZXL dhcpd:
May 10 09:28:50 ZXL dhcpd: Please report for this software via the Red Hat Bugzilla site:
May 10 09:28:50 ZXL dhcpd:     http://bugzilla.redhat.com
May 10 09:28:50 ZXL dhcpd:
May 10 09:28:50 ZXL dhcpd: exiting.
May 10 09:34:13 ZXL dhclient[642]: DHCPREQUEST on eth0 to 192.168.44.254 port 67 (xid=0x5bb23820)
May 10 09:34:13 ZXL dhclient[642]: DHCPACK from 192.168.44.254 (xid=0x5bb23820)
May 10 09:34:13 ZXL dhclient[642]: bound to 192.168.44.128 -- renewal in 888 seconds.
好像是退出了DHCP服務(wù)器是嗎?

論壇徽章:
16
IT運(yùn)維版塊每日發(fā)帖之星
日期:2015-10-02 06:20:00IT運(yùn)維版塊每月發(fā)帖之星
日期:2015-09-11 19:30:52IT運(yùn)維版塊每周發(fā)帖之星
日期:2015-09-11 19:20:31IT運(yùn)維版塊每日發(fā)帖之星
日期:2015-08-26 06:20:00每日論壇發(fā)貼之星
日期:2015-08-20 06:20:00IT運(yùn)維版塊每日發(fā)帖之星
日期:2015-08-20 06:20:002015年辭舊歲徽章
日期:2015-03-03 16:54:15金牛座
日期:2014-05-04 16:58:09雙子座
日期:2013-12-17 16:44:37辰龍
日期:2013-11-22 15:20:59獅子座
日期:2013-11-18 22:55:08射手座
日期:2013-11-12 10:54:26
10 [報(bào)告]
發(fā)表于 2013-05-10 09:54 |只看該作者
配置還有問題。
您需要登錄后才可以回帖 登錄 | 注冊(cè)

本版積分規(guī)則 發(fā)表回復(fù)

  

北京盛拓優(yōu)訊信息技術(shù)有限公司. 版權(quán)所有 京ICP備16024965號(hào)-6 北京市公安局海淀分局網(wǎng)監(jiān)中心備案編號(hào):11010802020122 niuxiaotong@pcpop.com 17352615567
未成年舉報(bào)專區(qū)
中國互聯(lián)網(wǎng)協(xié)會(huì)會(huì)員  聯(lián)系我們:huangweiwei@itpub.net
感謝所有關(guān)心和支持過ChinaUnix的朋友們 轉(zhuǎn)載本站內(nèi)容請(qǐng)注明原作者名及出處

清除 Cookies - ChinaUnix - Archiver - WAP - TOP