# DHCP: DHCPDISCOVER中缺少选项82（中继代理信息），服务器忽略请求

- **ID:** `networking/dhcp-option-82-missing`
- **领域:** networking
- **类别:** protocol_error
- **验证级别:** ai_generated
- **修复率:** 90%

## 根因

配置为需要选项82（RFC 3046）进行DHCP侦听的中继代理或交换机未将选项插入客户端DHCPDISCOVER报文中，导致DHCP服务器静默丢弃请求。

## 版本兼容性

| 版本 | 状态 | 引入 | 弃用 |
|------|------|------|------|
| Cisco IOS 15.2(7)E | active | — | — |
| ISC DHCP Server 4.4.2-P1 | active | — | — |
| dnsmasq 2.86 | active | — | — |

## 解决方案

1. ```
   Enable DHCP snooping trust on the switch port facing the DHCP server and configure Option 82 insertion: ip dhcp snooping trust; interface GigabitEthernet0/1; ip dhcp snooping information option allow-untrusted
   ```
2. ```
   On the DHCP server, disable Option 82 validation: in /etc/dhcp/dhcpd.conf, add 'allow unknown-clients;' and 'ignore option-82;' then restart the service.
   ```
3. ```
   Upgrade the switch firmware to a version that correctly supports RFC 3046 Option 82 insertion.
   ```

## 无效尝试

- **** — The client is sending valid DHCPDISCOVER packets; the issue is on the relay/switch side not inserting Option 82. (95% 失败率)
- **** — This avoids the error but defeats the purpose of DHCP and is not scalable for large deployments. (70% 失败率)
- **** — Disabling DHCP snooping reduces network security by allowing rogue DHCP servers; it should only be done as a last resort. (60% 失败率)
