DGS-1510 Series Gigabit Ethernet SmartPro Switch CLI Reference Guide
156
17.
DHCP Relay Commands
17-1
class (DHCP relay)
This command is used to enter the DHCP pool configuration mode and associate a range of IP
addresses with the DHCP class. Use the
no
form of this command to remove the association.
class NAME
no class NAME
Parameters
NAME
Specifies the DHCP class name with a maximum of 32 characters.
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
Содержание DGS-510
Страница 1: ...1 ...
Страница 287: ...DGS 1510 Series Gigabit Ethernet SmartPro Switch CLI Reference Guide 284 ...
Страница 321: ...DGS 1510 Series Gigabit Ethernet SmartPro Switch CLI Reference Guide 318 ...
Страница 493: ...DGS 1510 Series Gigabit Ethernet SmartPro Switch CLI Reference Guide 490 ...
Страница 733: ...DGS 1510 Series Gigabit Ethernet SmartPro Switch CLI Reference Guide 730 ...