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

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

Chinaunix

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

關(guān)于DHCP的幾個(gè)不是問(wèn)題的問(wèn)題 [復(fù)制鏈接]

論壇徽章:
0
跳轉(zhuǎn)到指定樓層
1 [收藏(0)] [報(bào)告]
發(fā)表于 2009-05-12 19:39 |只看該作者 |倒序?yàn)g覽
1、tail -f /var/log/messages

May 12 11:12:41 fsd dhcpd: if Myser.xxx.com IN A rrset doesn't exist add my.xxx.com 300 IN A 192.168.0.217: timed out.
不知道以上信息什么意思?

2、tail -f /var/db/dhcpd/dhcpd.leases

lease 192.168.0.235 {
  starts 2 2009/05/12 11:39:06;
  ends 2 2009/05/12 11:49:06;
  binding state active;
  next binding state free;
  hardware ethernet 00:02:55:d6:ba:6d;
  uid "\001RAS \000\002U\326\272\215\000\000\007\000\000\000";
  client-hostname "Myser";
}
lease 192.168.0.240 {
  starts 2 2009/05/12 11:39:34;
  ends 2 2009/05/12 11:49:34;
  binding state active;
  next binding state free;
  hardware ethernet 00:02:55:d6:ba:6d;
  uid "\001RAS \000\002U\326\272\215\000\000\000\000\000\000";
  client-hostname "Myser";
}
lease 192.168.0.220 {
  starts 2 2009/05/12 11:39:34;
  ends 2 2009/05/12 11:49:34;
  binding state active;
  next binding state free;
  hardware ethernet 00:02:55:d6:ba:6d;
  uid "\001RAS \000\002U\326\272\215\000\000\011\000\000\000";
  client-hostname "Myser";

以上 client-hostname "Myser" 對(duì)應(yīng)的主機(jī)是設(shè)置了固定IP的機(jī)器。難道DHCP也要給固定IP機(jī)器預(yù)留一個(gè)動(dòng)態(tài)IP?為什么還會(huì)不斷的變化IP?

3、今天修改了dhcpd.conf的以下兩個(gè)租期參數(shù),重啟dhcpd后不斷有同事打電話說(shuō)分不到IP地址,怎么會(huì)呢?
default-lease-time 10800; (3小時(shí))  
max-lease-time 28800;(8小時(shí))

[ 本帖最后由 dylibin 于 2009-5-13 10:33 編輯 ]

論壇徽章:
5
IT運(yùn)維版塊每日發(fā)帖之星
日期:2015-08-06 06:20:00IT運(yùn)維版塊每日發(fā)帖之星
日期:2015-08-10 06:20:00IT運(yùn)維版塊每日發(fā)帖之星
日期:2015-08-23 06:20:00IT運(yùn)維版塊每日發(fā)帖之星
日期:2015-08-24 06:20:00IT運(yùn)維版塊每日發(fā)帖之星
日期:2015-11-12 06:20:00
2 [報(bào)告]
發(fā)表于 2009-05-12 20:11 |只看該作者
第一個(gè)是DDNS的,可以忽略他。
第二個(gè)問(wèn)題,你帖配置吧。
第三個(gè)你明天再觀察一下
先逐個(gè)解決。

論壇徽章:
0
3 [報(bào)告]
發(fā)表于 2009-05-13 08:49 |只看該作者
這么說(shuō)第二個(gè)問(wèn)題的確是個(gè)問(wèn)題。配置怎么可能會(huì)有問(wèn)題?我是利用一臺(tái)dhcpServer通過(guò)dhcp中繼為多Vlan提供IP的,其中192.168.0.0段的配置如下。Myser本機(jī)設(shè)置為固定IP192.168.0.5。

shared-network Vlan-0 {
  subnet 192.168.0.0 netmask 255.255.255.0 {
    option routers 192.168.0.254;
    range 192.168.0.200 192.168.0.249;
  }
}

論壇徽章:
5
IT運(yùn)維版塊每日發(fā)帖之星
日期:2015-08-06 06:20:00IT運(yùn)維版塊每日發(fā)帖之星
日期:2015-08-10 06:20:00IT運(yùn)維版塊每日發(fā)帖之星
日期:2015-08-23 06:20:00IT運(yùn)維版塊每日發(fā)帖之星
日期:2015-08-24 06:20:00IT運(yùn)維版塊每日發(fā)帖之星
日期:2015-11-12 06:20:00
4 [報(bào)告]
發(fā)表于 2009-05-13 09:09 |只看該作者
1、你清除那個(gè)DHCP租約再重新統(tǒng)計(jì)一次,結(jié)果貼上來(lái)。
2、DHCPD的配置貼上來(lái)。

論壇徽章:
0
5 [報(bào)告]
發(fā)表于 2009-05-13 10:32 |只看該作者
# dhcpd.conf
#
# Sample configuration file for ISC dhcpd
#

# option definitions common to all supported networks...
option domain-name "domain.com";
option domain-name-servers 192.168.0.1;

default-lease-time 3600;
max-lease-time 10800;

# If this DHCP server is the official DHCP server for the local
# network, the authoritative directive should be uncommented.
#authoritative;

# ad-hoc DNS update scheme - set to "none" to disable dynamic DNS updates.
ddns-update-style ad-hoc;

# Use this to send dhcp log messages to a different log file (you also
# have to hack syslog.conf to complete the redirection).
log-facility local7;

# No service will be given on this subnet, but declaring it helps the
# DHCP server to understand the network topology.

shared-network Vlan-0 {
  subnet 192.168.0.0 netmask 255.255.255.0 {
    option routers 192.168.0.1;
    range 192.168.0.200 192.168.0.249;
  }
}
shared-network Vlan-1 {
  subnet 192.168.1.0 netmask 255.255.255.0 {
    option routers 192.168.1.1;
    range 192.168.1.101 192.168.1.249;
  }
}
shared-network Vlan-2 {
  subnet 192.168.2.0 netmask 255.255.255.0 {
    option routers 192.168.2.1;
    range 192.168.2.101 192.168.2.249;
  }
}
shared-network Vlan-3 {
  subnet 192.168.3.0 netmask 255.255.255.0 {
    option routers 192.168.3.1;
    range 192.168.3.101 192.168.3.249;
  }
}


echo "">/var/db/dhcpd/dhcpd.leases


tail -f /var/db/dhcpd/dhcpd.leases

lease 192.168.0.240 {
  starts 3 2009/05/13 02:13:03;
  ends 3 2009/05/13 03:13:03;
  binding state active;
  next binding state free;
  hardware ethernet 00:e0:4c:39:02:db;
  uid "\001RAS \000\340L9\002\333\000\000\007\000\000\000";
  client-hostname "s-k12";
}
lease 192.168.0.239 {
  starts 3 2009/05/13 02:13:03;
  ends 3 2009/05/13 03:13:03;
  binding state active;
  next binding state free;
  hardware ethernet 00:02:55:d6:ba:6d;
  uid "\001RAS \000\002U\326\272\215\000\000\000\000\000\000";
  client-hostname "Myser";
}
lease 192.168.1.249 {
  starts 3 2009/05/13 02:13:06;
  ends 3 2009/05/13 03:13:06;
  binding state active;
  next binding state free;
  hardware ethernet 00:23:4e:db:a6:8b;
  uid "\001\000#N\333\246\213";
  client-hostname "Lenovo-PC";
}
lease 192.168.0.238 {
  starts 3 2009/05/13 02:13:07;
  ends 3 2009/05/13 03:13:07;
  binding state active;
  next binding state free;
  hardware ethernet 00:e0:4c:39:02:db;
  uid "\001RAS \000\340L9\002\333\000\000\006\000\000\000";
  client-hostname "s-k12";
}
lease 192.168.2.243 {
  starts 3 2009/05/13 02:13:09;
  ends 3 2009/05/13 03:13:09;
  binding state active;
  next binding state free;
  hardware ethernet 00:21:00:b9:db:87;
  uid "\001\000!\000\271\333\207";
  client-hostname "cic";
}
lease 192.168.0.237 {
  starts 3 2009/05/13 02:13:12;
  ends 3 2009/05/13 03:13:12;
  binding state active;
  next binding state free;
  hardware ethernet 00:02:55:d6:ba:6d;
  uid "\001RAS \000\002U\326\272\215\000\000\006\000\000\000";
  client-hostname "Myser";
}
lease 192.168.2.109 {
  starts 3 2009/05/13 02:13:12;
  ends 3 2009/05/13 03:13:12;
  binding state active;
  next binding state free;
  hardware ethernet 00:11:5b:53:5c:fa;
  uid "\001\000\021[S\\\372";
  client-hostname "PC-20090108FWCW";
}
lease 192.168.2.142 {
  starts 3 2009/05/13 02:13:12;
  ends 3 2009/05/13 03:13:12;
  binding state active;
  next binding state free;
  hardware ethernet 00:11:5b:d7:5e:97;
  uid "\001\000\021[\327^\227";
  client-hostname "WWW-CF8FB9A3E5E";
}
lease 192.168.0.236 {
  starts 3 2009/05/13 02:13:15;
  ends 3 2009/05/13 03:13:15;
  binding state active;
  next binding state free;
  hardware ethernet 00:e0:4c:39:02:db;
  uid "\001RAS \000\340L9\002\333\000\000\001\000\000\000";
  client-hostname "s-k12";
}
lease 192.168.0.235 {
  starts 3 2009/05/13 02:13:17;
  ends 3 2009/05/13 03:13:17;
  binding state active;
  next binding state free;
  hardware ethernet 00:e0:4c:39:02:db;
  uid "\001RAS \000\340L9\002\333\000\000\002\000\000\000";
  client-hostname "s-k12";
}
lease 192.168.2.115 {
  starts 3 2009/05/13 02:13:19;
  ends 3 2009/05/13 03:13:19;
  binding state active;
  next binding state free;
  hardware ethernet 00:21:00:c3:a1:9f;
  uid "\001\000!\000\303\241\237";
  client-hostname "Lenovo-PC";
}
lease 192.168.0.234 {
  starts 3 2009/05/13 02:13:21;
  ends 3 2009/05/13 03:13:21;
  binding state active;
  next binding state free;
  hardware ethernet 00:e0:4c:39:02:db;
  uid "\001RAS \000\340L9\002\333\000\000\010\000\000\000";
  client-hostname "s-k12";
}

注:主機(jī)s-k12和Myser都是網(wǎng)內(nèi)固定IP的機(jī)器。

[ 本帖最后由 dylibin 于 2009-5-13 10:34 編輯 ]

論壇徽章:
0
6 [報(bào)告]
發(fā)表于 2009-05-13 10:48 |只看該作者
是這樣的:
1、沒(méi)看到配置中有保留IP配置項(xiàng)
2、試一下在每個(gè)shared-network中加入192.168.0.x網(wǎng)段,但地址范圍不要沖突。因?yàn)槟愕姆⻊?wù)器的地址時(shí)192.168.0.1的。

