The set protocols dhcp relay interface relay-agent-address command configures the IP address of the DHCP relay agent.
set protocols dhcp relay interface <vlan-interface-name> relay-agent-address <agent-ipv4-address>
Specifies an L3 VLAN interface name. The value is a string.
Specifies the IP address of the DHCP relay agent. The value is in dotted decimal notation.
DHCP relay agent address is a required configuration in VRRP topology, when the VRRP Master/Backup devices are used as the DHCP relay agents, you must configure the DHCP relay agent address to the virtual IP address of the VRRP group.
The interface name here should be configured with the L3 VLAN interface which is enabled with DHCP relay and VRRP group.
However, in a non-VRRP topology, there’s no need to configure the DHCP relay agent address. By default, the system sets the IP address of the L3 VLAN interface that is enabled with the DHCP relay as the DHCP relay agent address.
The system supports multiple DHCP relay agent addresses on a switch, one DHCP relay agent address for each VRRP group.
- Configure a DHCP relay agent address on L3 VLAN interface vlan100.