interface (DHCP Relay Agent)
语法
interface dhcp-interface-name { access-profile profile-name; exclude; overrides { allow-no-end-option allow-snooped-clients; always-write-giaddr; always-write-option-82; asymmetric-lease-time seconds; asymmetric-prefix-lease-time seconds; client-discover-match <option60-and-option82 | incoming-interface>; client-negotiation-match incoming-interface; disable-relay; dual-stack dual-stack-group-name; interface-client-limit number; layer2-unicast-replies; no-allow-snooped-clients; proxy-mode; relay-source replace-ip-source-with; send-release-on-delete; trust-option-82; } service-profile dynamic-profile-name; short-cycle-protection <lockout-min-time seconds> <lockout-max-time seconds>; trace; upto upto-interface-name; }
层次结构级别
[edit forwarding-options dhcp-relay dhcpv6 group group-name], [edit forwarding-options dhcp-relay group group-name], [edit logical-systems logical-system-name forwarding-options dhcp-relay ...], [edit logical-systems logical-system-name routing-instances routing-instance-name forwarding-options dhcp-relay ...], [edit routing-instances routing-instance-name forwarding-options dhcp-relay ...]
描述
指定启用了 DHCP 或 DHCPv6 中继代理的指定组中的一个或多个接口或接口范围。您可以重复该 interface interface-name
语句以在一个组中指定多个接口,但不能在多个组中指定相同的接口。此外,不能使用 DHCP 本地服务器正在使用的接口。在层次结构级别使用该 [edit ... dhcpv6]
语句配置 DHCPv6 支持。
EX 系列交换机不支持 DHCPv6。
集成路由和桥接 (IRB) 配置支持 DHCP 值。在使用 DHCP 的网络中配置 IRB 接口时,DHCP 信息(例如,身份验证、地址分配等)将在关联的网桥域中传播。这使 DHCP 服务器能够配置驻留在桥接域中的客户端 IP 地址。IRB 目前仅支持静态 DHCP 配置。.
选项
exclude
— 从组中排除一个接口或接口范围。此选项和 overrides
选项是互斥的。
interface-name
—接口的名称。您可以多次重复此选项。
overrides
— 覆盖接口的指定默认配置设置。该 overrides
语句将单独描述。
upto-interface-name
— 接口范围的上限;范围的下限是接口名称条目。的upto-interface-name
接口设备名称必须与 的设备interface-name
名称相同。
其余语句将单独解释。有关详细信息,请在 CLI 资源管理器 中搜索语句,或单击语法部分中的链接语句。
所需权限级别
接口 — 在配置中查看此语句。
接口控制 — 将此语句添加到配置中。
发布信息
Junos OS 8.3 版中引入的语句。
Junos OS 9.1 版中引入的选项 upto
和 exclude
。
Junos OS 11.4 版中引入的 [edit ... dhcpv6]
层次结构级别的支持。