DGS-6604
m
accept dhcp relay-agent
CLI Reference Guide
32
accept dhcp relay-agent
To accept relay agent information use the accept dhcp relay-agent command,
use the no form of the command to reject DHCP relay agent information.
accept dhcp relay-agent [circuit-id|remote-id]
no accept dhcp relay-agent [circuit-id|remote-id]
Default
DHCP relay-agent is not accepted.
Command Mode
DHCP pool configuration
Usage Guideline
If either of circuit-id and remote-id is not specified, it implies that both the circuit-
id and remote-id options are applied with the command. If only the circuit-id or
remote-id is specified, it implies that it only accepts DHCP packets containing
either only a circuit-id or a remote-id.
Examples
The following example sets DHCP pool1 to accept circuit id and remote id relay
agent information.
The following example sets DHCP pool1 to not accept remote id relay agent
information.
Syntax Description
circuit-id
(Optional) Agent Circuit ID Sub-option.
remote-id
(Optional) Agent Remote ID Sub-option
switch > enable
switch# configure terminal
switch(config)# ip dhcp pool pool1
switch(config-dhcp)# accept dhcp relay-agent
switch(config-dhcp)#
switch > enable
switch# configure terminal
switch(config)# ip dhcp pool pool1
switch(config-dhcp)# no accept dhcp relay-agent remote-id
switch(config-dhcp)#