# dhclient

动态获取或释放IP地址

## 补充说明

**dhclient命令** 使用动态主机配置协议动态的配置网络接口的网络参数。

### 语法

```
dhclient(选项)(参数)
```

### 选项

```
0：指定dhcp客户端监听的端口号；
-d：总是以前台方式运行程序；
-q：安静模式，不打印任何错误的提示信息；
-r：释放ip地址。
```

### 参数

网络接口：操作的网络接口。

### 实例

```
dhclient -r     #释放IP
dhclient        #获取IP
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://hezhiqiang.gitbook.io/linux/ming-ling/dhclient.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
