dhcpd

運行DHCP服務器

語法

1dhcpd [選項] [網絡接口]

選項

 1-p <端口> 指定dhcpd監聽的端口
 2-f 作爲前臺進程運行dhcpd
 3-d 啓用調試模式
 4-q 在啓動時不顯示版權信息
 5-t 簡單地測試配置文件的語法是否正確的,但不會嘗試執行任何網絡操作
 6-T 可以用來測試租約數據庫文件
 7-4 運行DHCP服務器
 8-6 運行DHCPv6服務器
 9-s <服務器> 指定發送回覆的服務器
10-cf <配置文件> 指定配置文件
11-lf <租約文件> 指定租約文件
12-pf <PID文件> 指定PID文件
13-tf <跟蹤輸出文件> 指定文件記錄DHCP服務器的整個啓動狀態

例子

對DHCP服務器進行排錯。

 1[root@localhost ~]# dhcpd
 2InternetSystems Consortium DHCP Server 4.1.1-P1
 3Copyright2004-2010 Internet Systems Consortium.
 4All rightsreserved.
 5For info,please visit https://www.isc.org/software/dhcp/
 6Not searchingLDAP since ldap-server, ldap-port and ldap-base-dn were not specified in theconfig file
 7Wrote 0deleted host decls to leases file.
 8Wrote 0 newdynamic host decls to leases file.
 9Wrote 1leases to leases file.
10Listening onLPF/eth0/00:0c:29:fc:2f:e5/192.168.0.0/24
11Sendingon  LPF/eth0/00:0c:29:fc:2f:e5/192.168.0.0/24
12Sendingon   Socket/fallback/fallback-net
13[root@rhel~]# There's already a DHCP server running.
14 
15This versionof ISC DHCP is based on the release available
16onftp.isc.org.  Features have been addedand other changes
17have beenmade to the base software release in order to make
18it workbetter with this distribution.
19 
20exiting.

來源:https://github.com/jaywcjlove/linux-command

最後修改於: Wednesday, January 31, 2024

相關文章:

翻譯: