Skip to content

Instantly share code, notes, and snippets.

@zxp
Last active March 1, 2023 13:56
Show Gist options
  • Star 11 You must be signed in to star a gist
  • Fork 4 You must be signed in to fork a gist
  • Save zxp/10d2d996132c3c884578bcfbad759a92 to your computer and use it in GitHub Desktop.
Save zxp/10d2d996132c3c884578bcfbad759a92 to your computer and use it in GitHub Desktop.
模拟四川电信ITV盒子的DHCP客户端配置 /etc/dhcp/dhclient.conf
interface "eth1" {
# 发送终端名,这个抓盒子发的包直接送出去就好了,是个32字节的字符串
send host-name "00109199************************";
# 发送机顶盒的MAC地址,我的华为的盒子是54:93:59开头的
send dhcp-client-identifier "\054:93:59:**:**:**";
# 电信用了Option60验证终端是否为盒子,按照抓包出来的字符串原样发送
send vendor-class-identifier "SCITV";
request subnet-mask, rfc3442-classless-static-routes, static-routes,
routers, domain-name-servers, host-name, domain-name,
interface-mtu, broadcast-address, ntp-servers,
dhcp-lease-time, dhcp-server-identifier,
dhcp-renewal-time, dhcp-rebinding-time, domain-search;
require subnet-mask, domain-name-servers, routers;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment