Chapter 26
| DHCP Commands
DHCP Relay
– 737 –
DHCP Relay
This section describes commands used to configure DHCP relay functions for host
devices attached to the switch.
DHCP for IPv4
ip dhcp relay server This command specifies the addresses of DHCP servers to be used by the switch’s
DHCP relay agent. Use the no form to clear all addresses.
Syntax
ip dhcp relay server address1 [address2 [address3 ...]]
no ip dhcp relay server
address - IP address of DHCP server. (Range: 1-3 addresses)
Default Setting
None
Command Mode
Interface Configuration (VLAN)
Usage Guidelines
â—† You must specify the IP address for at least one DHCP server. Otherwise, the
switch’s DHCP relay agent will not forward client requests to a DHCP server.
â—† To start DHCP relay service, enter the ip dhcp restart relay command.
Example
Console(config)#interface vlan 1
Console(config-if)#ip dhcp relay server 10.1.0.99
Console(config-if)#
Table 149: DHCP Relay Commands
Command Function Mode
DHCP for IPv4
ip dhcp relay server Specifies DHCP server addresses for relay 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