DHCPv6 LEASEQUERY-REPLY 消息是否包含我们从服务器请求其信息的客户端的 DUID(或 MAC)?
dhcp 租约查询消息的内容
网络工程
dhcpv6
2022-02-04 08:19:52
1个回答
看起来它带有 DUID。
来自 - RFC 5007 第 4.3.3 节
4.3.3. Receipt of LEASEQUERY-REPLY
A successful LEASEQUERY-REPLY is one without an OPTION_STATUS_CODE
option (or an OPTION_STATUS_CODE option with a success code). There
are three variants:
1. If the server had bindings for the requested client, the message
includes an OPTION_CLIENT_DATA option and the requestor extracts
the client data from the LEASEQUERY-REPLY and updates its binding
information database. If the OPTION_CLIENT_DATA contains no
OPTION_CLT_TIME, the requestor SHOULD silently discard the
OPTION_CLIENT_DATA option.
如果我们查看RFC 5007 第 4.4.2 节中如何构造“OPTION_CLIENT_DATA”的详细信息
4.4.2. Constructing the Client's OPTION_CLIENT_DATA
An OPTION_CLIENT_DATA option in a LEASEQUERY-REPLY message MUST
minimally contain the following options:
1. OPTION_CLIENTID
2. OPTION_IAADDR and/or OPTION_IAPREFIX
3. OPTION_CLT_TIME
现在我们可以查看RFC 3315 第 22.2 节中“OPTION_CLIENTID”的详细信息
22.2. Client Identifier Option
The Client Identifier option is used to carry a DUID (see section 9)
identifying a client between a client and a server. The format of
the Client Identifier option is:
0 1 2 3
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| OPTION_CLIENTID | option-len |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
. .
. DUID .
. (variable length) .
. .
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
option-code OPTION_CLIENTID (1).
option-len Length of DUID in octets.
其它你可能感兴趣的问题