Ip dhcp restart relay – LevelOne GTL-2691 User Manual

Page 1366

Advertising
background image

C

HAPTER

46

| DHCP Commands

DHCP Relay for IPv4

– 1366 –

R

ELATED

C

OMMANDS

ip dhcp restart relay (1366)

ip dhcp restart relay

This command enables DHCP relay for the specified VLAN. Use the no form

to disable it.

D

EFAULT

S

ETTING

Disabled

C

OMMAND

M

ODE

Privileged Exec

C

OMMAND

U

SAGE

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.

E

XAMPLE

In the following example, the device is reassigned the same address.

Console(config)#ip dhcp restart relay

Console(config)#end

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 Inform is disabled

Console#

R

ELATED

C

OMMANDS

ip dhcp relay server (1365)

Advertising