remote-id
语法
remote-id { host-name host-name; mac (Option 82); prefix ( hostname | mac | none); use-interface-description (logical | device); use-string string; }
层次结构级别
对于具有增强型 2 级软件 (ELS) 的平台:
[edit vlans vlan-name forwarding-options dhcp-security option-82]
对于没有 ELS 的平台:
[edit ethernet-switching-options secure-access-port vlan (all | vlan-name) dhcp-option82], [edit forwarding-options helpers bootp dhcp-option82], [edit forwarding-options helpers bootp interface interface-name dhcp-option82]
描述
在将请求转发或中继到 DHCP 服务器之前,在 DHCP 请求数据包标头中插入 remote-id
DHCP 选项 82 的子选项(也称为 DHCP 中继代理信息选项)。此子选项为已将请求转发或中继到服务器的主机系统提供可信标识符。
其余语句将单独解释,其可用性取决于指定子选项的层次结构级别 remote-id
,如下所示:
语句
prefix
, 在[edit vlans vlan-name forwarding-options dhcp-security option-82]
层次结构级别不受支持。该语句
host-name
仅在[edit vlans vlan-name forwarding-options dhcp-security option-82]
层次结构级别受支持。
默认
如果未显式设置该 remote-id
语句,则不会在 DHCP 请求数据包标头中插入远程 ID 值。
如果显式设置了 remote-id
语句,但未由关键字限定,则满足以下条件:
在
[edit vlans vlan-name forwarding-options dhcp-security]
层次结构级别,默认关键字值为 interface-name。在所有其他层级,关键字的
remote-id
默认值为交换机的 MAC 地址。
配置 remote-id
时,即使未显式配置 circuit-id
,circuit-id
也会启用 。
所需权限级别
system - 在配置中查看此语句。
系统控制 - 将此语句添加到配置中。
发布信息
Junos OS 9.3 版中引入的语句。
Junos OS 版本 13.2X50-D10 中引入的层次结构级别 [edit vlans vlan-name forwarding-options dhcp-security option-82]
。(有关 ELS 的信息,请参阅 使用增强型第 2 层软件 CLI 。)