ip dhcp restart relay

This command enables DHCP relay for the specified VLAN. Use the
no
form to
disable it.
Syntax
[no] ip dhcp relay
Default Setting
Disabled
Command Mode
Interface Configuration (VLAN)
Command Usage
This command is used to configure DHCP relay functions for host devices
attached to the switch. If DHCP relay servi ce is enabled, and this sw itch sees
a DHCP request broadcast, it inserts its own IP address into the request so
the DHCP server will know the subnet where the client is located. T hen, the
switch forwards the packet to the DHCP serv er on anot her network. W hen the
server receives the DHCP request, it al locates a free IP a ddre ss for t he DHCP
client from its defined scope for the DHCP client’s subnet, and sends a DHCP
response back to the DHCP relay agent (i.e., thi s switch). This sw itch then
broadcasts the DHCP response received from the server to the client.
Example
In the following example, the device is reassigned the same add ress.
Console(config)#interface vlan 1
Console(config-if)#ip dhcp relay
Console(config-if)#end
Console#show ip interface
Vlan 1 is up, addressing mode is Dhcp
Interface address is 10.1.0.254, mask is 255.255.255.0, Primary
MTU is 1500 bytes
Proxy ARP is disabled
Split horizon is enabled
Console#
Related Commands
ip dhcp relay server (39-4)

39-3

DHCP Relay
Table 39-3 DHCP Relay Commands
Command Function
ip dhcp restart relay Enables DHCP relay agent
ip dhcp relay server Specifies DHCP server addresses for relay
Mode Page
IC 39-3
IC 39-4

DHCP Relay

39