Linux常用命令——dhcpd命令

在线Linux命令查询工具

dhcpd

运行DHCP服务器。

语法

shell 复制代码
dhcpd [选项] [网络接口]

选项

shell 复制代码
-p <端口> 指定dhcpd监听的端口
-f 作为前台进程运行dhcpd
-d 启用调试模式
-q 在启动时不显示版权信息
-t 简单地测试配置文件的语法是否正确的,但不会尝试执行任何网络操作
-T 可以用来测试租约数据库文件
-4 运行DHCP服务器
-6 运行DHCPv6服务器
-s <服务器> 指定发送回复的服务器
-cf <配置文件> 指定配置文件
-lf <租约文件> 指定租约文件
-pf <PID文件> 指定PID文件
-tf <跟踪输出文件> 指定文件记录DHCP服务器的整个启动状态

例子

对DHCP服务器进行排错。

shell 复制代码
[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.

在线Linux命令查询工具

相关推荐
昵称只能一个月修改一次。。。9 分钟前
并发服务器、多路IO复用
java·服务器·网络
煜36430 分钟前
Linux初识与基本指令
linux·运维·服务器
执笔论英雄31 分钟前
【大模型推理】cudastream 学习
linux·运维·学习
shada38 分钟前
在Linux x86_64系统中编译mission
linux
佑白雪乐40 分钟前
<Linux基础第14集>总结前面知识点,不含Linux命令
linux·运维·服务器
YLXA44 分钟前
1.helle_cuda学习
linux·学习·算法
橘子131 小时前
DNS域名系统
服务器·网络·网络协议
Lau_way1 小时前
windows通过xshell局域网连接linux
linux·运维·服务器
ken22321 小时前
(a-) 在不同软件包里:相同名称和用途的软件工具,功能不完全一样 + 查询网络路径中的最小 MTU 值工具 (***)
linux·运维·服务器
shamalee1 小时前
Nginx反向代理出现502 Bad Gateway问题的解决方案
运维·nginx·gateway