xStack® DGS-3420 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide
278
Chapter 20
DHCP Local Relay
Commands
config dhcp_local_relay vlan <vlan_name 32> state [enable | disable]
config dhcp_local_relay vlan vlanid <vlan_id 1-4094> state [enable | disable]
20-1 config dhcp_local_relay vlan
Description
This command is used to configure the DHCP local relay option for this Switch. The Switch will not, by
default, broadcast DHCP packets on any VLAN for which a DHCP relay is configured. DHCP packets
will be intercepted, and only be relayed to the servers specified in the dhcp_relay command. This is
done to minimise the risk with rogue DHCP servers.
Enabling the dhcp_local_relay feature will restore the broadcast behaviour, and cause DHCP
packets to also be broadcasted on the specified VLAN.
Note: When dhcp_local_relay is enabled, the Switch will automatically add a DHCP Option
82 and the source MAC address and gateway address in the packet will remain
Format
config dhcp_local_relay vlan <vlan_name 32> state [enable | disable]
Parameters
<vlan_name 32> - Specify the name of the VLAN to be enabled for DHCP local relay.
state - Enable or disable DHCP local relay for a specified VLAN.
enable - Enable DHCP local relay for a specified VLAN.
disable - Disable DHCP local relay for a specified VLAN.
Restrictions
Only Administrator, Operator and Power-User level users can issue this command.
Example
To enable DHCP local relay for the default VLAN: