systemview
[Quidway] sysname SwitchA
[SwitchA] dhcp server group dhcpgroup1
[SwitchA] dhcp server group dhcpgroup1 type secure
[SwitchA] interface GigabitEthernet 0/0/1
[SwitchAGigabitEthernet0/0/1] dhcp server group dhcpgroup1
3. 配置接口加入VLAN
需要配置接口加入特定的VLAN,以确保DHCP请求可以被正确地转发到DHCP服务器。
操作命令示例:
[SwitchA] vlan 10
[SwitchA] interface GigabitEthernet 0/0/2
[SwitchAGigabitEthernet0/0/2] port linktype access
[SwitchAGigabitEthernet0/0/2] port default vlan 10
4. 配置DHCP中继功能
在SwitchA上配置DHCP中继功能,确保它能够转发不同网段的DHCP报文。