論壇徽章:
0
7 [報(bào)告]
發(fā)表于 2009-05-13 11:27 |只看該作者
原帖由 helon 于 2009-5-13 10:48 發(fā)表
是這樣的:
1、沒(méi)看到配置中有保留IP配置項(xiàng)
2、試一下在每個(gè)shared-network中加入192.168.0.x網(wǎng)段,但地址范圍不要沖突。因?yàn)槟愕姆⻊?wù)器的地址時(shí)192.168.0.1的。

配置中是沒(méi)有保留項(xiàng),因?yàn)槊總(gè)網(wǎng)段分配的地址范圍都有保留,固定IP的機(jī)器不可能與動(dòng)態(tài)IP有沖突。
不明白“在每個(gè)shared-network中加入192.168.0.x網(wǎng)段”是什么意思。

論壇徽章:
0
8 [報(bào)告]
發(fā)表于 2009-05-13 11:35 |只看該作者
starts 3 2009/05/13 02:13:03;
ends 3 2009/05/13 03:13:03;
02:13:03是2點(diǎn)13分03秒嗎?為什么不是分配地址的時(shí)間,現(xiàn)在明明是上午,我的機(jī)器的系統(tǒng)時(shí)間沒(méi)有問(wèn)題呀。這個(gè)2點(diǎn)是凌晨2點(diǎn)嗎?一直都沒(méi)仔細(xì)觀察過(guò),原來(lái)不明白的地方還蠻多。

