ECS4100 Series CLI Reference Guide-R07

Table Of Contents
Chapter 32
| DHCP Commands
DHCP Relay
– 873 –
L2 -Configures the switch as an L2 DHCP Relay agent.
L3 -Configures the switch as an L3 DHCP Relay agent.
Default Setting
L3
Command Mode
Global Configuration
Usage Guidelines
Using the switch as an L3 DHCP Relay agent requires at least one connection to
the client’s subnet plus a valid route to the DHCP Servers network.
Use the switch as an L2 DHCP Relay agent when the switch is an intermediate
device between the L3 DHCP Agent and the client’s connected device.
Example
Console(config)#ip dhcp l2 relay
Console(config)#
ip dhcp relay server This command specifies the DHCP server or relay server addresses to use. Use the
no form to clear all addresses.
Syntax
ip dhcp relay server address1 [address2 [address3 [address4 [address5]]]]
no ip dhcp relay server
address - IP address of DHCP server. (Range: 1-5 addresses)
Default Setting
None
Command Mode
Global Configuration
Usage Guidelines
DHCP relay service applies to DHCP client requests received on any configured
VLAN, both the management VLAN and non-management VLANs.
This command is used to configure DHCP relay for host devices attached to the
switch. If DHCP relay service is enabled (using the ip dhcp relay information
option command), and this switch sees a DHCP client request, it inserts its own
IP address into the request so that the DHCP server will know the subnet where
the client is located. Then, the switch forwards the packet to a 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