3.8.5 DHCP Relay Configuration

Configure the DHCP relay agent that is used to forward and transfer DHCP messages between the clients and the server when they are not in the same subnet domain.

Command Syntax:

ip dhcp relay 
ip helper-address <v_ipv4_ucast>
ip dhcp relay information option 
ip dhcp relay information policy { drop | keep | replace }
Table 3-37. Command Description

Argument

Description

Parameter

<v_ipv4_ucast>

IP address of the DHCP relay server

Default

N.A

Mode

Global Configuration mode

Usage

Enable and configure the DHCP relay server. To disable the DHCP relay server, use the ‘no’ form of the command.

Example

Example 1:

Enable the DHCP relay server and drop the package when a DHCP message that already contains relay information is received.

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