command
module
Version:
v0.0.0-...-14867a6
Opens a new window with list of versions in this module.
Published: Dec 8, 2021
License: MulanPSL-2.0
Opens a new window with license information.
Imports: 19
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
dh4client-mock DHCP客户端模拟
用于模拟多个DHCP客户端,向DHCP服务器请求IP地址。

仅支持 Linux 系统,且必须使用root用户执行(或者sudo执行)
命令行参数:
Usage of ./dh4client-mock
-bro=<bool> 使用广播模式,默认使用单播模式
-i=<string> 绑定的网络接口
-s=(0|1) 0表示请求IP地址,1表示释放所有之前请求的地址
-user=<string> 指定第一个伪客户端的MAC地址,不指定将随机生成
-n=<int> 创建多少个伪客户端
-op82=<string> 设置DHCP消息的Option82,例如:'1#001e6e001122,1#a0cf5bee820'
(op82语法:#字符前面的数字是 suboption, #字符后面的是 value 的网络报文编码的16进制形式<通过抓包获取,然后直接写在这里>)
Documentation
¶
There is no documentation for this package.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.