dh4client-mock

command module
v0.0.0-...-14867a6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 8, 2021 License: MulanPSL-2.0 Imports: 19 Imported by: 0

README

dh4client-mock DHCP客户端模拟

用于模拟多个DHCP客户端,向DHCP服务器请求IP地址。

snipaste_20211207

仅支持 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

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL