Протестировал.
Виновата опция "
option_82 check", установленная в "
enable". Стоит сделать "disable" - и параметры 82 опции начинают вставлятся. Это касается версий прошивок и 4.10, и 4.20. В ревизиях A1 и B1 с включенной опцией такой проблемы нет. Клиент подключен напрямую и option_82 в DHCP Request, естественно не проставляет (проверил WireShark'ом).
Тем временем выплыла другая проблема, и она куда существенней.
DHCP [Relay] похоже, отрабатывает
после всех ACL, так что до тех пор, пока мы не удаляем правило 4 в листинге ниже, DHCP-пакеты от клиента не уходят вовсе. В ревизии A1 и B1 правило 4 мы создавали под номером 255, кстати.
Код:
# Allow ARP with user's ip-addresses (/29 per port)
create access_profile profile_id 1 profile_name allow_arp_ip packet_content_mask offset_chunk_1 3 0x0000FFFF offset_chunk_2 7 0x0000FFFF offset_chunk_3 8 0xFFF80000
# Allow user's ip-addresses (/29 per port)
create access_profile profile_id 2 profile_name allow_ip ip source_ip_mask 255.255.255.248
# Common rule: deny any ARP
create access_profile profile_id 3 profile_name deny_any_arp ethernet ethernet_type
# Common rule: Deny any IP
create access_profile profile_id 4 profile_name deny_any_ip ip source_ip_mask 000.000.000.000
# Allow ARP with sender ip net 10.53.129.8 at port 1
config access_profile profile_id 1 add access_id 1 packet_content offset_chunk_1 0x0000806 offset_chunk_2 0x00000A35 offset_chunk_3 0x81080000 port 1 permit counter enable
# Allow IP packets with ip net 10.53.129.8 at port 1
config access_profile profile_id 2 add access_id 1 ip source_ip 10.53.129.8 port 1 permit
# Deny any other ARP at port 1
config access_profile profile_id 3 add access_id 1 ethernet ethernet_type 0x0806 port 1 deny
# Deny any other IP at port 1
config access_profile profile_id 4 add access_id 1 ip source_ip 000.000.000.000 port 1 deny
Аналогичная конструкция на предыдущих коммутаторах (с "обычными" offset, понятно, вместо offset_chunk) работала великолепно.
Что прикажете делать?
Ругань below
P.S. Отдельный луч ненависти и поноса программерам за невозможность теперь иметь более чем один PCF, невозможность просмотреть отдельное правило в ACL (нет команды show access_profile profile_id 1 access_id XXX) и отсутствие счётчиков на обычных правилах