ip dhcp-relay (for an MLT)

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

{A.B.C.D}
Creates a forwarding path to the DHCP server with a mode and a state. A.B.C.D is the IP address of the server. The default IP address of the relay is the address of the interface.
Tip

Tip

If the relay is a Virtual Router configured on this interface, you must set the vrid.

{A.B.C.D} {A.B.C.D}
The first IP address is the IP address of the dhcp-relay agent, while the second one is the IP address of the server.
<bootp|dhcp|bootp_dhcp>
Configures DHCP mode to forward BootP messages only, DHCP messages only, or both. The default is both.
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).
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 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, 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).
trusted
Configures the circuit as trusted in an Option 82 context.

Default

None

Command Mode

MLT Interface Configuration