Skip to content

Instantly share code, notes, and snippets.

@zxp zxp/dhclient.conf
Last active Aug 12, 2019

What would you like to do?
模拟四川电信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
You can’t perform that action at this time.