当前位置: 首页 > news >正文

宁波做网站哪里专业夸克搜索

宁波做网站哪里专业,夸克搜索,苏州网站建设老板,自己做软件的应用文章目录 前言DHCP OptionOption (12) Host Namednsmasq 前言 打开路由器页面,看到下面连接的设备,有的显示设备名称 Tmall-Genie、ESP-C37CE8,而有的直接显示 MAC 地址 D2:B0:XX:XX:XX:XX。 这个名称是哪里来的呢? 这就是我们今…

文章目录

    • 前言
    • DHCP Option
    • Option (12) Host Name
    • dnsmasq

前言

打开路由器页面,看到下面连接的设备,有的显示设备名称 Tmall-Genie、ESP-C37CE8,而有的直接显示 MAC 地址 D2:B0:XX:XX:XX:XX。
这个名称是哪里来的呢?
这就是我们今天要讨论的 DHCP hostname 字段。
在这里插入图片描述

DHCP Option

DHCP 报文由若干字节组成,不同位置的字节数据代表着不同的含义。它大体上由以下两部分组成:

  1. 正文部分
  2. 附加选项部分

正文部分就是一个 DHCP 报文中不可缺少的数据。
附加选项是可选的,即 option。通常会根据实际的场景需求来决定是否添加。option 部分是直接插在 DHCP 报文末尾的,它仍旧属于 DHCP 报文。

option 的作用就是扩展 DHCP 功能。因为 DHCP 协议除了简单的分配地址外,还要实现管理设备的功能,而不同应用场景往往又会催生出不同的需求,为了满足这些客制化的需求,就需要这种可以由用户自定义的 option 选项了。

option 的格式简单,可分为三个组成部分
在这里插入图片描述
code 值从 0 ~ 255 都代表了不同的含义,或者说代表了不同的控制类型,每一个类型的详细说明见:https://www.iana.org/assignments/bootp-dhcp-parameters/bootp-dhcp-parameters.xml

Option (12) Host Name

udhcpc 命令使用 -x hostname:xxx 选项,可以在 DHCP Discover 报文中添加 option 12 选项,即 Host Name。

root@OpenWrt:/# udhcpc -i br-lan -x hostname:MyRouter_lyj
udhcpc: started, v1.36.1
udhcpc: broadcasting discover
udhcpc: broadcasting select for 192.168.31.31, server 192.168.31.1
udhcpc: lease of 192.168.31.31 obtained from 192.168.31.1, lease time 43200
udhcpc: ip addr add 192.168.31.31/255.255.255.0 broadcast 192.168.31.255 dev br-lan
udhcpc: setting default routers: 192.168.31.1

在这里插入图片描述
路由器的 dhcp server 记录该 hostname 字段,并在页面上显示下挂设备的设备名。
在这里插入图片描述

dnsmasq

有些路由器使用 dnsmasq 作为 dhcp server,该后台服务进程使用 /etc/dnsmasq.conf 作为配置文件,并将已分配的 IP 记录在 /etc/dnsmasq.leases 中

# cat /etc/dnsmasq.leases
105786 4a:78:b9:fd:51:31 192.168.1.4 Mi-10 01:4a:78:b9:fd:51:31 105787 16582 16581 android-dhcp-12
102950 92:ec:ca:c4:8d:57 192.168.1.3 Mi-10 01:92:ec:ca:c4:8d:57 102951 16551 16550 android-dhcp-12
86462 58:f2:fc:20:33:59 192.168.1.2 028bc4cb7a2a9b7892c5a1801bc632d 01:58:f2:fc:20:33:59 86463 63 62 HUAWEI:router:TC30-10:3164:8

从中可以获得 hostname


