Tôi mới đến thế giới dhcp. Tôi có một thiết bị với dhcp client không nhận được địa chỉ IP một số lần. Khi tôi bắt đầu phân tích các khung dhcp thông qua Wireshark, tôi nhận được hai loại khung. Khung A là tình huống khi DHCPREQUEST lấy ACK từ máy chủ. Trong khi ở Khung B, nó không nhận được bất kỳ phản hồi nào.
[FRAME--A]
No. Time Source Destination Protocol Length Info
2093 319.751000000 0.0.0.0 255.255.255.255 DHCP 342 DHCP Request - Transaction ID 0x3239d4b2
Frame 2093: 342 bytes on wire (2736 bits), 342 bytes captured (2736 bits) Ethernet II, Src: Industri_00:b6:04 (00:0b:d8:00:b6:04), Dst: Broadcast (ff:ff:ff:ff:ff:ff) Internet Protocol Version 4, Src: 0.0.0.0 (0.0.0.0), Dst: 255.255.255.255 (255.255.255.255) User Datagram Protocol, Src Port: bootpc (68), Dst Port: bootps (67) Bootstrap Protocol
Message type: Boot Request (1)
Hardware type: Ethernet (0x01)
Hardware address length: 6
Hops: 0
Transaction ID: 0x3239d4b2
Seconds elapsed: 0
Bootp flags: 0x0000 (Unicast)
Client IP address: 0.0.0.0 (0.0.0.0)
Your (client) IP address: 0.0.0.0 (0.0.0.0)
Next server IP address: 0.0.0.0 (0.0.0.0)
Relay agent IP address: 0.0.0.0 (0.0.0.0)
Client MAC address: Industri_00:b6:04 (00:0b:d8:00:b6:04)
Client hardware address padding: 00000000000000000000
Server host name not given
Boot file name not given
Magic cookie: DHCP
Option: (53) DHCP Message Type
Length: 1
DHCP: Request (3)
Option: (50) Requested IP Address
Length: 4
Requested IP Address: 172.16.220.155 (172.16.220.155)
Option: (61) Client identifier
Length: 7
Hardware type: Ethernet (0x01)
Client MAC address: Industri_00:b6:04 (00:0b:d8:00:b6:04)
Option: (55) Parameter Request List
Length: 7
Parameter Request List Item: (1) Subnet Mask
Parameter Request List Item: (3) Router
Parameter Request List Item: (6) Domain Name Server
Parameter Request List Item: (15) Domain Name
Parameter Request List Item: (44) NetBIOS over TCP/IP Name Server
Parameter Request List Item: (46) NetBIOS over TCP/IP Node Type
Parameter Request List Item: (47) NetBIOS over TCP/IP Scope
Option: (255) End
Option End: 255
Padding
[FRAME--B]
No. Time Source Destination Protocol Length Info
135 20.969000000 0.0.0.0 255.255.255.255 DHCP 342 DHCP Request - Transaction ID 0xcc160e02
Frame 135: 342 bytes on wire (2736 bits), 342 bytes captured (2736 bits) Ethernet II, Src: Industri_00:b6:04 (00:0b:d8:00:b6:04), Dst: Broadcast (ff:ff:ff:ff:ff:ff)
Destination: Broadcast (ff:ff:ff:ff:ff:ff)
Source: Industri_00:b6:04 (00:0b:d8:00:b6:04)
Type: IP (0x0800)
Internet Protocol Version 4, Src: 0.0.0.0 (0.0.0.0), Dst: 255.255.255.255 (255.255.255.255) User Datagram Protocol, Src Port: bootpc (68), Dst Port: bootps (67) Bootstrap Protocol
Message type: Boot Request (1)
Hardware type: Ethernet (0x01)
Hardware address length: 6
Hops: 0
Transaction ID: 0xcc160e02
Seconds elapsed: 0
Bootp flags: 0x0000 (Unicast)
Client IP address: 172.16.220.155 (172.16.220.155)
Your (client) IP address: 0.0.0.0 (0.0.0.0)
Next server IP address: 0.0.0.0 (0.0.0.0)
Relay agent IP address: 0.0.0.0 (0.0.0.0)
Client MAC address: Industri_00:b6:04 (00:0b:d8:00:b6:04)
Client hardware address padding: 00000000000000000000
Server host name not given
Boot file name not given
Magic cookie: DHCP
Option: (53) DHCP Message Type
Length: 1
DHCP: Request (3)
Option: (61) Client identifier
Length: 7
Hardware type: Ethernet (0x01)
Client MAC address: Industri_00:b6:04 (00:0b:d8:00:b6:04)
Option: (55) Parameter Request List
Length: 7
Parameter Request List Item: (1) Subnet Mask
Parameter Request List Item: (3) Router
Parameter Request List Item: (6) Domain Name Server
Parameter Request List Item: (15) Domain Name
Parameter Request List Item: (44) NetBIOS over TCP/IP Name Server
Parameter Request List Item: (46) NetBIOS over TCP/IP Node Type
Parameter Request List Item: (47) NetBIOS over TCP/IP Scope
Option: (255) End
Option End: 255
Padding
Tất cả tôi đang cố gắng rút và cắm cáp mạng. Là vấn đề với DHCP client hay nó là máy chủ không được cấu hình đúng.
Bất cứ ai có thể xin vui lòng chia sẻ một số gợi ý.