ECS4100 Series CLI Reference Guide-R07

Table Of Contents
Chapter 32
| DHCP Commands
DHCP Relay
– 872 –
DHCP Relay
This section describes commands used to configure the switch to relay DHCP
requests from local hosts to a remote DHCP server.
Global DHCP Relay settings
ip dhcp l2/l3 relay This command sets the DHCP Relay operational mode of the switch globally
to either L3 or L2 DHCP Relay. Use the no form of the command to set the
DHCP Relay operational mode to the default setting.
Syntax
ip dhcp {L2 | L3} relay
no ip dhcp relay
Table 180: DHCP Relay Option 82 Commands
Command Function Mode
Global DHCP Relay settings
ip dhcp l2/l3 relay Specifies to enable L2 or L3 DHCP Relay on a globally for
the switch.
GC
ip dhcp relay server Specifies DHCP server or relay server addresses GC
show ip dhcp relay Show the switchs global DHCP Relay setting - L2 or L3 PE
L2 DHCP Relay option
settings
ip dhcp relay information
option
Enables information 82 option to be inserted into the client
requests when utilizing L2 DHCP relay.
GC
ip dhcp relay information
option encode no-subtype
Disables the sub-type and sub-length sub-options of the
information 82 option.
GC
ip dhcp relay information
policy
Sets the information 82 forwarding policy for DHCP Relay. GC
ip dhcp relay port-enable Enables DHCP relay Information Option 82 for L2 relay on a
port
IC
ip dhcp relay information
option vlan
Enables DHCP relay Information Option 82 for L2 relay on a
VLAN
GC
DHCP Relay for IPv4
ip dhcp relay server Specifies DHCP server or relay server addresses IC
ip dhcp restart relay Enables DHCP relay agent PE
DHCP for IPv6
ipv6 dhcp relay destination Specifies a DHCPv6 server or VLAN to which client requests
are forwarded and enables DHCPv6 relay service
IC
show ipv6 dhcp relay
destination
Displays a DHCPv6 server or VLAN to which client requests
are forwarded
PE