Owners manual

DGS-1510 Series Gigabit Ethernet SmartPro Switch CLI Reference Guide
167
This example shows how a DHCP relay pool “pool2” is created. In the relay pool, the subnet
172.19.18.0.0/255.255.255.0 is specified as the source subnet and 10.2.1.10 is specified as the relay
destination address.
Switch# configure terminal
Switch(config)# ip dhcp pool pool2
Switch(config-dhcp-pool)# relay source 172.19.18.0 255.255.255.0
Switch(config-dhcp-pool)# relay destination 10.2.1.10
Switch(config-dhcp-pool)#
16-21 relay target
This command is used to specify a DHCP relay target for relaying packets that matches the value pattern
of the option defined in the class. Use the no form of the command to delete a relay target.
relay target IP-ADDRESS
no relay target IP-ADDRESS
Parameters
IP-ADDRESS
Specifies the relay target server IP address for the class.
Default
None.
Command Mode
DHCP Pool Class Configuration Mode.
Command Default Level
Level: 12.
Usage Guideline
In a DHCP relay pool, administrators can further use the class command and the relay target command
to associate a list of relay target addresses with a DHCP class. When the client request matches a relay
pool and the DHCP relay pool is defined with classes, the client request must match a class specified in
the pool in order to be relayed. If the packet does not match any class in the pool, the packet will not be
replayed. If the matched relay pool has no class defined, then the request will be relayed to the relay
destination of the matched relay pool. Multiple relay target commands can be specified for a class. If a
packet matches the class, the packet will be forwarded to all of the relay targets.
If the relay target command is not configured for a class, the relay target follows the relay destination
specified for the pool. The DHCP packet will not be relayed, if the interface that receives the packet has
no IP address configured.
Example
This example shows how to configure a DHCP relay target for relaying packets that matches the value
pattern of the option defined in the class.