Changing the DHCP Relay Agent Forwarding Policy

When the device receives a message containing relay agent information, by default the device replaces the information with its own relay agent information. This behavior can be changed if required.
You can configure the device to keep the information instead of replacing it, or to drop (discard) messages that contain relay agent information.
  1. Enter global configuration mode by using the configure terminal command.
    device# configure terminal
  2. Configure the device to keep the relay agent information contained in a DHCP message.
    device(config)# ip dhcp relay information policy keep
  3. Alternately, configure the device to drop the DHCP packet with existing relay agent Information.
    device(config)# ip dhcp relay information policy drop
  4. Configure the device back to the default behavior if required.
    device(config)# ip dhcp relay information policy replace