DGS-1510 Series Gigabit Ethernet SmartPro Switch CLI Reference Guide
151
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-1510 Series
Страница 1: ...1 0 ...
Страница 27: ...DGS 1510 Series Gigabit Ethernet SmartPro Switch CLI Reference Guide 24 ...
Страница 281: ...DGS 1510 Series Gigabit Ethernet SmartPro Switch CLI Reference Guide 278 ...
Страница 315: ...DGS 1510 Series Gigabit Ethernet SmartPro Switch CLI Reference Guide 312 VLAN The VLAN number of the client interface ...
Страница 336: ...DGS 1510 Series Gigabit Ethernet SmartPro Switch CLI Reference Guide 333 ...
Страница 450: ...DGS 1510 Series Gigabit Ethernet SmartPro Switch CLI Reference Guide 447 Auth Delay Authentication Delay ...
Страница 475: ...DGS 1510 Series Gigabit Ethernet SmartPro Switch CLI Reference Guide 472 ...
Страница 695: ...DGS 1510 Series Gigabit Ethernet SmartPro Switch CLI Reference Guide 692 ...