UNPKG

1.57 kBMarkdownView Raw
1dhcpd
2===
3
4运行DHCP服务器
5
6### 语法
7
8```shell
9dhcpd [选项] [网络接口]
10```
11
12### 选项
13
14```shell
15-p <端口> 指定dhcpd监听的端口
16-f 作为前台进程运行dhcpd
17-d 启用调试模式
18-q 在启动时不显示版权信息
19-t 简单地测试配置文件的语法是否正确的,但不会尝试执行任何网络操作
20-T 可以用来测试租约数据库文件
21-4 运行DHCP服务器
22-6 运行DHCPv6服务器
23-s <服务器> 指定发送回复的服务器
24-cf <配置文件> 指定配置文件
25-lf <租约文件> 指定租约文件
26-pf <PID文件> 指定PID文件
27-tf <跟踪输出文件> 指定文件记录DHCP服务器的整个启动状态
28```
29
30### 例子
31
32对DHCP服务器进行排错。
33
34```shell
35[root@localhost ~]# dhcpd
36InternetSystems Consortium DHCP Server 4.1.1-P1
37Copyright2004-2010 Internet Systems Consortium.
38All rightsreserved.
39For info,please visit https://www.isc.org/software/dhcp/
40Not searchingLDAP since ldap-server, ldap-port and ldap-base-dn were not specified in theconfig file
41Wrote 0deleted host decls to leases file.
42Wrote 0 newdynamic host decls to leases file.
43Wrote 1leases to leases file.
44Listening onLPF/eth0/00:0c:29:fc:2f:e5/192.168.0.0/24
45Sendingon LPF/eth0/00:0c:29:fc:2f:e5/192.168.0.0/24
46Sendingon Socket/fallback/fallback-net
47[root@rhel~]# There's already a DHCP server running.
48
49This versionof ISC DHCP is based on the release available
50onftp.isc.org. Features have been addedand other changes
51have beenmade to the base software release in order to make
52it workbetter with this distribution.
53
54exiting.
55```
56
57