[ 本帖最后由 dylibin 于 2009-5-13 11:37 編輯 ]

論壇徽章:
5
IT運(yùn)維版塊每日發(fā)帖之星
日期:2015-08-06 06:20:00IT運(yùn)維版塊每日發(fā)帖之星
日期:2015-08-10 06:20:00IT運(yùn)維版塊每日發(fā)帖之星
日期:2015-08-23 06:20:00IT運(yùn)維版塊每日發(fā)帖之星
日期:2015-08-24 06:20:00IT運(yùn)維版塊每日發(fā)帖之星
日期:2015-11-12 06:20:00
9 [報(bào)告]
發(fā)表于 2009-05-13 12:38 |只看該作者
lease 192.168.0.240 {
  starts 3 2009/05/13 02:13:03;
  ends 3 2009/05/13 03:13:03;
  binding state active;
  next binding state free;
  hardware ethernet 00:e0:4c:39:02:db;
  uid "\001RAS \000\340L9\002\333\000\000\007\000\000\000";
  client-hostname "s-k12";
}
lease 192.168.0.239 {
  starts 3 2009/05/13 02:13:03;
  ends 3 2009/05/13 03:13:03;
  binding state active;
  next binding state free;
  hardware ethernet 00:02:55:d6:ba:6d;
  uid "\001RAS \000\002U\326\272\215\000\000\000\000\000\000";
  client-hostname "Myser";
}


