ip dhcp relay information policy

Configures the Dynamic Host Configuration Protocol (DHCP) relay information policy.
Syntax
ip dhcp relay information policy [ drop | keep | replace ]
Command Default

The device replaces the information with its own relay agent information.

Parameters
drop
Configures the device to discard messages containing relay agent information.
keep
Configures the device to keep the existing relay agent information.
replace

Configures the device to overwrite the relay agent information with the information in the configuration.

Modes

Global configuration mode

Usage Guidelines

When the device receives a DHCP message that contains relay agent information, if desired, you can configure the device to keep the information instead of replacing it, or to drop (discard) messages that contain relay agent information.

Examples

The following example configures the device to keep the relay agent information contained in a DHCP message.

device# configure terminal
device(config)# ip dhcp relay information policy keep

The following example configures the device to drop DHCP packets with existing relay agent information.

device# configure terminal
device(config)# ip dhcp relay information policy drop