DHCP分配地址时的顺序问题[2]

[入库:2005年9月19日] [更新:2007年3月24日]

本文简介:

不过分配IP不是在DHCPDISCOVER 阶段,你可以认真通读整个RFC文档,我记得应该是这样的

 platinum 回复于:2004-07-25 22:30:26 只是个讨论,网中人何必计较那么多,simtiger也是好意
网兄,呵呵,你的脾气好像和以前比变化很大哦~

 gentoo 回复于:2004-07-26 08:30:04 同意“网”的看法,很想知道依据。学问不要含糊,对事不对人。

 simtiger 回复于:2004-07-26 13:42:59 Well,中午查了查RFC2131,上面写得很清楚嘛
2.2 Dynamic allocation of network addresses
...
As a consistency check, the allocating
server SHOULD probe the reused address before allocating the address,
e.g., with an ICMP echo request, and the client SHOULD probe the
newly received address, e.g., with ARP.
...

3.1 Client-server interaction - allocating a network address
...
When allocating a new address,
servers SHOULD check that the offered network address is not
already in use; e.g., the server may probe the offered address
with an ICMP Echo Request.
...

The client SHOULD perform a final check on the
parameters (e.g., ARP for allocated network address), and notes the
duration of the lease specified in the DHCPACK message. At this
point, the client is configured. If the client detects that the
address is already in use (e.g., through the use of ARP), the
client MUST send a DHCPDECLINE message to the server and restarts
the configuration process.
...

认认真真读文档是必要的...

 q1208c 回复于:2004-07-26 14:43:29 按照楼上兄弟的意思,dhcp 和静态地址是不会冲突的了。可为什么在实际中会有是冲突呢?

 simtiger 回复于:2004-07-26 15:46:16 实际情况很复杂的

呵呵,我所说的只是RFC建议上的...

 simtiger 回复于:2004-07-26 15:47:12 当然还要考虑DHCP Server/Client是否完全符合RFC建议

 網中人 回复于:2004-07-27 02:08:54 [quote:20eef2a3a1="platinum"]只是个讨论,网中人何必计较那么多,simtiger也是好意
网兄,呵呵,你的脾气好像和以前比变化很大哦~[/quote:20eef2a3a1]
多謝版主!
不知小弟的脾氣是變好了還是變壞了呢?  ^_^

做學問, 就是要一絲不苟, 不懂就虛心請問.
小弟毫無挑戰權威之意, 只是覺得不解, 特來請教.
若引起誤會, 那我先賠個不是!

至於實作上與 RFC 的出入, 等我有空用 sniffer 來抓抓 isc dhcpd 與 windows client 的封包,
再回來跟大家報告...  ^_^

 網中人 回复于:2004-07-27 02:34:48 此外, 推薦一個不錯的 RFC 閱讀站台:
http://www.rfc-archive.org

與 DHCP 相關的 RFC 大概有:
RFC-951﹑RFC-1084﹑RFC-1123﹑RFC-1533﹑RFC-1534﹑RFC-1497﹑RFC-1541﹑RFC-2131﹑RFC-2132

前面提到的兩篇如下:
http://www.rfc-archive.org/getrfc.php?rfc=2131
http://www.rfc-archive.org/getrfc.php?rfc=2132

 網中人 回复于:2004-07-27 02:40:18 找到了: 在 RFC-2131 之 2.2 section (Page 11)
 最後一段:
[code:1:fd7d1bc5c2]2.2 Dynamic allocation of network addresses

   The second service provided by DHCP is the allocation of temporary or
   permanent network (IP) addresses to clients.  The basic mechanism for
   the dynamic allocation of network addresses is simple:; a client
   requests the use of an address for some period of time.  The
   allocation mechanism (the collection of DHCP servers) guarantees not
   to reallocate that address within the requested time and attempts to
   return the same network address each time the client requests an
   address.  In this document, the period over which a network address
   is allocated to a client is referred to as a "lease" [11].  The

本文关键:DHCP分配地址时的顺序问题
  相关方案
Google
 

本站最佳浏览方式为 分辨率 1024x768 IE 6.0(或更高版本的 IE浏览器)

go top