您可以在 DHCP 批发网络中使用 DHCP 中继、DHCP 中继代理或 DHCP 本地服务器配置。DHCP 配置是在 [edit forwarding-options]
层次结构级别上定义的。
注意:
此批发解决方案的配置使用 DHCP 中继。
要配置 DHCPv4 中继转发选项:
[edit forwarding-options dhcp-relay]
访问层次结构。
[edit]
user@host# edit forwarding-options dhcp-relay
- 指定要配置身份验证选项并使用外部 AAA 身份验证服务。
[edit forwarding-options dhcp-relay]
user@host# edit authentication
- (可选)配置用于向外部身份验证服务验证用户名的密码。
- (可选)配置可选功能以创建唯一用户名。
- 指定要附加到访问路由器的所有 DHCP 订阅者的默认动态配置文件。
[edit forwarding-options dhcp-relay]
user@host# set dynamic-profile Wholesaler_Profile
- 为默认 DHCP 中继配置指定任何覆盖。
- 为默认(批发商)DHCP 服务器访问配置命名服务器组。
[edit forwarding-options dhcp-relay]
user@host# edit server-group Wholesaler_Group
- 指定默认(批发)组的 DHCP 服务器地址。
[edit forwarding-options dhcp-relay server-group “Wholesaler_Group”]
user@host# set 192.168.100.1
- 将默认(批发)组指定为活动服务器组。
[edit forwarding-options dhcp-relay]
user@host# set active-server-group Wholesaler_Group
- 配置可用于定义批发 DHCP 接入接口的组。
[edit forwarding-options dhcp-relay]
user@host# edit group Wholesaler_Group
- 指定所有 DHCP 订阅者在首次访问路由器时使用的默认(批发)接口。
[edit forwarding-options dhcp-relay group “Wholesaler_Group”]
user@host# set interface ge-2/3/0.1
- 配置可用于定义零售 DHCP 接口的组。
[edit forwarding-options dhcp-relay]
user@host# edit group Retailer1_Group
- 指定 DHCP 订阅者在重定向后使用的逻辑接口。
[edit forwarding-options dhcp-relay group “Retailer1_Group”]
user@host# set interface ge-2/3/0.2
- 对其他零售商组重复步骤 12 和 13。
在此解决方案示例中,您配置另一个组名“Retailer2_Group”并为逻辑接口指定 ge-2/3/0.3
。
- (可选)为您创建的任何组配置用于向外部身份验证服务验证用户名的任何密码。
- (可选)配置可选功能,以便为您创建的任何组创建唯一的用户名。
- (可选)为您创建的任何 DHCP 中继组配置指定任何替代。