D-Link DGS-3130 Emulator - Page 223
service dhcp
View all D-Link DGS-3130 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 223 highlights
DGS-3130 Layer 3 Stackable Managed Switch CLI Reference Guide Command Mode DHCP Class Configuration Mode. Command Default Level Level: 12. Usage Guideline The user can use the ip dhcp class command with the option hex command to define a DHCP class. The classes in a pool are matched in the order that the class is configured in a pool. With the option hex command, the user can specify the DHCP option code number with its matching pattern for a DHCP class. Multiple option patterns can be specified for a DHCP class. If the packet matches any of the specified patterns of a DHCP class, the packet will be classified to the DHCP class and forwarded based on the specified target. The following are some commonly used option codes: Option 60 (Vendor Class Identifier). Option 61 (Client Identifier). Option 77 (User Class). Option 82 (Relay Agent Information Option). Option 124 (Vendor-identifying Vendor Class). Option 125 (Vendor-identifying Vendor-specific Information). Example This example shows how a DHCP class Service-A is configured and defined with the DHCP Option 60 matching pattern 0x112233 and 0x102030. Another class Service-B is configured and defined with the DHCP Option 60 matching pattern 0x5566* and 0x5060*. 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 class Service-B Switch(config-dhcp-class)# option 60 hex 5566 * Switch(config-dhcp-class)# option 60 hex 5060 * Switch(config-dhcp-class)# exit Switch(config)# ip dhcp class Service-B Switch(config-dhcp-class)# 19-26 service dhcp This command is used to enable the DHCP server and relay service on the Switch. Use the no form of this command to disable the DHCP server and relay service. service dhcp no service dhcp Parameters None. Default By default, the state is disabled. 219