Default
None.
Command Mode
DHCP Pool Configuration Mode.
Command Default Level
Level: 12.
Usage Guideline
In a DHCP relay pool, the user can use this command to associate a DHCP pool class, and then use
relay target to set a list of relay target addresses for DHCP packet forwarding. When the client request
matches a relay pool which is configured with classes, the client must also match a class configured
in the pool in order to be relayed. If there is no class configured in a relay pool, the client will be
relayed to the relay destination server specified for the matched relay pool when the client matches
the relay pool.
Example
This example shows how to a DHCP class, “Service-A”, is configured, defined with DHCP option 60
matching pattern 0x112233 and 0x102030, classified to the relay pool, "pool1", and is associated with
relay target "10.2.1.2".
Switch# configure terminal
Switch(config)# ip dhcp class Service-A
Switch(config-dhcp-class)# option 60 hex 112233
Switch(config-dhcp-class)# option 60 hex 102030
Switch(config-dhcp-class)# exit
Switch(config)# ip dhcp pool pool1
Switch(config-dhcp-pool)# relay source 172.19.18.0 255.255.255.0
Switch(config-dhcp-pool)# class Service-A
Switch(config-dhcp-pool-class)# relay target 10.2.1.2
Switch(config-dhcp-pool-class)#
17-2 ip dhcp class (DHCP relay)
This command is used to define a DHCP class and enter the DHCP class configuration mode. Use
the no form of this command to remove a DHCP class.
ip dhcp class NAME
no ip dhcp class NAME