mirror of
https://github.com/Estom/notes.git
synced 2026-04-10 22:38:18 +08:00
linux 命令和教程补充
This commit is contained in:
36
Linux/command/dhclient.md
Normal file
36
Linux/command/dhclient.md
Normal file
@@ -0,0 +1,36 @@
|
||||
dhclient
|
||||
===
|
||||
|
||||
动态获取或释放IP地址
|
||||
|
||||
## 补充说明
|
||||
|
||||
**dhclient命令** 使用动态主机配置协议动态的配置网络接口的网络参数。
|
||||
|
||||
### 语法
|
||||
|
||||
```shell
|
||||
dhclient(选项)(参数)
|
||||
```
|
||||
|
||||
### 选项
|
||||
|
||||
```shell
|
||||
0:指定dhcp客户端监听的端口号;
|
||||
-d:总是以前台方式运行程序;
|
||||
-q:安静模式,不打印任何错误的提示信息;
|
||||
-r:释放ip地址。
|
||||
```
|
||||
|
||||
### 参数
|
||||
|
||||
网络接口:操作的网络接口。
|
||||
|
||||
### 实例
|
||||
|
||||
```shell
|
||||
dhclient -r #释放IP
|
||||
dhclient #获取IP
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user