How to configure DHCP Relay on a HP A5120 switch.
To do this you need to go in the system-view of the switch. As followed you need to configured the DHCP Option in the switch. You can do this by:
# dhcp enable #
Now you need to configure a Server-group where you configure the DHCP server where the clients can find their addresses.
# dhcp relay server-group 0 ip <server ip address> #
Configure some vlans if you don’t have some.
# vlan 1 igmp-snooping enable # vlan 2 name Wi-Fi # vlan 3 name Management # interface Vlan-interface1 ip address xxx.xxx.xx1.249 255.255.255.0 # interface Vlan-interface2 ip address xxx.xxx.xx2.249 255.255.255.0
You need to specify the following commands to enable the dhcp relay on the vlan interface.
dhcp select relay dhcp relay server-select 0
After this you can configure your DHCP server with the correct addresses for the created vlan. Which should archive an IP address from the server.