Dhcp Client Commands - D-Link DGS-510 Reference Manual

Gigabit ethernet smartpro switch
Table of Contents

Advertisement

DGS-1510 Series Gigabit Ethernet SmartPro Switch CLI Reference Guide

16. DHCP Client Commands

16-1
ip dhcp client class-id
This command is used to specify the vendor class identifier used as the value of Option 60 for the
DHCP discover message. Use the no form of this command to revert the setting to the default.
ip dhcp client class-id {STRING | hex HEX-STRING}
no ip dhcp client class-id
Parameters
STRING
HEX-STRING
Default
The device type will be used as the class ID.
Command Mode
Interface Configuration Mode.
Command Default Level
Level: 12.
Usage Guideline
Use this command to specify a vendor class identifier (Option 60) to be sent with the DHCP discover
message. This specification only applies to the subsequent sending of the DHCP discover messages.
The setting only takes effect when the DHCP client is enabled on the interface to acquire the IP
address from the DHCP server. The vendor class identifier specifies the type of device that is
requesting an IP address.
Example
This example shows how to enable the DHCP client, enable the sending of the Vendor Class
Identifier, and specifies its value as VOIP-Device for VLAN 100.
Switch# configure terminal
Switch(config)# interface vlan 100
Switch(config-if)# ip address dhcp
Switch(config-if)# ip dhcp client class-id VOIP-Device
Switch(config-if)#
16-2
ip dhcp client client-id
This command is used to specify the VLAN interface whose hexadecimal MAC address will be used
as the client ID sent with the discover message. Use the no form of this command to revert to the
default setting
ip dhcp client client-id INTERFACE-ID
no ip dhcp client client-id
Specifies the vendor class identifier in the string form. The
maximum length of the string is 32.
Specifies a vendor class identifier in the hexadecimal form. The
maximum length of the string is 64.
153

Advertisement

Table of Contents
loading

Table of Contents