ip dhcp-relay (for a port)

Configure Dynamic Host Configuration Protocol (DHCP) Relay on an interface. The command no ip dhcp-relay disables DHCP Relay but does not delete the DHCP entry.

Syntax

Command Parameters

broadcast
Enables the device to send the server reply as a broadcast to the end station. After you disable this variable, the device sends the server reply as a unicast to the end station.
circuitId
Enables the device to insert the Option 82 Circuit ID into the packets sent to the server (enables DHCP Option 82). The default is disabled.
clear-counter
Clears the dhcp-relay counter.
max-hop <1-16>
Configures the maximum number of hops before a BootP/DHCP packet is discarded (1-16). The default is 4.
min-sec <0-65535>
Configures the minimum seconds count for Dynamic Host Configuration Protocol (DHCP). If the secs field in the BootP/DHCP packet header is greater than this value, the device relays or forwards the packet; otherwise, the packet is dropped (0- 65535). The default is 0 seconds.
mode <bootp|dhcp|bootp_dhcp>
Configures DHCP mode to forward BootP messages only, Dynamic Host Configuration Protocol (DHCP) messages only, or both. The default is both.
remoteId
Enables the device to insert the Option 82 Remote ID into the packets sent to the server (enables DHCP Option 82). The default is disabled.
trusted
Configures the circuit as trusted in an Option 82 context.

Default

None

Command Mode

GigabitEthernet Interface Configuration