Chapter 24
| DHCP Commands
DHCP Relay
– 598 –
Command Usage
This command is used to configure DHCP relay functions for host devices
attached to the switch. If DHCP relay service is enabled, and this switch 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. Then, the
switch forwards the packet to the DHCP server on another network. When the
server receives the DHCP request, it allocates a free IP address for the 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., this switch). This switch then
broadcasts the DHCP response received from the server to the client.
Example
In the following example, the device is reassigned the same address.
Console#ip dhcp restart relay
Console#show ip interface
VLAN 1 is Administrative Up - Link Up
Address is 00-00-E8-93-82-A0
Index: 1001, MTU: 1500
Address Mode is DHCP
IP Address: 10.1.0.254 Mask: 255.255.255.0
Proxy ARP is disabled
DHCP Relay Server:
DHCP Client Vendor Class ID (text): SC30010
Console#
Related Commands