set protocols dhcp relay interface relay-agent-address
The set protocols dhcp relay interface relay-agent-address command configures the IP address of the DHCP relay agent.
Command Syntax
set protocols dhcp relay interface <l3-interface-name> relay-agent-address <agent-ipv4-address>
Parameters
Parameter | Description |
interface <l3-interface-name> | Specifies an L3 interface name. The value could be the VLAN interface name, the loopback interface name, the routed interface or the sub-interface name. |
relay-agent-address <agent-ipv4-address> | Specifies the IP address of the DHCP relay agent. The value is in dotted decimal notation. |
Usage Guidelines
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 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 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.
Example
- Configure a DHCP relay agent address on L3 VLAN interface vlan100.
admin@Xorplus# set protocols vrrp interface vlan100 vrid 1 ip 192.168.1.5 admin@Xorplus# set protocols dhcp relay interface vlan100 relay-agent-address 192.168.1.5 admin@Xorplus# commit
Copyright © 2024 Pica8 Inc. All Rights Reserved.