不过分配IP不是在DHCPDISCOVER 阶段,你可以认真通读整个RFC文档,我记得应该是这样的
网兄,呵呵,你的脾气好像和以前比变化很大哦~
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.
...
认认真真读文档是必要的...
呵呵,我所说的只是RFC建议上的...
网兄,呵呵,你的脾气好像和以前比变化很大哦~[/quote:20eef2a3a1]
多謝版主!
不知小弟的脾氣是變好了還是變壞了呢? ^_^
做學問, 就是要一絲不苟, 不懂就虛心請問.
小弟毫無挑戰權威之意, 只是覺得不解, 特來請教.
若引起誤會, 那我先賠個不是!
至於實作上與 RFC 的出入, 等我有空用 sniffer 來抓抓 isc dhcpd 與 windows client 的封包,
再回來跟大家報告... ^_^
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
最後一段:
[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分配地址时的顺序问题
相关方案
- SNAT与MASQUERADE…
- 如何让Linux支持NTFS分…
- 一個不錯的資源網站,特別推荐O…
- PHP开发学堂:扩展你的PHP…
- 三言两语说 RPM…
- Linux系统命令分类详解(2…
- 三言两语说 NAT…
- redflag认证系统管理部分…
- 红旗:Liux认证体系与证书样…
- 如何解除LILO自动开机程序…
- oracle9 在 linux…
- package managem…
- LPI认证考试介绍…
- pinnacle studio…
- Linux系统命令分类详解(3…
- 如何在硬碟建置Linux系统之…
- 如何给iptables添加模块…
- RedHatLinux AS3…
- TuoboLinux认证介绍…
- VSFTPD服务器架设菜鸟手记…