ECS4100 Series CLI Reference Guide-R07

Table Of Contents
Chapter 32
| DHCP Commands
DHCP Relay
– 874 –
subnet, and sends a DHCP response back to the DHCP relay agent (i.e., this
switch). This switch then passes the DHCP response received from the server to
the client.
You must specify the IP address for at least one active DHCP server. Otherwise,
the switchs DHCP relay agent will not be able to forward client requests to a
DHCP server. Up to five DHCP servers can be specified in order of preference.
If any of the specified DHCP server addresses are not located in the same
network segment with this switch, use the ip default-gateway or ipv6 default-
gateway command to specify the default router through which this switch can
reach other IP subnetworks.
Example
Console(config)#ip dhcp relay server 192.168.10.19
Console(config)#
show ip dhcp relay This command displays the operational mode and parameters of the DHCP
relay server.
Syntax
show ip dhcp relay [interface interface]
interface
ethernet unit/port
unit - Unit identifier. (Range: 1)
port - Port number. (Range: 1-12/26/28/52)
port-channel channel-id (Range: 1-16)
Command Mode
Privileged Exec
Example
Console#show ip dhcp relay
L2 relay: enabled.
Status of DHCP relay information:
Insertion of relay information: enabled.
DHCP option policy: keep.
DHCP relay-server address: 10.2.1.254
0.0.0.0
0.0.0.0
0.0.0.0
0.0.0.0
DHCP sub-option format: extra subtype included
DHCP relay is configured on the following VLANs:
1
Interface Information Option Status
---------- --------------------------