你核對(duì)一下機(jī)器的MAC地址是不是和真是的機(jī)器是一致的,我咋懷疑有重名的機(jī)器呢。
另外機(jī)器時(shí)間最好調(diào)正確,不過(guò)這個(gè)和DHCP沒(méi)關(guān)系的,僅影響到日志。

論壇徽章:
0
10 [報(bào)告]
發(fā)表于 2009-05-13 15:04 |只看該作者
你核對(duì)一下機(jī)器的MAC地址是不是和真是的機(jī)器是一致的,我咋懷疑有重名的機(jī)器呢。
另外機(jī)器時(shí)間最好調(diào)正確,不過(guò)這個(gè)和DHCP沒(méi)關(guān)系的,僅影響到日志。

s-k12和Myser兩臺(tái)機(jī)器的MAC和對(duì)應(yīng)的機(jī)器是一致的.我注意到lenovo-pc是有重名的現(xiàn)象,那是因?yàn)橛幸慌娔X是經(jīng)銷商安裝的系統(tǒng)。我搞不清楚的就是,為什么指定IP的機(jī)器,DHCP也要分配租期,而且好像是這個(gè)IP還不斷的變化。
另外機(jī)器的時(shí)間是正常的,都定期ntpdate,不存在不正確的問(wèn)題。
Web# date
Wed May 13 15:08:37 CST 2009

[ 本帖最后由 dylibin 于 2009-5-13 15:08 編輯 ]
您需要登錄后才可以回帖 登錄 | 注冊(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ū)
中國(guó)互聯(lián)網(wǎng)協(xié)會(huì)會(huì)員  聯(lián)系我們:huangweiwei@itpub.net
感謝所有關(guān)心和支持過(guò)ChinaUnix的朋友們 轉(zhuǎn)載本站內(nèi)容請(qǐng)注明原作者名及出處

清除 Cookies - ChinaUnix - Archiver - WAP - TOP