DHCP Option 66自动部署工业电话机

介绍

概述

本文介绍通过 DHCP Option66(自动部署的其中一种方式)来批量升级SIP工业话机,其原理是:重启SIP工业话机,SIP工业话机启动的时候会向路由器发出获取 IP 的请求,路由器分发 IP 给SIP工业话机的同时,也将升级的信息发给SIP工业话机(需要事先在路由器上设置好),让SIP工业话机去找到  相应的资料升级配置。

适用型号

本文档适用于我司所有型号SIP工业话机。

目标受众

此文档是针对解决SIP工业话机问题的日常维护人员。

操作方法

调配网络连接方式:

在个人电脑上安装一个软件来建立 一 个 DHCP Server( 下载地址 : http://www.dhcpserver.de/cms/ ),用新建的 DHCP Server 来为SIP工业话机提供 IP 地址,然后设置发送给SIP工业话机的升级信息,另外再在个人电脑上配置一个服务器(FTP 或者 TFTP 服务器) 来存放SIP工业话机需要升级的资料(如SIP工业话机的软件或者配置文件等等)。
最终形成的网络拓扑图如下:
调配网络连接方式示意图
1、配置 DHCP Server
请到 http://www.dhcpserver.de/cms/ 下载 DHCP Server 之后,解压到电脑上开始安装(建议解压到不带中文的目录下)设置电脑的 IP,设置一个固定 IP(如设置为 192.168.1.2),建议设置有线网卡。
双击 dhcpwiz.exe运行 DHCP Server,弹出窗口提示开始设置,点击下一步
打开 DHCP Server
点击下一步后,提示选择网卡,即使用哪个网卡来建立 DHCP Server,然后用这个网卡分发 IP 给SIP工业话机,选择刚才设置了 IP 的有线网卡:
分发 IP 给话机
点击下一步后,这个 DHCP Server 上集成了 TFTP 服务器,所以不用另外再搭建了,直接勾选即可,注意选择的 TFTP 服务器的根目录,这个根目录,就是存放升级资料的目录, SIP工业话机会到这个目录下查找需要升级的资料,建议不要设置带有中文的目录,并记住这个目录,后面将需要升级的资料放到这个根目录下:
文件存在路径
点击下一步,提示分发的 IP 地址范围:
分发的 IP 地址范围显示界面
点击按钮 ,设置 DHCP Option66,这里设置的信息很重要,即要设置告诉SIP工业话机到哪里下载升级资料的信息。
设置 DHCP Option66
点击 Add,添加一个 DHCP option,添加的内容如下:
添加新的 DHCP option
添加路径(“tftp://192.168.1.2/CommonFile.txt”)的时候,别漏了双引号,这个路径将   会在给SIP工业话机分发 IP 的时候发送给 IP SIP工业话机,SIP工业话机收到信息后会到 IP 是 192.168.1.2 这台电脑(就是设置的这台电脑)去下载名字为 CommonFile.txt 的文件,这是个指导配置文件,指导SIP工业话机去做什么事情,我们在后面的步骤还会详细介绍, 点击两次 OK 后确认。
再点击下一步,提示总结前面设置的内容:
总结前期设置显示界面
勾选 Overwrite existing file, 点击按钮 Write INI file, 再点击下一步:
勾选 Overwrite existing file
点击按钮 Install,使刚才前面配置的内容生效:
确定配置使配置生效
再勾选,再点击 Start 按钮,开始运行 DHCP Server,可以看到状态变成运行:
开始运行配置好的 DHCP Server
点击完成:
点击完成
点击,在弹出来的提示框 点击 是,可以看到在电脑的右下角,在任务栏上可以看到这个图标: ,表示 DHCP Server 已经安装在电脑上了。

修改配置文件

SIP工业话机升级此配置文件后,会重启SIP工业话机,重启之后更新的配置生效。
此配置文件是根据需要而修改的,先在SIP工业话机上导出配置文件,然后根据需要,保留需要更改的参数(注意:修改参数的时候小心,保留指定的参数后,不要修改参数名,连空格都不要修改,否则导致配置文件的配置无法升级到SIP工业话机上),比如此配置文件保留这些参数,是为了修改SIP工业话机的注册端口、服务器地址、显示名、注册账号、电话号码和密码:
修改配置文件此详细参数示意图
打开配置文件,内容少,但是要确保地址正确:
SIP工业话机软件的地址包括 TFTP 服务器的主机地址(即电脑的地址),和SIP工业话机软件的文件名(此处写的是 firmware.z, 那么SIP工业话机就会去找文件名为 firmware.z 的SIP工业话机软件), 把SIP工业话机的软件放到 TFTP 的根目录下,那么SIP工业话机就会去下载这个软件升级。
注意: 修改指导配置文件时不要修改其他的内容(连空格都不要去删除或者增加),否则升级失败。

升级操作

以上的配置完成之后,就可以批量升级SIP工业话机了。
1.将SIP工业话机的配置文件(如 00A859D0DACE.txt,一部SIP工业话机对应一个配置文件,如果多部SIP工业话机,需要给每一部的SIP工业话机做一个配置文件)放到 TFTP 根目录下。
2.重启SIP工业话机。手动重启或者批量重新上电都可以,看现场的条件。在 PC 上可以看到重启的SIP工业话机获取 IP 的提示,再等待 30 秒左右,可以在SIP工业话机的屏幕上看到下载升级软件的提示,等SIP工业话机自动重启一次,SIP工业话机升级完成。升级完成之后,将电脑上的 DHCP Server 退出,并恢复原来的路由器的连接。

目录
客服 电话
We use cookie to improve your online experience. By continuing to browse this website, you agree to our use of cookie.

Cookies

This Cookie Policy explains how we use cookies and similar technologies when you access or use our website and related services. Please read this Policy together with our Terms and Conditions and Privacy Policy so that you understand how we collect, use, and protect information.

By continuing to access or use our Services, you acknowledge that cookies and similar technologies may be used as described in this Policy, subject to applicable law and your available choices.

Updates to This Cookie Policy

We may revise this Cookie Policy from time to time to reflect changes in legal requirements, technology, or our business practices. When we make updates, the revised version will be posted on this page and will become effective from the date of publication unless otherwise required by law.

Where required, we will provide additional notice or request your consent before applying material changes that affect your rights or choices.

What Are Cookies?

Cookies are small text files placed on your device when you visit a website or interact with certain online content. They help websites recognize your browser or device, remember your preferences, support essential functionality, and improve the overall user experience.

In this Cookie Policy, the term “cookies” also includes similar technologies such as pixels, tags, web beacons, and other tracking tools that perform comparable functions.

Why We Use Cookies

We use cookies to help our website function properly, remember user preferences, enhance website performance, understand how visitors interact with our pages, and support security, analytics, and marketing activities where permitted by law.

We use cookies to keep our website functional, secure, efficient, and more relevant to your browsing experience.

Categories of Cookies We Use

Strictly Necessary Cookies

These cookies are essential for the operation of the website and cannot be disabled in our systems where they are required to provide the service you request. They are typically set in response to actions such as setting privacy preferences, signing in, or submitting forms.

Without these cookies, certain parts of the website may not function correctly.

Functional Cookies

Functional cookies enable enhanced features and personalization, such as remembering your preferences, language settings, or previously selected options. These cookies may be set by us or by third-party providers whose services are integrated into our website.

If you disable these cookies, some services or features may not work as intended.

Performance and Analytics Cookies

These cookies help us understand how visitors use our website by collecting information such as traffic sources, page visits, navigation behavior, and general interaction patterns. In many cases, this information is aggregated and does not directly identify individual users.

We use this information to improve website performance, usability, and content relevance.

Targeting and Advertising Cookies

These cookies may be placed by our advertising or marketing partners to help deliver more relevant ads and measure the effectiveness of campaigns. They may use information about your browsing activity across different websites and services to build a profile of your interests.

These cookies generally do not store directly identifying personal information, but they may identify your browser or device.

First-Party and Third-Party Cookies

Some cookies are set directly by our website and are referred to as first-party cookies. Other cookies are set by third-party services, such as analytics providers, embedded content providers, or advertising partners, and are referred to as third-party cookies.

Third-party providers may use their own cookies in accordance with their own privacy and cookie policies.

Information Collected Through Cookies

Depending on the type of cookie used, the information collected may include browser type, device type, IP address, referring website, pages viewed, time spent on pages, clickstream behavior, and general usage patterns.

This information helps us maintain the website, improve performance, enhance security, and provide a better user experience.

Your Cookie Choices

You can control or disable cookies through your browser settings and, where available, through our cookie consent or preference management tools. Depending on your location, you may also have the right to accept or reject certain categories of cookies, especially those used for analytics, personalization, or advertising purposes.

Please note that blocking or deleting certain cookies may affect the availability, functionality, or performance of some parts of the website.

Restricting cookies may limit certain features and reduce the quality of your experience on the website.

Cookies in Mobile Applications

Where our mobile applications use cookie-like technologies, they are generally limited to those required for core functionality, security, and service delivery. Disabling these essential technologies may affect the normal operation of the application.

We do not use essential mobile application cookies to store unnecessary personal information.

How to Manage Cookies

Most web browsers allow you to manage cookies through browser settings. You can usually choose to block, delete, or receive alerts before cookies are stored. Because browser controls vary, please refer to your browser provider’s support documentation for details on how to manage cookie settings.

Contact Us

If you have any questions about this Cookie Policy or our use of cookies and similar technologies, please contact us at support@becke.cc .