dhcp-relay option 82

Syntax

dhcp-relay option 82 {replace [validate] | drop [validate] | keep | validate [replace | drop]} [ip | mac]

no dhcp-relay option 82

Description

Configures the behavior of DHCP relay option 82.

The no form of this command disables support for DHCP relay option 82.

Command context

config

Parameters

replace

Replace the existing option 82 field in an inbound client DHCP packet with the information from the switch. The remote ID and circuit ID information from the first relay agent is lost. Default.

validate

Validate option 82 information in DHCP server responses and drop invalid responses.

drop

Drop any inbound client DHCP packet that contain option 82 information.

keep

Keep the existing option 82 field in an inbound client DHCP packet. The remote ID and circuit ID information from the first relay agent is preserved.

ip

Use the IP address of the interface on which the client DHCP packet entered the switch as the option 82 remote ID.

mac

Use the MAC address of the switch as the option 82 remote ID. Default.

Authority

Administrators

Example

This example enables DHCP option 82 support and replaces all option 82 information with the values from the switch with the switch MAC address as the remote ID.

switch(config)# dhcp-relay option 82 replace mac