User Manual

Table Of Contents
[Input mode]
interface mode
[Description]
Specifies the forwarding address for the DHCP relay agent function on the applicable interface.
This can only be set for VLAN interface.
The DHCP packets received on the configured VLAN interface will be forwarded to the specified IPv4 address.
If this command is executed with the "no" syntax, the setting returns to the default.
[Note]
For VLAN interface, the IPv4 address must be specified.
For this command, up to 32 for the VLAN interface can be set.
Up to five can be set for one VLAN interface with this command.
[Example]
DHCP packets received by VLAN #1 will be forwarded to 192.168.200.1.
SWX3220(config)#interface vlan1
SWX3220(config-if)#dhcp-relay server-address 192.168.200.1
10.2.3 Configuring the broadcast forward for the DHCP relay agent function
[Syntax]
dhcp-relay broadcast switch
no dhcp-relay broadcast
[Parameter]
switch : Broadcast forward operation
Setting value Description
enable Enable broadcast forward
disable Disable broadcast forward
[Initial value]
dhcp-relay broadcast disable
[Input mode]
global configuration mode
[Description]
Configure the broadcast forward for the DHCP relay agent function.
If this command is executed with the "no" syntax, the setting returns to the default.
[Note]
In the following cases, DHCP packets will be forwarded to the broadcast address.
This command is enabled.
The broadcast address is specified using the dhcp-relay server-address command.
[Example]
Enables broadcast forward.
SWX3220(config)#dhcp-relay broadcast enable
10.2.4 Show status of DHCP relay agent
[Syntax]
show dhcp relay
[Input mode]
unprivileged EXEC mode, privileged EXEC mode
458 | Command Reference | Application