# dhclient - [Command Function](#section366714216619) - [Syntax](#section8833164614615) - [Parameter Description](#section12809111019453) - [Usage](#section15935131220717) - [Example](#section79281818476) - [Output](#section12742311179) ## Command Function This command is used to set and view **dhclient** parameters. ## Syntax dhclient <_netif name_\> dhclient -x <_netif name_\> dhclient -gb <_netif name_\> dhclient -sv <_vendor_\> dhclient -gv dhclient -gd <_index_\> dhclient -sd <_dns\_ip_\> ## Parameter Description **Table 1** Parameters

Parameter

Description

Value Range

<netif name>

Starts the DHCP request of the network interface card (NIC).

NIC name, eth0

-x <netif name>

Disables the DHCP function for the NIC.

NIC name, eth0

-gb <netif name>

Checks whether the DHCP request of the NIC is complete.

NIC name, eth0

-sv <vendor>

Sets the vendor information of a DHCP request.

Vendor information (The value is a string of 32 characters.)

-gv

Displays the vendor information in a DHCP request.

N/A

-gd <index>

Obtains information about the DNS server at the specified index.

Index, 0 or 1

-sd <dns_ip>

Indicates the IP address of the active DNS server.

IP address of the DNS server

## Usage dhclient eth0 dhclient -x eth0 dhclient -gb eth0 dhclient -sv MFSI dhclient -gv dhclient -gd 0 dhclient -sd 8.8.8.8 ## Example ![](figure/en-us_image_0000001053224218.png) ## Output **Table 2** Output description

Parameter

Description

dhclient: set vendor info [MFSI] success

Indicates that the MFSI information is successfully set.

dns[0]: 192.168.1.100

Indicates that the IP address of the DNS server is 192.168.1.100.