此产品的文档集力求使用非歧视性语言。在本文档集中,非歧视性语言是指不隐含针对年龄、残障、性别、种族身份、族群身份、性取向、社会经济地位和交叉性的歧视的语言。由于产品软件的用户界面中使用的硬编码语言、基于 RFP 文档使用的语言或引用的第三方产品使用的语言,文档中可能无法确保完全使用非歧视性语言。 深入了解思科如何使用包容性语言。
思科采用人工翻译与机器翻译相结合的方式将此文档翻译成不同语言,希望全球的用户都能通过各自的语言得到支持性的内容。 请注意:即使是最好的机器翻译,其准确度也不及专业翻译人员的水平。 Cisco Systems, Inc. 对于翻译的准确性不承担任何责任,并建议您总是参考英文原始文档(已提供链接)。
本文档通过查看debug dhcp ipv6 packets命令的输出,介绍对ASR9k作为动态主机配置协议(DHCP)中继进行故障排除。将ASR9k设置为DHCPv6中继代理并使用外部DHCPv6服务器时,这种情况非常常见。 运行debug以对客户未获得IPv6地址的原因进行故障排除很有用。
Cisco 建议您了解以下主题:
本文档不限于特定的软件和硬件版本。
本文档中的信息都是基于特定实验室环境中的设备编写的。本文档中使用的所有设备最初均采用原始(默认)配置。如果您使用的是真实网络,请确保您已经了解所有命令的潜在影响。
以下是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在属于该客户端的所有IAID中是唯一的。
非临时地址的身份关联(IA_NA)是传送已分配的非临时地址的IA(请参阅“临时地址的身份关联”)
DHCPv6使用状态代码来传达来自客户端和服务器的消息中请求的操作成功或失败的信息,并提供有关消息失败具体原因的其他信息。
考虑DHCPv6中继代理/服务器和客户端通信,可以分析每种类型的消息,分别显示在debug输出中:
客户端将“Solicit”消息从本地链路发送到组播地址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中继将“Solicit”消息发送到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中继代理接收为“Relay Reply”数据包,包括:
以下是捕获信息的示例:
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 |
初始版本 |