Добрый день.
Прошу помощи, т.к. у самого уже мысли кончились.
Схема простая: DHCP сервер <=> коммутатор с поддержкой Opt82 и DHCP relay <=> Неуправляемый коммутатор 8 портов <=> Потребители.
Проблема:
Если потребителей <= 3, то все нормально функционируют и нормально получают IP.
Вот трейс:
19:12:50.870634 IP (tos 0x0, ttl 64, id 0, offset 0, flags [none], proto UDP (17), length 610)
0.0.0.0.68 > 255.255.255.255.67: BOOTP/DHCP, Request from a8:f9:4b:23:c2:0d, length 582, xid 0x441e2e1a, Flags [none]
Client-Ethernet-Address a8:f9:4b:23:c2:0d
Vendor-rfc1048 Extensions
Magic Cookie 0x63825363
DHCP-Message Option 53, length 1: Discover
Client-ID Option 61, length 7: ether a8:f9:4b:23:c2:0d
Hostname Option 12, length 11: "eltex-nv102"
Vendor-Class Option 60, length 36: "Eltex-NV102-fs_nv102_141110_0.201.10"
MSZ Option 57, length 2: 576
Parameter-Request Option 55, length 8:
Subnet-Mask, Default-Gateway, Domain-Name-Server, Hostname
Domain-Name, BR, NTP, Vendor-Option
Agent-Information Option 82, length 32:
Circuit-ID SubOption 1, length 4: ^@M-H^@^C
Remote-ID SubOption 2, length 6: M-|M-zM-wM-?vM-,
Unknown SubOption 9, length 16:
0x0000: 0000 0cf8 0b01 0953 575f 4143 4345 5353
19:12:50.871140 IP (tos 0x10, ttl 128, id 0, offset 0, flags [none], proto UDP (17), length 342)
10.10.155.1.67 > 10.0.5.3.68: BOOTP/DHCP, Reply, length 314, xid 0x441e2e1a, Flags [none]
Your-IP 10.0.5.3
Client-Ethernet-Address a8:f9:4b:23:c2:0d
file "AMINET.txt"
Vendor-rfc1048 Extensions
Magic Cookie 0x63825363
DHCP-Message Option 53, length 1: Offer
Server-ID Option 54, length 4: 10.10.155.1
Lease-Time Option 51, length 4: 300
Subnet-Mask Option 1, length 4: 255.255.0.0
Default-Gateway Option 3, length 4: 10.0.0.1
Domain-Name-Server Option 6, length 4: 10.0.0.1
NTP Option 42, length 4: 10.0.0.1
Agent-Information Option 82, length 32:
Circuit-ID SubOption 1, length 4: ^@M-H^@^C
Remote-ID SubOption 2, length 6: M-|M-zM-wM-?vM-,
Unknown SubOption 9, length 16:
0x0000: 0000 0cf8 0b01 0953 575f 4143 4345 5353
19:12:50.873803 IP (tos 0x0, ttl 64, id 0, offset 0, flags [none], proto UDP (17), length 610)
0.0.0.0.68 > 255.255.255.255.67: BOOTP/DHCP, Request from a8:f9:4b:23:c2:0d, length 582, xid 0x441e2e1a, Flags [none]
Client-Ethernet-Address a8:f9:4b:23:c2:0d
Vendor-rfc1048 Extensions
Magic Cookie 0x63825363
DHCP-Message Option 53, length 1: Request
Client-ID Option 61, length 7: ether a8:f9:4b:23:c2:0d
Hostname Option 12, length 11: "eltex-nv102"
Vendor-Class Option 60, length 36: "Eltex-NV102-fs_nv102_141110_0.201.10"
Requested-IP Option 50, length 4: 10.0.5.3
Server-ID Option 54, length 4: 10.10.155.1
Parameter-Request Option 55, length 8:
Subnet-Mask, Default-Gateway, Domain-Name-Server, Hostname
Domain-Name, BR, NTP, Vendor-Option
Agent-Information Option 82, length 32:
Circuit-ID SubOption 1, length 4: ^@M-H^@^C
Remote-ID SubOption 2, length 6: M-|M-zM-wM-?vM-,
Unknown SubOption 9, length 16:
0x0000: 0000 0cf8 0b01 0953 575f 4143 4345 5353
19:12:50.874748 IP (tos 0x10, ttl 128, id 0, offset 0, flags [none], proto UDP (17), length 342)
10.10.155.1.67 > 10.0.5.3.68: BOOTP/DHCP, Reply, length 314, xid 0x441e2e1a, Flags [none]
Your-IP 10.0.5.3
Client-Ethernet-Address a8:f9:4b:23:c2:0d
file "AMINET.txt"
Vendor-rfc1048 Extensions
Magic Cookie 0x63825363
DHCP-Message Option 53, length 1: ACK
Server-ID Option 54, length 4: 10.10.155.1
Lease-Time Option 51, length 4: 300
Subnet-Mask Option 1, length 4: 255.255.0.0
Default-Gateway Option 3, length 4: 10.0.0.1
Domain-Name-Server Option 6, length 4: 10.0.0.1
NTP Option 42, length 4: 10.0.0.1
Agent-Information Option 82, length 32:
Circuit-ID SubOption 1, length 4: ^@M-H^@^C
Remote-ID SubOption 2, length 6: M-|M-zM-wM-?vM-,
Unknown SubOption 9, length 16:
0x0000: 0000 0cf8 0b01 0953 575f 4143 4345 5353
Если же потребителей больше 3, то именно на неуправляемом коммутаторе теряется пакет Offer (ответ от сервера).
И на сервере бесконечно повторяются вот эти два пакета.
18:50:44.596551 IP (tos 0x0, ttl 64, id 0, offset 0, flags [none], proto UDP (17), length 610)
0.0.0.0.68 > 255.255.255.255.67: BOOTP/DHCP, Request from a8:f9:4b:23:c2:0d, length 582, xid 0x7a039f5a, Flags [none]
Client-Ethernet-Address a8:f9:4b:23:c2:0d
Vendor-rfc1048 Extensions
Magic Cookie 0x63825363
DHCP-Message Option 53, length 1: Discover
Client-ID Option 61, length 7: ether a8:f9:4b:23:c2:0d
Hostname Option 12, length 11: "eltex-nv102"
Vendor-Class Option 60, length 36: "Eltex-NV102-fs_nv102_141110_0.201.10"
MSZ Option 57, length 2: 576
Parameter-Request Option 55, length 8:
Subnet-Mask, Default-Gateway, Domain-Name-Server, Hostname
Domain-Name, BR, NTP, Vendor-Option
Agent-Information Option 82, length 32:
Circuit-ID SubOption 1, length 4: ^@M-H^@^C
Remote-ID SubOption 2, length 6: M-|M-zM-wM-?vM-,
Unknown SubOption 9, length 16:
0x0000: 0000 0cf8 0b01 0953 575f 4143 4345 5353
18:50:44.597057 IP (tos 0x10, ttl 128, id 0, offset 0, flags [none], proto UDP (17), length 342)
10.10.155.1.67 > 10.0.5.3.68: BOOTP/DHCP, Reply, length 314, xid 0x7a039f5a, Flags [none]
Your-IP 10.0.5.3
Client-Ethernet-Address a8:f9:4b:23:c2:0d
file "AMINET.txt"
Vendor-rfc1048 Extensions
Magic Cookie 0x63825363
DHCP-Message Option 53, length 1: Offer
Server-ID Option 54, length 4: 10.10.155.1
Lease-Time Option 51, length 4: 300
Subnet-Mask Option 1, length 4: 255.255.0.0
Default-Gateway Option 3, length 4: 10.0.0.1
Domain-Name-Server Option 6, length 4: 10.0.0.1
NTP Option 42, length 4: 10.0.0.1
Agent-Information Option 82, length 32:
Circuit-ID SubOption 1, length 4: ^@M-H^@^C
Remote-ID SubOption 2, length 6: M-|M-zM-wM-?vM-,
Unknown SubOption 9, length 16:
0x0000: 0000 0cf8 0b01 0953 575f 4143 4345 5353
Кстати если потребитель комп с виндой, то он также не может получить IP, но по таймауту примерно 60 сек. винда отправляет Discover с bootp flags: Broadcast и ей Offer также возвращается броадкастом и она всетаки получает IP.
Подскажите как мне исправить ситуацию.