本產品的文件集力求使用無偏見用語。針對本文件集的目的,無偏見係定義為未根據年齡、身心障礙、性別、種族身分、民族身分、性別傾向、社會經濟地位及交織性表示歧視的用語。由於本產品軟體使用者介面中硬式編碼的語言、根據 RFP 文件使用的語言,或引用第三方產品的語言,因此本文件中可能會出現例外狀況。深入瞭解思科如何使用包容性用語。
思科已使用電腦和人工技術翻譯本文件,讓全世界的使用者能夠以自己的語言理解支援內容。請注意,即使是最佳機器翻譯,也不如專業譯者翻譯的內容準確。Cisco Systems, Inc. 對這些翻譯的準確度概不負責,並建議一律查看原始英文文件(提供連結)。
本文檔介紹通過檢視debug dhcp ipv6 packets 命令的輸出對ASR9k作為動態主機配置協定(DHCP)中繼進行故障排除。將ASR9k設定為DHCPv6中繼代理並使用外部DHCPv6伺服器時,這種情況非常常見。 運行debug來排除客戶未獲得IPv6地址的原因很有用。
思科建議您瞭解以下主題:
本文件所述內容不限於特定軟體和硬體版本。
本文中的資訊是根據特定實驗室環境內的裝置所建立。文中使用到的所有裝置皆從已清除(預設)的組態來啟動。如果您的網路正在作用,請確保您已瞭解任何指令可能造成的影響。
以下是DHCPv6伺服器和客戶端通訊的摘要:
注意:客戶端偵聽UDP埠546上的DHCP消息。伺服器和中繼代理偵聽UDP埠547上的DHCP消息。
客戶端無法從DHCPv6伺服器獲取IPv6地址的原因有很多。可以是客戶端配置、DHCPv6中繼或DHCPv6伺服器。以下討論描述了包括ASR9k充當DHCPv6中繼代理的場景。
在這樣的網路中,當客戶端沒有收到IP地址時,故障排除步驟之一是分析由DHCPv6中繼代理處理的通訊消息。
您可以在DHCPv6中繼代理上運行「debug dhcp IPv6 packet」,它顯示正常情況下通訊消息的內容和順序。 它可以幫助您通過比較客戶端/伺服器之間成功和不成功的事務來找出問題的發生位置,並找出根本原因和下一步進行故障排除。
下圖顯示了案例研究的拓撲,包括客戶端、DHCPv6中繼代理(ASR9k)和DHCPv6伺服器。
以下是基本術語:
動態主機配置協定第6版(DHCPv6)是一種網路協定,用於為Internet協定第6版(IPv6)的主機配置IP地址、IP字首和在IPv6網路中運行所需的其他配置資料。它等效於IPv4的動態主機配置協定。
IPv6主機可以使用無狀態地址自動配置在內部自動生成IP地址,也可以使用DHCPv6為其分配配置資料。
DHCPv6伺服器(或伺服器)是一個響應客戶端請求的節點,該節點可能與客戶端位於同一鏈路上,也可能不是同一鏈路。
DHCPv6客戶端(或客戶端)是在鏈路上發起請求以從一台或多台DHCPv6伺服器獲取配置引數的節點。
DHCP中繼代理(或中繼代理)是一個節點,充當在客戶端和伺服器之間傳遞DHCP消息的中介,並且與客戶端位於同一鏈路上。
使用者配置DHCPv6中繼代理[RFC3315],以便在客戶端和伺服器不在同一IPv6鏈路上時,在它們之間轉發DHCPv6消息。它們在公共節點中實施DHCPv6和路由功能。
消息是作為UDP資料包的負載傳輸的資料單元,在DHCPv6伺服器、中繼代理和客戶端之間交換。
DUID是DHCPv6參與者的DHCP唯一識別符號;每個DHCPv6客戶端和伺服器只有一個DUID。
身份關聯(IA)是分配給客戶端的地址集合。 每個IA都有一個相關的IAID。
客戶端可以分配多個IA;例如,每個介面分配一個IA。
每個IA擁有一種型別的地址;例如,臨時地址的身份關聯(IA_TA)擁有臨時地址。
身份關聯識別符號(IAID)是IA的識別符號,由客戶端選擇。 每個IA都有一個IAID,該IAID在屬於該客戶的IA的所有IAID中都是唯一的。
非臨時地址的標識關聯(IA_NA)是承載已分配的非臨時地址的IA(請參閱「臨時地址的標識關聯」)
DHCPv6使用狀態代碼來傳達客戶端和伺服器在消息中請求的操作成功或失敗的資訊,並提供有關消息失敗的特定原因的附加資訊。
考慮DHCPv6中繼代理/伺服器和客戶端通訊,您可以分析每種型別的消息,分別顯示在調試輸出中:
客戶端將「請求」消息從本地鏈路傳送到組播地址FF02::1:2以查詢DHCP伺服器。
它包括:
您可以通過運行ipconfig/all命令查詢客戶端的DUID,然後在調試中查詢DUID資訊,以檢視客戶端是否正在傳送消息。
以下是擷取資訊的範例:
LC/0/0/CPU0:Sep 5 15:26:18.336 : dhcpv6d[159]: DHCPV6 PACKET: TP763: PKT IPv6 DHCP: Detailed packet contents LC/0/0/CPU0:Sep 5 15:26:18.336 : dhcpv6d[159]: DHCPV6 PACKET: TP762: PKT: src:fe80::8146:c052:79e1:c015 dest:ff02::1:2 << Src: Client's Link local IP >> Dest: To all DHCP Relay and Server LC/0/0/CPU0:Sep 5 15:26:18.336 : dhcpv6d[159]: DHCPV6 PACKET: TP758: PKT: type: SOLICIT dhcp->type:1 dhcp->xid:3882870 << DHCPv6 Message Type:Solicit LC/0/0/CPU0:Sep 5 15:26:18.336 : dhcpv6d[159]: DHCPV6 PACKET: TP723: PKT: optype:ELAPSED-TIME(8) optlen:2 LC/0/0/CPU0:Sep 5 15:26:18.336 : dhcpv6d[159]: DHCPV6 PACKET: TP738: PKT: elaspsed_time:0 LC/0/0/CPU0:Sep 5 15:26:18.336 : dhcpv6d[159]: DHCPV6 PACKET: TP723: PKT: optype:CLIENTID(1) optlen:14 LC/0/0/CPU0:Sep 5 15:26:18.336 : dhcpv6d[159]: DHCPV6 PACKET: TP725: PKT: duidbuf: 000100011f3c6ebb54ee75376d89 << DUID of Client (DHCP Unique Identifier, Can be verified with running ipconfig/all command at Client) LC/0/0/CPU0:Sep 5 15:26:18.336 : dhcpv6d[159]: DHCPV6 PACKET: TP723: PKT: optype:IA-NA(3) optlen:12 LC/0/0/CPU0:Sep 5 15:26:18.336 : dhcpv6d[159]: DHCPV6 PACKET: TP748: PKT: IAID 0x0x354ee75 (55897717) T1:0x0 (0) T2:0x0 (0) << IAID of Client (can be verified with running ipconfig/all command at Client) LC/0/0/CPU0:Sep 5 15:26:18.336 : dhcpv6d[159]: DHCPV6 PACKET: TP723: PKT: optype:CLIENT-FQDN(39) optlen:26 LC/0/0/CPU0:Sep 5 15:26:18.337 : dhcpv6d[159]: DHCPV6 PACKET: TP723: PKT: optype:VENDOR-CLASS(16) optlen:14 LC/0/0/CPU0:Sep 5 15:26:18.337 : dhcpv6d[159]: DHCPV6 PACKET: TP723: PKT: optype:ORO(6) optlen:8 LC/0/0/CPU0:Sep 5 15:26:18.337 : dhcpv6d[159]: DHCPV6 PACKET: TP734: PKT: option: VENDOR-OPTS LC/0/0/CPU0:Sep 5 15:26:18.337 : dhcpv6d[159]: DHCPV6 PACKET: TP734: PKT: option: DNS-SERVERS LC/0/0/CPU0:Sep 5 15:26:18.337 : dhcpv6d[159]: DHCPV6 PACKET: TP734: PKT: option: DOMAIN-LIST LC/0/0/CPU0:Sep 5 15:26:18.337 : dhcpv6d[159]: DHCPV6 PACKET: TP734: PKT: option: CLIENT-FQDN
DHCP中繼向DHCP伺服器傳送「請求」消息,該消息包括:
以下是擷取資訊的範例:
LC/0/0/CPU0:Sep 5 15:26:18.339 : dhcpv6d[159]: DHCPV6 PACKET: TP764: PKT IPv6 DHCP: Det pkt cntents LC/0/0/CPU0:Sep 5 15:26:18.339 : dhcpv6d[159]: DHCPV6 PACKET: TP762: PKT: src:2002:172:16:70::2 dest:2002:172:16:151::2 << Src and Dst defined by Relay Agent to forward message to DHCP Server LC/0/0/CPU0:Sep 5 15:26:18.339 : dhcpv6d[159]: DHCPV6 PACKET: TP760: PKT: type:RELAY-FORWARD relay->msgtype:12 hop:0 << DHCPv6 Message Type LC/0/0/CPU0:Sep 5 15:26:18.339 : dhcpv6d[159]: DHCPV6 PACKET: TP761: PKT: link:2002:50:50:50::5 peer:fe80::8146:c052:79e1:c015 << Link: Global IP of Relay Interface toward Client & Peer : Client's Link local IP LC/0/0/CPU0:Sep 5 15:26:18.339 : dhcpv6d[159]: DHCPV6 PACKET: TP723: PKT: optype:INTERFACE-ID(18) optlen:6 LC/0/0/CPU0:Sep 5 15:26:18.340 : dhcpv6d[159]: DHCPV6 PACKET: TP774: PKT: 0x LC/0/0/CPU0:Sep 5 15:26:18.340 : dhcpv6d[159]: DHCPV6 PACKET: TP743: PKT: 0x0 (0) LC/0/0/CPU0:Sep 5 15:26:18.340 : dhcpv6d[159]: DHCPV6 PACKET: TP743: PKT: 0x4 (4) LC/0/0/CPU0:Sep 5 15:26:18.340 : dhcpv6d[159]: DHCPV6 PACKET: TP743: PKT: 0x0 (0) LC/0/0/CPU0:Sep 5 15:26:18.340 : dhcpv6d[159]: DHCPV6 PACKET: TP743: PKT: 0x0 (0) LC/0/0/CPU0:Sep 5 15:26:18.341 : dhcpv6d[159]: DHCPV6 PACKET: TP743: PKT: 0x0 (0) LC/0/0/CPU0:Sep 5 15:26:18.341 : dhcpv6d[159]: DHCPV6 PACKET: TP743: PKT: 0x4 (4) LC/0/0/CPU0:Sep 5 15:26:18.341 : dhcpv6d[159]: DHCPV6 PACKET: TP723: PKT: optype:REMOTEID(37) optlen:12 LC/0/0/CPU0:Sep 5 15:26:18.341 : dhcpv6d[159]: DHCPV6 PACKET: TP725: PKT: duidbuf: 0000000900068478ac36ba56 LC/0/0/CPU0:Sep 5 15:26:18.341 : dhcpv6d[159]: DHCPV6 PACKET: TP723: PKT: optype:RELAY-MSG(9) optlen:104 LC/0/0/CPU0:Sep 5 15:26:18.341 : dhcpv6d[159]: DHCPV6 PACKET: TP758: PKT: type: SOLICIT dhcp->type:1 dhcp->xid:3882870 << DHCPv6 Message Type LC/0/0/CPU0:Sep 5 15:26:18.342 : dhcpv6d[159]: DHCPV6 PACKET: TP723: PKT: optype:ELAPSED-TIME(8) optlen:2 LC/0/0/CPU0:Sep 5 15:26:18.342 : dhcpv6d[159]: DHCPV6 PACKET: TP738: PKT: elaspsed_time:0 LC/0/0/CPU0:Sep 5 15:26:18.342 : dhcpv6d[159]: DHCPV6 PACKET: TP723: PKT: optype:CLIENTID(1) optlen:14 LC/0/0/CPU0:Sep 5 15:26:18.342 : dhcpv6d[159]: DHCPV6 PACKET: TP725: PKT: duidbuf: 000100011f3c6ebb54ee75376d89 << DUID of Client , Can be verified with ipconfig/all command at Client LC/0/0/CPU0:Sep 5 15:26:18.342 : dhcpv6d[159]: DHCPV6 PACKET: TP723: PKT: optype:IA-NA(3) optlen:12 LC/0/0/CPU0:Sep 5 15:26:18.342 : dhcpv6d[159]: DHCPV6 PACKET: TP748: PKT: IAID 0x0x354ee75 (55897717) T1:0x0 (0) T2:0x0 (0) << IAID of Client , Can be verified with ipconfig/all command at Client LC/0/0/CPU0:Sep 5 15:26:18.342 : dhcpv6d[159]: DHCPV6 PACKET: TP723: PKT: optype:CLIENT-FQDN(39) optlen:26 LC/0/0/CPU0:Sep 5 15:26:18.342 : dhcpv6d[159]: DHCPV6 PACKET: TP723: PKT: optype:VENDOR-CLASS(16) optlen:14 LC/0/0/CPU0:Sep 5 15:26:18.343 : dhcpv6d[159]: DHCPV6 PACKET: TP723: PKT: optype:ORO(6) optlen:8 LC/0/0/CPU0:Sep 5 15:26:18.343 : dhcpv6d[159]: DHCPV6 PACKET: TP734: PKT: option: VENDOR-OPTS LC/0/0/CPU0:Sep 5 15:26:18.343 : dhcpv6d[159]: DHCPV6 PACKET: TP734: PKT: option: DNS-SERVERS LC/0/0/CPU0:Sep 5 15:26:18.343 : dhcpv6d[159]: DHCPV6 PACKET: TP734: PKT: option: DOMAIN-LIST LC/0/0/CPU0:Sep 5 15:26:18.343 : dhcpv6d[159]: DHCPV6 PACKET: TP734: PKT: option: CLIENT-FQDN
DHCP伺服器使用「Advertise」消息進行響應,它通過DHCP中繼代理接收作為「中繼應答」的資料包,包括:
以下是擷取資訊的範例:
RP/0/RSP0/CPU0:Sep 5 15:26:18.346 : dhcpv6d[1087]: DHCPV6 PACKET: TP763: PKT IPv6 DHCP: Detailed packet contents RP/0/RSP0/CPU0:Sep 5 15:26:18.346 : dhcpv6d[1087]: DHCPV6 PACKET: TP762: PKT: src:2002:172:16:151::2 dest:2002:172:16:70::2 << Src & Dest defined by DHCP Server RP/0/RSP0/CPU0:Sep 5 15:26:18.346 : dhcpv6d[1087]: DHCPV6 PACKET: TP760: PKT: type:RELAY-REPLY relay->msgtype:13 hop:0 << DHCPv6 Message Type RP/0/RSP0/CPU0:Sep 5 15:26:18.346 : dhcpv6d[1087]: DHCPV6 PACKET: TP761: PKT: link:2002:50:50:50::5 peer:fe80::8146:c052:79e1:c015 << How to get to the Client RP/0/RSP0/CPU0:Sep 5 15:26:18.346 : dhcpv6d[1087]: DHCPV6 PACKET: TP723: PKT: optype:INTERFACE-ID(18) optlen:6 RP/0/RSP0/CPU0:Sep 5 15:26:18.347 : dhcpv6d[1087]: DHCPV6 PACKET: TP774: PKT: 0x RP/0/RSP0/CPU0:Sep 5 15:26:18.347 : dhcpv6d[1087]: DHCPV6 PACKET: TP743: PKT: 0x0 (0) RP/0/RSP0/CPU0:Sep 5 15:26:18.347 : dhcpv6d[1087]: DHCPV6 PACKET: TP743: PKT: 0x4 (4) RP/0/RSP0/CPU0:Sep 5 15:26:18.347 : dhcpv6d[1087]: DHCPV6 PACKET: TP743: PKT: 0x0 (0) RP/0/RSP0/CPU0:Sep 5 15:26:18.347 : dhcpv6d[1087]: DHCPV6 PACKET: TP743: PKT: 0x0 (0) RP/0/RSP0/CPU0:Sep 5 15:26:18.347 : dhcpv6d[1087]: DHCPV6 PACKET: TP743: PKT: 0x0 (0) RP/0/RSP0/CPU0:Sep 5 15:26:18.347 : dhcpv6d[1087]: DHCPV6 PACKET: TP743: PKT: 0x4 (4) RP/0/RSP0/CPU0:Sep 5 15:26:18.347 : dhcpv6d[1087]: DHCPV6 PACKET: TP723: PKT: optype:RELAY-MSG(9) optlen:115 RP/0/RSP0/CPU0:Sep 5 15:26:18.347 : dhcpv6d[1087]: DHCPV6 PACKET: TP758: PKT: type: ADVERTISE dhcp->type:2 dhcp->xid:3882870 << DHCP Server respond with Advertise message RP/0/RSP0/CPU0:Sep 5 15:26:18.347 : dhcpv6d[1087]: DHCPV6 PACKET: TP723: PKT: optype:SERVERID(2) optlen:10 << Server ID RP/0/RSP0/CPU0:Sep 5 15:26:18.348 : dhcpv6d[1087]: DHCPV6 PACKET: TP725: PKT: duidbuf: 00030001c8f9f98c3e80 << DUID of DHCP Server RP/0/RSP0/CPU0:Sep 5 15:26:18.348 : dhcpv6d[1087]: DHCPV6 PACKET: TP723: PKT: optype:CLIENTID(1) optlen:14 << DHCPv6 Message Type RP/0/RSP0/CPU0:Sep 5 15:26:18.348 : dhcpv6d[1087]: DHCPV6 PACKET: TP725: PKT: duidbuf: 000100011f3c6ebb54ee75376d89 << DUID of Client RP/0/RSP0/CPU0:Sep 5 15:26:18.348 : dhcpv6d[1087]: DHCPV6 PACKET: TP723: PKT: optype:IA-NA(3) optlen:40 RP/0/RSP0/CPU0:Sep 5 15:26:18.348 : dhcpv6d[1087]: DHCPV6 PACKET: TP748: PKT: IAID 0x0x354ee75 (55897717) T1:0xa8c0 (43200) T2:0x10e00 (69120) << IAID of Client RP/0/RSP0/CPU0:Sep 5 15:26:18.348 : dhcpv6d[1087]: DHCPV6 PACKET: TP723: PKT: optype:IAADDR(5) optlen:24 RP/0/RSP0/CPU0:Sep 5 15:26:18.348 : dhcpv6d[1087]: DHCPV6 PACKET: TP729: PKT: IPV6 addr:2002:50:50:50:2cdd:1975:9b64:8453 RP/0/RSP0/CPU0:Sep 5 15:26:18.348 : dhcpv6d[1087]: DHCPV6 PACKET: TP730: PKT: preferred RP/0/RSP0/CPU0:Sep 5 15:26:18.348 : dhcpv6d[1087]: DHCPV6 PACKET: TP769: PKT: 86400 RP/0/RSP0/CPU0:Sep 5 15:26:18.348 : dhcpv6d[1087]: DHCPV6 PACKET: TP731: PKT: valid RP/0/RSP0/CPU0:Sep 5 15:26:18.349 : dhcpv6d[1087]: DHCPV6 PACKET: TP733: PKT: len:172800 RP/0/RSP0/CPU0:Sep 5 15:26:18.349 : dhcpv6d[1087]: DHCPV6 PACKET: TP723: PKT: optype:DNS-SERVERS(23) optlen:16 RP/0/RSP0/CPU0:Sep 5 15:26:18.349 : dhcpv6d[1087]: DHCPV6 PACKET: TP744: PKT: ipv6_addr:2001:4860:4860::8888 RP/0/RSP0/CPU0:Sep 5 15:26:18.349 : dhcpv6d[1087]: DHCPV6 PACKET: TP723: PKT: optype:DOMAIN-LIST(24) optlen:11 RP/0/RSP0/CPU0:Sep 5 15:26:18.349 : dhcpv6d[1087]: DHCPV6 PACKET: TP746: PKT: Domain_name: cisco.com
DHCP中繼代理向客戶端傳送「通告」消息,包括:
以下是擷取資訊的範例:
LC/0/0/CPU0:Sep 5 15:26:18.351 : dhcpv6d[159]: DHCPV6 PACKET: TP765: PKT IPv6 DHCP: Det pkt cntents LC/0/0/CPU0:Sep 5 15:26:18.351 : dhcpv6d[159]: DHCPV6 PACKET: TP762: PKT: src:fe80::8678:acff:fe34:dafa dest:fe80::8146:c052:79e1:c015 << Src & Des defined by DHCP Relay Agent LC/0/0/CPU0:Sep 5 15:26:18.351 : dhcpv6d[159]: DHCPV6 PACKET: TP758: PKT: type: ADVERTISE dhcp->type:2 dhcp->xid:3882870 << DHCP Server respond with Advertise message LC/0/0/CPU0:Sep 5 15:26:18.351 : dhcpv6d[159]: DHCPV6 PACKET: TP723: PKT: optype:SERVERID(2) optlen:10 LC/0/0/CPU0:Sep 5 15:26:18.351 : dhcpv6d[159]: DHCPV6 PACKET: TP725: PKT: duidbuf: 00030001c8f9f98c3e80 << DUID of the DHCP Server LC/0/0/CPU0:Sep 5 15:26:18.351 : dhcpv6d[159]: DHCPV6 PACKET: TP723: PKT: optype:CLIENTID(1) optlen:14 LC/0/0/CPU0:Sep 5 15:26:18.351 : dhcpv6d[159]: DHCPV6 PACKET: TP725: PKT: duidbuf: 000100011f3c6ebb54ee75376d89 << DUID of the Client LC/0/0/CPU0:Sep 5 15:26:18.352 : dhcpv6d[159]: DHCPV6 PACKET: TP723: PKT: optype:IA-NA(3) optlen:40 LC/0/0/CPU0:Sep 5 15:26:18.352 : dhcpv6d[159]: DHCPV6 PACKET: TP748: PKT: IAID 0x0x354ee75 (55897717) T1:0xa8c0 (43200) T2:0x10e00 (69120) << IAID of the Client LC/0/0/CPU0:Sep 5 15:26:18.352 : dhcpv6d[159]: DHCPV6 PACKET: TP723: PKT: optype:IAADDR(5) optlen:24 LC/0/0/CPU0:Sep 5 15:26:18.352 : dhcpv6d[159]: DHCPV6 PACKET: TP729: PKT: IPV6 addr:2002:50:50:50:2cdd:1975:9b64:8453 LC/0/0/CPU0:Sep 5 15:26:18.352 : dhcpv6d[159]: DHCPV6 PACKET: TP730: PKT: preferred LC/0/0/CPU0:Sep 5 15:26:18.352 : dhcpv6d[159]: DHCPV6 PACKET: TP769: PKT: 86400 LC/0/0/CPU0:Sep 5 15:26:18.352 : dhcpv6d[159]: DHCPV6 PACKET: TP731: PKT: valid LC/0/0/CPU0:Sep 5 15:26:18.352 : dhcpv6d[159]: DHCPV6 PACKET: TP733: PKT: len:172800 LC/0/0/CPU0:Sep 5 15:26:18.353 : dhcpv6d[159]: DHCPV6 PACKET: TP723: PKT: optype:DNS-SERVERS(23) optlen:16 LC/0/0/CPU0:Sep 5 15:26:18.353 : dhcpv6d[159]: DHCPV6 PACKET: TP744: PKT: ipv6_addr:2001:4860:4860::8888 LC/0/0/CPU0:Sep 5 15:26:18.353 : dhcpv6d[159]: DHCPV6 PACKET: TP723: PKT: optype:DOMAIN-LIST(24) optlen:11 LC/0/0/CPU0:Sep 5 15:26:18.353 : dhcpv6d[159]: DHCPV6 PACKET: TP746: PKT: Domain_name: cisco.com
DHCP中繼代理向伺服器傳送「請求」消息,包括:
以下是擷取資訊的範例:
LC/0/0/CPU0:Sep 5 15:26:19.338 : dhcpv6d[159]: DHCPV6 PACKET: TP763: PKT IPv6 DHCP: Detailed packet contents LC/0/0/CPU0:Sep 5 15:26:19.338 : dhcpv6d[159]: DHCPV6 PACKET: TP762: PKT: src:fe80::8146:c052:79e1:c015 dest:ff02::1:2 << Src & Des defined by Client LC/0/0/CPU0:Sep 5 15:26:19.339 : dhcpv6d[159]: DHCPV6 PACKET: TP758: PKT: type: REQUEST dhcp->type:3 dhcp->xid:3882870 << DHCPv6 Message Type LC/0/0/CPU0:Sep 5 15:26:19.339 : dhcpv6d[159]: DHCPV6 PACKET: TP723: PKT: optype:ELAPSED-TIME(8) optlen:2 LC/0/0/CPU0:Sep 5 15:26:19.339 : dhcpv6d[159]: DHCPV6 PACKET: TP738: PKT: elaspsed_time:0 LC/0/0/CPU0:Sep 5 15:26:19.339 : dhcpv6d[159]: DHCPV6 PACKET: TP723: PKT: optype:CLIENTID(1) optlen:14 LC/0/0/CPU0:Sep 5 15:26:19.339 : dhcpv6d[159]: DHCPV6 PACKET: TP725: PKT: duidbuf: 000100011f3c6ebb54ee75376d89 << DUID of Client LC/0/0/CPU0:Sep 5 15:26:19.339 : dhcpv6d[159]: DHCPV6 PACKET: TP723: PKT: optype:SERVERID(2) optlen:10 LC/0/0/CPU0:Sep 5 15:26:19.339 : dhcpv6d[159]: DHCPV6 PACKET: TP725: PKT: duidbuf: 00030001c8f9f98c3e80 << DUID of DHCP Server LC/0/0/CPU0:Sep 5 15:26:19.339 : dhcpv6d[159]: DHCPV6 PACKET: TP723: PKT: optype:IA-NA(3) optlen:40 LC/0/0/CPU0:Sep 5 15:26:19.340 : dhcpv6d[159]: DHCPV6 PACKET: TP748: PKT: IAID 0x0x354ee75 (55897717) T1:0xa8c0 (43200) T2:0x10e00 (69120) << IAID of Client LC/0/0/CPU0:Sep 5 15:26:19.340 : dhcpv6d[159]: DHCPV6 PACKET: TP723: PKT: optype:IAADDR(5) optlen:24 LC/0/0/CPU0:Sep 5 15:26:19.340 : dhcpv6d[159]: DHCPV6 PACKET: TP729: PKT: IPV6 addr:2002:50:50:50:2cdd:1975:9b64:8453 LC/0/0/CPU0:Sep 5 15:26:19.340 : dhcpv6d[159]: DHCPV6 PACKET: TP730: PKT: preferred LC/0/0/CPU0:Sep 5 15:26:19.340 : dhcpv6d[159]: DHCPV6 PACKET: TP769: PKT: 86400 LC/0/0/CPU0:Sep 5 15:26:19.340 : dhcpv6d[159]: DHCPV6 PACKET: TP731: PKT: valid LC/0/0/CPU0:Sep 5 15:26:19.340 : dhcpv6d[159]: DHCPV6 PACKET: TP733: PKT: len:172800 LC/0/0/CPU0:Sep 5 15:26:19.341 : dhcpv6d[159]: DHCPV6 PACKET: TP723: PKT: optype:CLIENT-FQDN(39) optlen:26 LC/0/0/CPU0:Sep 5 15:26:19.341 : dhcpv6d[159]: DHCPV6 PACKET: TP723: PKT: optype:VENDOR-CLASS(16) optlen:14 LC/0/0/CPU0:Sep 5 15:26:19.341 : dhcpv6d[159]: DHCPV6 PACKET: TP723: PKT: optype:ORO(6) optlen:8 LC/0/0/CPU0:Sep 5 15:26:19.341 : dhcpv6d[159]: DHCPV6 PACKET: TP734: PKT: option: VENDOR-OPTS LC/0/0/CPU0:Sep 5 15:26:19.341 : dhcpv6d[159]: DHCPV6 PACKET: TP734: PKT: option: DNS-SERVERS LC/0/0/CPU0:Sep 5 15:26:19.341 : dhcpv6d[159]: DHCPV6 PACKET: TP734: PKT: option: DOMAIN-LIST LC/0/0/CPU0:Sep 5 15:26:19.341 : dhcpv6d[159]: DHCPV6 PACKET: TP734: PKT: option: CLIENT-FQDN
DHCP中繼代理將「請求」消息作為「RELAY-Forward」型別轉發到伺服器,包括:
以下是擷取資訊的範例:
LC/0/0/CPU0:Sep 5 15:26:19.343 : dhcpv6d[159]: DHCPV6 PACKET: TP764: PKT IPv6 DHCP: Det pkt cntents LC/0/0/CPU0:Sep 5 15:26:19.344 : dhcpv6d[159]: DHCPV6 PACKET: TP762: PKT: src:2002:172:16:70::2 dest:2002:172:16:151::2 << Src & Des defined by DHCP Relay Agent LC/0/0/CPU0:Sep 5 15:26:19.344 : dhcpv6d[159]: DHCPV6 PACKET: TP760: PKT: type:RELAY-FORWARD relay->msgtype:12 hop:0 << DHCPv6 Message Type LC/0/0/CPU0:Sep 5 15:26:19.344 : dhcpv6d[159]: DHCPV6 PACKET: TP761: PKT: link:2002:50:50:50::5 peer:fe80::8146:c052:79e1:c015 << Link: Global IP of Relay Interface toward Client & Peer : Client's Link local IP LC/0/0/CPU0:Sep 5 15:26:19.344 : dhcpv6d[159]: DHCPV6 PACKET: TP723: PKT: optype:INTERFACE-ID(18) optlen:6 LC/0/0/CPU0:Sep 5 15:26:19.344 : dhcpv6d[159]: DHCPV6 PACKET: TP774: PKT: 0x LC/0/0/CPU0:Sep 5 15:26:19.344 : dhcpv6d[159]: DHCPV6 PACKET: TP743: PKT: 0x0 (0) LC/0/0/CPU0:Sep 5 15:26:19.344 : dhcpv6d[159]: DHCPV6 PACKET: TP743: PKT: 0x4 (4) LC/0/0/CPU0:Sep 5 15:26:19.344 : dhcpv6d[159]: DHCPV6 PACKET: TP743: PKT: 0x0 (0) LC/0/0/CPU0:Sep 5 15:26:19.344 : dhcpv6d[159]: DHCPV6 PACKET: TP743: PKT: 0x0 (0) LC/0/0/CPU0:Sep 5 15:26:19.345 : dhcpv6d[159]: DHCPV6 PACKET: TP743: PKT: 0x0 (0) LC/0/0/CPU0:Sep 5 15:26:19.345 : dhcpv6d[159]: DHCPV6 PACKET: TP743: PKT: 0x4 (4) LC/0/0/CPU0:Sep 5 15:26:19.345 : dhcpv6d[159]: DHCPV6 PACKET: TP723: PKT: optype:REMOTEID(37) optlen:12 LC/0/0/CPU0:Sep 5 15:26:19.345 : dhcpv6d[159]: DHCPV6 PACKET: TP725: PKT: duidbuf: 0000000900068478ac36ba56 LC/0/0/CPU0:Sep 5 15:26:19.345 : dhcpv6d[159]: DHCPV6 PACKET: TP723: PKT: optype:RELAY-MSG(9) optlen:146 LC/0/0/CPU0:Sep 5 15:26:19.345 : dhcpv6d[159]: DHCPV6 PACKET: TP758: PKT: type: REQUEST dhcp->type:3 dhcp->xid:3882870 LC/0/0/CPU0:Sep 5 15:26:19.345 : dhcpv6d[159]: DHCPV6 PACKET: TP723: PKT: optype:ELAPSED-TIME(8) optlen:2 LC/0/0/CPU0:Sep 5 15:26:19.346 : dhcpv6d[159]: DHCPV6 PACKET: TP738: PKT: elaspsed_time:0 LC/0/0/CPU0:Sep 5 15:26:19.346 : dhcpv6d[159]: DHCPV6 PACKET: TP723: PKT: optype:CLIENTID(1) optlen:14 LC/0/0/CPU0:Sep 5 15:26:19.346 : dhcpv6d[159]: DHCPV6 PACKET: TP725: PKT: duidbuf: 000100011f3c6ebb54ee75376d89 << DUID of Client LC/0/0/CPU0:Sep 5 15:26:19.346 : dhcpv6d[159]: DHCPV6 PACKET: TP723: PKT: optype:SERVERID(2) optlen:10 LC/0/0/CPU0:Sep 5 15:26:19.346 : dhcpv6d[159]: DHCPV6 PACKET: TP725: PKT: duidbuf: 00030001c8f9f98c3e80 << DUID of DHCP Server LC/0/0/CPU0:Sep 5 15:26:19.346 : dhcpv6d[159]: DHCPV6 PACKET: TP723: PKT: optype:IA-NA(3) optlen:40 LC/0/0/CPU0:Sep 5 15:26:19.347 : dhcpv6d[159]: DHCPV6 PACKET: TP748: PKT: IAID 0x0x354ee75 (55897717) T1:0xa8c0 (43200) T2:0x10e00 (69120) LC/0/0/CPU0:Sep 5 15:26:19.347 : dhcpv6d[159]: DHCPV6 PACKET: TP723: PKT: optype:IAADDR(5) optlen:24 LC/0/0/CPU0:Sep 5 15:26:19.347 : dhcpv6d[159]: DHCPV6 PACKET: TP729: PKT: IPV6 addr:2002:50:50:50:2cdd:1975:9b64:8453 LC/0/0/CPU0:Sep 5 15:26:19.347 : dhcpv6d[159]: DHCPV6 PACKET: TP730: PKT: preferred LC/0/0/CPU0:Sep 5 15:26:19.347 : dhcpv6d[159]: DHCPV6 PACKET: TP769: PKT: 86400 LC/0/0/CPU0:Sep 5 15:26:19.347 : dhcpv6d[159]: DHCPV6 PACKET: TP731: PKT: valid LC/0/0/CPU0:Sep 5 15:26:19.347 : dhcpv6d[159]: DHCPV6 PACKET: TP733: PKT: len:172800 LC/0/0/CPU0:Sep 5 15:26:19.347 : dhcpv6d[159]: DHCPV6 PACKET: TP723: PKT: optype:CLIENT-FQDN(39) optlen:26 LC/0/0/CPU0:Sep 5 15:26:19.348 : dhcpv6d[159]: DHCPV6 PACKET: TP723: PKT: optype:VENDOR-CLASS(16) optlen:14 LC/0/0/CPU0:Sep 5 15:26:19.348 : dhcpv6d[159]: DHCPV6 PACKET: TP723: PKT: optype:ORO(6) optlen:8 LC/0/0/CPU0:Sep 5 15:26:19.348 : dhcpv6d[159]: DHCPV6 PACKET: TP734: PKT: option: VENDOR-OPTS LC/0/0/CPU0:Sep 5 15:26:19.348 : dhcpv6d[159]: DHCPV6 PACKET: TP734: PKT: option: DNS-SERVERS LC/0/0/CPU0:Sep 5 15:26:19.348 : dhcpv6d[159]: DHCPV6 PACKET: TP734: PKT: option: DOMAIN-LIST LC/0/0/CPU0:Sep 5 15:26:19.348 : dhcpv6d[159]: DHCPV6 PACKET: TP734: PKT: option: CLIENT-FQDN
DHCP伺服器使用「回覆」訊息回應,DHCP中繼代理會收到該訊息作為「中繼回覆」封包,其中包括:
以下是擷取資訊的範例:
RP/0/RSP0/CPU0:Sep 5 15:39:21.225 : dhcpv6d[1087]: DHCPV6 PACKET: TP763: PKT IPv6 DHCP: Detailed packet contents RP/0/RSP0/CPU0:Sep 5 15:39:21.225 : dhcpv6d[1087]: DHCPV6 PACKET: TP762: PKT: src:2002:172:16:151::2 dest:2002:172:16:70::2 << Src & Dest defined by DHCP Server RP/0/RSP0/CPU0:Sep 5 15:39:21.225 : dhcpv6d[1087]: DHCPV6 PACKET: TP760: PKT: type:RELAY-REPLY relay->msgtype:13 hop:0 << DHCPv6 Message Type RP/0/RSP0/CPU0:Sep 5 15:39:21.225 : dhcpv6d[1087]: DHCPV6 PACKET: TP761: PKT: link:2002:50:50:50::5 peer:fe80::8146:c052:79e1:c015 << Link: Global IP of Relay Interface toward Client & Peer : Client's Link local IP RP/0/RSP0/CPU0:Sep 5 15:39:21.225 : dhcpv6d[1087]: DHCPV6 PACKET: TP723: PKT: optype:INTERFACE-ID(18) optlen:6 RP/0/RSP0/CPU0:Sep 5 15:39:21.225 : dhcpv6d[1087]: DHCPV6 PACKET: TP774: PKT: 0x RP/0/RSP0/CPU0:Sep 5 15:39:21.225 : dhcpv6d[1087]: DHCPV6 PACKET: TP743: PKT: 0x0 (0) RP/0/RSP0/CPU0:Sep 5 15:39:21.225 : dhcpv6d[1087]: DHCPV6 PACKET: TP743: PKT: 0x4 (4) RP/0/RSP0/CPU0:Sep 5 15:39:21.225 : dhcpv6d[1087]: DHCPV6 PACKET: TP743: PKT: 0x0 (0) RP/0/RSP0/CPU0:Sep 5 15:39:21.226 : dhcpv6d[1087]: DHCPV6 PACKET: TP743: PKT: 0x0 (0) RP/0/RSP0/CPU0:Sep 5 15:39:21.226 : dhcpv6d[1087]: DHCPV6 PACKET: TP743: PKT: 0x0 (0) RP/0/RSP0/CPU0:Sep 5 15:39:21.226 : dhcpv6d[1087]: DHCPV6 PACKET: TP743: PKT: 0x4 (4) RP/0/RSP0/CPU0:Sep 5 15:39:21.226 : dhcpv6d[1087]: DHCPV6 PACKET: TP723: PKT: optype:RELAY-MSG(9) optlen:106 RP/0/RSP0/CPU0:Sep 5 15:39:21.226 : dhcpv6d[1087]: DHCPV6 PACKET: TP758: PKT: type: REPLY dhcp->type:7 dhcp->xid:15323045 RP/0/RSP0/CPU0:Sep 5 15:39:21.226 : dhcpv6d[1087]: DHCPV6 PACKET: TP723: PKT: optype:SERVERID(2) optlen:10 RP/0/RSP0/CPU0:Sep 5 15:39:21.226 : dhcpv6d[1087]: DHCPV6 PACKET: TP725: PKT: duidbuf: 00030001c8f9f98c3e80 << DUID of DHCP Server RP/0/RSP0/CPU0:Sep 5 15:39:21.226 : dhcpv6d[1087]: DHCPV6 PACKET: TP723: PKT: optype:CLIENTID(1) optlen:14 RP/0/RSP0/CPU0:Sep 5 15:39:21.226 : dhcpv6d[1087]: DHCPV6 PACKET: TP725: PKT: duidbuf: 000100011f3c6ebb54ee75376d89 << DUID of Client RP/0/RSP0/CPU0:Sep 5 15:39:21.226 : dhcpv6d[1087]: DHCPV6 PACKET: TP723: PKT: optype:STATUS-CODE(13) optlen:9 RP/0/RSP0/CPU0:Sep 5 15:39:21.226 : dhcpv6d[1087]: DHCPV6 PACKET: TP740: PKT: status message: RP/0/RSP0/CPU0:Sep 5 15:39:21.227 : dhcpv6d[1087]: DHCPV6 PACKET: TP739: PKT: Status_code:SUCCESS << DHCP Server sends Status Message: Success RP/0/RSP0/CPU0:Sep 5 15:39:21.227 : dhcpv6d[1087]: DHCPV6 PACKET: TP723: PKT: optype:IA-NA(3) optlen:53 RP/0/RSP0/CPU0:Sep 5 15:39:21.227 : dhcpv6d[1087]: DHCPV6 PACKET: TP748: PKT: IAID 0x0x354ee75 (55897717) T1:0x0 (0) T2:0x0 (0) << DUID of Client RP/0/RSP0/CPU0:Sep 5 15:39:21.227 : dhcpv6d[1087]: DHCPV6 PACKET: TP723: PKT: optype:STATUS-CODE(13) optlen:9 RP/0/RSP0/CPU0:Sep 5 15:39:21.227 : dhcpv6d[1087]: DHCPV6 PACKET: TP740: PKT: status message: RP/0/RSP0/CPU0:Sep 5 15:39:21.227 : dhcpv6d[1087]: DHCPV6 PACKET: TP739: PKT: Status_code:SUCCESS RP/0/RSP0/CPU0:Sep 5 15:39:21.227 : dhcpv6d[1087]: DHCPV6 PACKET: TP723: PKT: optype:IAADDR(5) optlen:24 RP/0/RSP0/CPU0:Sep 5 15:39:21.227 : dhcpv6d[1087]: DHCPV6 PACKET: TP729: PKT: IPV6 addr:2002:50:50:50:2cdd:1975:9b64:8453 RP/0/RSP0/CPU0:Sep 5 15:39:21.227 : dhcpv6d[1087]: DHCPV6 PACKET: TP730: PKT: preferred RP/0/RSP0/CPU0:Sep 5 15:39:21.227 : dhcpv6d[1087]: DHCPV6 PACKET: TP769: PKT: 0 RP/0/RSP0/CPU0:Sep 5 15:39:21.227 : dhcpv6d[1087]: DHCPV6 PACKET: TP731: PKT: valid RP/0/RSP0/CPU0:Sep 5 15:39:21.228 : dhcpv6d[1087]: DHCPV6 PACKET: TP733: PKT: len:0
DHCP中繼代理向客戶端傳送「回覆」消息,包括:
以下是擷取資訊的範例:
LC/0/0/CPU0:Sep 5 15:39:21.229 : dhcpv6d[159]: DHCPV6 PACKET: TP765: PKT IPv6 DHCP: Det pkt cntents LC/0/0/CPU0:Sep 5 15:39:21.230 : dhcpv6d[159]: DHCPV6 PACKET: TP762: PKT: src:fe80::8678:acff:fe34:dafa dest:fe80::8146:c052:79e1:c015 < Src & Des defined by DHCP Relay Agent LC/0/0/CPU0:Sep 5 15:39:21.230 : dhcpv6d[159]: DHCPV6 PACKET: TP758: PKT: type: REPLY dhcp->type:7 dhcp->xid:15323045 << DHCPv6 Message Type LC/0/0/CPU0:Sep 5 15:39:21.230 : dhcpv6d[159]: DHCPV6 PACKET: TP723: PKT: optype:SERVERID(2) optlen:10 LC/0/0/CPU0:Sep 5 15:39:21.230 : dhcpv6d[159]: DHCPV6 PACKET: TP725: PKT: duidbuf: 00030001c8f9f98c3e80 << DUID of DHCP Server LC/0/0/CPU0:Sep 5 15:39:21.230 : dhcpv6d[159]: DHCPV6 PACKET: TP723: PKT: optype:CLIENTID(1) optlen:14 LC/0/0/CPU0:Sep 5 15:39:21.230 : dhcpv6d[159]: DHCPV6 PACKET: TP725: PKT: duidbuf: 000100011f3c6ebb54ee75376d89 << DUID of Client LC/0/0/CPU0:Sep 5 15:39:21.230 : dhcpv6d[159]: DHCPV6 PACKET: TP723: PKT: optype:STATUS-CODE(13) optlen:9 LC/0/0/CPU0:Sep 5 15:39:21.230 : dhcpv6d[159]: DHCPV6 PACKET: TP740: PKT: status message:Status_code:SUCCESS LC/0/0/CPU0:Sep 5 15:39:21.230 : dhcpv6d[159]: DHCPV6 PACKET: TP739: PKT: LC/0/0/CPU0:Sep 5 15:39:21.230 : dhcpv6d[159]: DHCPV6 PACKET: TP723: PKT: optype:IA-NA(3) optlen:53 LC/0/0/CPU0:Sep 5 15:39:21.231 : dhcpv6d[159]: DHCPV6 PACKET: TP748: PKT: IAID 0x0x354ee75 (55897717) T1:0x0 (0) T2:0x0 (0) << IAID of Client LC/0/0/CPU0:Sep 5 15:39:21.231 : dhcpv6d[159]: DHCPV6 PACKET: TP723: PKT: optype:STATUS-CODE(13) optlen:9 LC/0/0/CPU0:Sep 5 15:39:21.231 : dhcpv6d[159]: DHCPV6 PACKET: TP740: PKT: status message: LC/0/0/CPU0:Sep 5 15:39:21.231 : dhcpv6d[159]: DHCPV6 PACKET: TP739: PKT: Status_code:SUCCESS << DHCP Server sends Status Message: Success LC/0/0/CPU0:Sep 5 15:39:21.231 : dhcpv6d[159]: DHCPV6 PACKET: TP723: PKT: optype:IAADDR(5) optlen:24 LC/0/0/CPU0:Sep 5 15:39:21.232 : dhcpv6d[159]: DHCPV6 PACKET: TP729: PKT: IPV6 addr:2002:50:50:50:2cdd:1975:9b64:8453 LC/0/0/CPU0:Sep 5 15:39:21.232 : dhcpv6d[159]: DHCPV6 PACKET: TP730: PKT: preferred LC/0/0/CPU0:Sep 5 15:39:21.232 : dhcpv6d[159]: DHCPV6 PACKET: TP769: PKT: 0 LC/0/0/CPU0:Sep 5 15:39:21.232 : dhcpv6d[159]: DHCPV6 PACKET: TP731: PKT: valid LC/0/0/CPU0:Sep 5 15:39:21.232 : dhcpv6d[159]: DHCPV6 PACKET: TP733: PKT: len:0
修訂 | 發佈日期 | 意見 |
---|---|---|
1.0 |
09-Apr-2017 |
初始版本 |