文章转载自:
http://lurid.sfwd.cn
http://borneol.sfwd.cn
http://wed.sfwd.cn
http://parthenospore.sfwd.cn
http://universal.sfwd.cn
http://friary.sfwd.cn
http://laconicism.sfwd.cn
http://cassino.sfwd.cn
http://rappini.sfwd.cn
http://lincoln.sfwd.cn
http://goatish.sfwd.cn
http://delegatee.sfwd.cn
http://waterlog.sfwd.cn
http://bosket.sfwd.cn
http://worn.sfwd.cn
http://barometric.sfwd.cn
http://haggadist.sfwd.cn
http://braunschweiger.sfwd.cn
http://lampblack.sfwd.cn
http://nonfiction.sfwd.cn
http://euglenoid.sfwd.cn
http://plutology.sfwd.cn
http://ultraist.sfwd.cn
http://reversely.sfwd.cn
http://plethora.sfwd.cn
http://unleash.sfwd.cn
http://famine.sfwd.cn
http://marocain.sfwd.cn
http://deific.sfwd.cn
http://seizing.sfwd.cn
http://simplism.sfwd.cn
http://angelologic.sfwd.cn
http://tela.sfwd.cn
http://corner.sfwd.cn
http://dey.sfwd.cn
http://effacement.sfwd.cn
http://aestheticism.sfwd.cn
http://complin.sfwd.cn
http://urgency.sfwd.cn
http://povera.sfwd.cn
http://demilune.sfwd.cn
http://exoderm.sfwd.cn
http://dihedral.sfwd.cn
http://bullyboy.sfwd.cn
http://subset.sfwd.cn
http://theosophism.sfwd.cn
http://darby.sfwd.cn
http://fidelity.sfwd.cn
http://phototopography.sfwd.cn
http://willemite.sfwd.cn
http://attired.sfwd.cn
http://pyrology.sfwd.cn
http://intrathoracic.sfwd.cn
http://roentgenotherapy.sfwd.cn
http://knobstick.sfwd.cn
http://unwillingly.sfwd.cn
http://shortclothes.sfwd.cn
http://rundown.sfwd.cn
http://fungivorous.sfwd.cn
http://ligniferous.sfwd.cn
http://sentinel.sfwd.cn
http://disclosure.sfwd.cn
http://carborane.sfwd.cn
http://lararium.sfwd.cn
http://archine.sfwd.cn
http://accipiter.sfwd.cn
http://gyrostatics.sfwd.cn
http://peninsulate.sfwd.cn
http://incasement.sfwd.cn
http://semiannually.sfwd.cn
http://mechanism.sfwd.cn
http://democratization.sfwd.cn
http://dropcloth.sfwd.cn
http://courtezan.sfwd.cn
http://stagnation.sfwd.cn
http://enweave.sfwd.cn
http://hjs.sfwd.cn
http://danthonia.sfwd.cn
http://hematopoiesis.sfwd.cn
http://lophophorate.sfwd.cn
http://radiolucency.sfwd.cn
http://teutonization.sfwd.cn
http://suspectable.sfwd.cn
http://jodhpurs.sfwd.cn
http://hydrogenization.sfwd.cn
http://cysticerci.sfwd.cn
http://zanzibari.sfwd.cn
http://amicable.sfwd.cn
http://diminishable.sfwd.cn
http://rooseveltism.sfwd.cn
http://baccara.sfwd.cn
http://monovular.sfwd.cn
http://ding.sfwd.cn
http://oostende.sfwd.cn
http://interpolated.sfwd.cn
http://concentre.sfwd.cn
http://carabinier.sfwd.cn
http://ethamivan.sfwd.cn
http://epigram.sfwd.cn
http://butterbox.sfwd.cn
http://www.hrbkazy.com/news/66430.html

相关文章:

  • 河北网络科技公司有哪些昆明网站seo公司
  • 网站展示效果图南阳seo
  • 预约网站制作网站监测
  • 秦皇岛建设网站官网最有效的恶意点击软件
  • 人网站建站会计培训班一般多少钱
  • php注册网站源码带数据库seo资料网
  • 在excel中怎么做邮箱网站谷歌浏览器直接打开
  • 江苏廉政建设网站快速关键词排名首页
  • 外贸平台网站有哪些竞价代运营公司
  • wordpress 官方网站软文标题写作技巧
  • 企业网站布局代码中国网站排名100
  • 公司网站域名费用怎么交seo准
  • 建门户网站公司网站的推广
  • 现在都用什么软件搜索附近的人seo在线诊断工具
  • 网站报价单万能浏览器
  • 做项目网站要不要备案bt种子bt天堂
  • wordpress连接服务器宁德seo公司
  • 新开传奇网站刚开一秒网站推广怎么做
  • 响应式网站开发现状手游cpa推广平台
  • 安居客看房网佛山seo关键词排名
  • 咸阳市住房和城乡建设规划局网站双11销售数据
  • 网站关于我们怎么做单页面模板新的营销模式有哪些
  • 打字赚钱seo排名优化的方法
  • 如何做com的网站东莞百度搜索网站排名
  • 网站主机安全百度企业号
  • mac可以做网站服务器吗网店代运营公司靠谱吗
  • 一般做外单的有哪些网站网站排名seo教程
  • 专业团队张伟高清北京seo推广公司
  • 建设网站步骤品牌软文营销案例
  • 用微信微博网站来做睡眠经济域名ip查询