Linux命令 dhcpd - 運(yùn)行DHCP服務(wù)器

2021-11-08 14:58 更新

dhcpd

運(yùn)行DHCP服務(wù)器

語法

dhcpd [選項(xiàng)] [網(wǎng)絡(luò)接口]

選項(xiàng)

-p <端口> 指定dhcpd監(jiān)聽的端口
-f 作為前臺進(jìn)程運(yùn)行dhcpd
-d 啟用調(diào)試模式
-q 在啟動時不顯示版權(quán)信息
-t 簡單地測試配置文件的語法是否正確的,但不會嘗試執(zhí)行任何網(wǎng)絡(luò)操作
-T 可以用來測試租約數(shù)據(jù)庫文件
-4 運(yùn)行DHCP服務(wù)器
-6 運(yùn)行DHCPv6服務(wù)器
-s <服務(wù)器> 指定發(fā)送回復(fù)的服務(wù)器
-cf <配置文件> 指定配置文件
-lf <租約文件> 指定租約文件
-pf <PID文件> 指定PID文件
-tf <跟蹤輸出文件> 指定文件記錄DHCP服務(wù)器的整個啟動狀態(tài)

例子

對DHCP服務(wù)器進(jìn)行排錯。

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


以上內(nèi)容是否對您有幫助:
在線筆記
App下載
App下載

掃描二維碼

下載編程獅App

公眾號
微信公眾號

編程獅公眾號