ip dhcp client

To set the DHCP option type for requests to the server and set an unique identifier for the DHCP client identifier, use the command ip dhcp client in Interface Configuration Mode (VLAN / Router). The no form of the command resets the DHCP option type for requests to the server and the DHCP client identifier.

ip dhcp client

ip dhcp client
{ {client-id } { {<interface-type> } { <interface-id> } { | vlan } { <vlan-id (1-4094)> } { | port-channel } { <port-channel-id (1-65535)> } { | tunnel } { <tunnel-id (0-128)> } { | loopback } { <interface-id (0-100)> } { | ascii } { <string> } { | hex } { <string>} }
{ | request } { {tftp-server-name } { | boot-file-name } { | sip-server-info } { | option240} }
{ | vendor-specific } { <vendor-info>} }

no ip dhcp client

no ip dhcp client
{ {client-id }
{ | request } { {tftp-server-name } { | boot-file-name } { | sip-server-info } { | option240} }
{ | vendor-specific} }

Parameters

Parameter Type Description
client-id   Enter to set the unique identifier for the DHCP client identifier. This command advertises the client-id in the DHCP control packet.
<interface-type>   Enter to specify the interface type for the DHCP client-id. The interface can be:
  • gigabitethernet – A version of LAN standard architecture that supports data transfer up to 1 Gigabit per second.
  • extreme-ethernet – A version of Ethernet that supports data transfer up to 10 Gigabits per second. This Ethernet supports only full duplex links.
  • extreme-ethernet – A version of Ethernet that supports data transfer up to 10 Gigabits per second. This Ethernet supports only full duplex links.
  • i-lan – Internal LAN created on a bridge per IEEE 802.1ap.
<interface-id>   Enter to configure an interface id for the DHCP client-id for the specified interface identifier. This is a unique value that represents the specific interface. This value is a combination of slot number and port number separated by a slash. For example: 0/1 represents that the slot number is 0 and port number is 1.
vlan   Enter to configure DHCP client-id for a specified VLAN.
<vlan-id (1-4094)> Integer Enter a VLAN ID for the DHCP client ID.This is a unique value that represents the specific VLAN created. This value ranges from 1 to 4094.
port-channel   Enter to configure the port to be used by the host to configure the router. The port channel identifier can be created or port channel related configuration can done, only if the LA feature is enabled in the switch.
<port-channel-id (1-65535)> Integer Enter a value for port ID for the port to be used by the host to configure the router. This value ranges from 1 to 65535
tunnel   Enter to configure the tunnel identifier.
<tunnel-id (0-128)> Integer Enter a value for the tunnel identifier. This value ranges from 0 to 128.
loopback   Enter to configure the loopback identifier.
<interface-id (0-100)> Integer Enter a a value for the loopback identifier. This value ranges from 0 to 100.
ascii   Enter to configure the DHCP client ID in ascii format.
<string>   Enter a value for client ID in ascii format. The client-id is given as a string.
hex   Enter to configure the DHCP client ID in hex format
<string>   Enter a value for client ID in ascii format. The client-id is given as a string.
request   Enter to set the DHCP option type for requests to the server. This is required to send DHCP request to get the tftp server name, Boot file name, sip server name and option240.
tftp-server-name   Enter to configure to send the DHCP requests for getting the TFTP server’s domain name
boot-file-name   Enter to configure to send the DHCP requests for getting he boot File Name
sip-server-info   Enter to configure to send the DHCP requests for getting the sip server details
option240   Enter to configure to send the DHCP requests for getting the the option 240 information.
vendor-specific   Enter to configure vendor specific information for the DHCP client.
<vendor-info (string)>   Enter a vendor name. The vendor name is given as a string.

Mode

Interface Configuration Mode (VLAN / Router)

Prerequisites

This command executes successfully only if the VLAN interfaces and router ports are in BOUND state (that is, IP address is dynamically acquired from DHCP server and an active lease is bound to the interface). The port should have been configured as router port for dynamically acquiring an IP address from DHCP server.

Examples

iS5Comm (config-if)# ip dhcp client client-id gigabitethernet 0/1

iS5Comm (config-if)# ip dhcp client request option240