建议先把宽带账户、密码、OTN注册LOID以及密码留档

操作步骤如下:

打开控制面板,点程序,点启用或关闭的windows功能,把Telnet客户端勾选上,确定,保存设置。

1、补全SHELL(光猫先恢复出厂设置)

①登录光猫HN8145XR管理界面:192.168.1.1,管理员账号登录

默认超密:

联通版光猫账号密码均为“CUAdmin”;

移动光猫超密: CMCCAdmin 密码:aDm8H%MdA;

电信光猫超密:telecomadmin 密码:nE7jA%5m),

安全-广域网访问设置-开启Lan口Telnet。

注意:如果电脑连接光猫无线信号,可免开启Lan口Telnet,因为光猫无线信号默认开启Telnet。

②打开ONT使能2.0,选择V5使能并启动,正常情况下光猫所有灯会全部闪烁,直至熄灭后停止使能并手动重启光猫。

③打开使能工具ONT,选择升级→选对应的网卡→点浏览选择添加SHELL文件→点启动,等待几分钟,待光猫上LED灯全灭后,点停止并关闭软件,重启光猫。

2、下载备份hw_boardinfo文件,这是运营商界面备份

启动tftpd64.exe软件,选择光猫对应的网卡。打开windows终端,或‘’命令提示符‘’输入Telnet 192.168.1.1,回车;

输入用户名:root,回车;

输入密码:admin,回车;

输入:su,回车;

输入:shell,回车;

输入:ls,回车;

输入:cd /mnt/jffs2,回车;

输入:tftp -p -l hw_boardinfo -r hw_boardinfo 192.168.1.2,(你的网卡地址)回车(下载hw_boardinfo文件到tftpd64软件文件夹的目录下);再把hw_boardinfo保存到其他文件夹做备份。等会恢复华为界面下载的hw_boardinfo文件会把原文件覆盖。

3、恢复华为界面 注意:命令运行后,会清除运营商的定制信息,请谨慎使用

打开windows终端,输入Telnet 192.168.1.1,回车;

输入用户名:root,回车;

输入密码:

联通电信:adminHW,

移动:Hw8@CMCC或Hw8@cMcc,回车;

输入:su,回车;

输入:shell,回车;

输入sudo restorehwmode.sh或者restorehwmode.sh,回车,恢复华为界面。

重启后光猫登录ip变为:192.168.100.1,

用户名telecomadmin

密码admintelecom

Telnet用户名:root,密码变为:admin。

注意:此时无法用网线连接光猫登录。需用无线连接光猫,光猫无线信号名称变为:wirelessnet,

密码:8个小写e。“eeeeeeee"

登录光猫, ‘lan配置’里 “二/三层口配置”lan口设置勾选4个lan口,应用后方可lan口

4、改模式

因第二步中恢复华为界面,需按第一步补全再次补全光猫shell。补全shell后请按以下步骤修改光模式。

①打开win10或者win11 Telnet设置;

②打开tftp软件,选择光猫对应的网卡,准备下载hw_boardinfo文件;

③打开windows终端,输入Telnet 192.168.100.1,回车;

输入用户名:root,回车;

输入密码:admin,回车;

输入:su,回车;

输入:shell,回车;

输入:ls,回车;

输入:cd /mnt/jffs2,回车;

输入:tftp -p -l hw_boardinfo -r hw_boardinfo 192.168.100.2,回车(下载hw_boardinfo文件到 tftpd64软件的目录下);

④取得hw_boardinfo 硬件配置文件后(先备份一份),再用HW Dollar2工具打开编辑。编辑内容如下:

点击复制代码
10G EPON 改XGPON模式:
obj.id = "0x00000001" ; obj.value ="5";
obj.id = "0x0000001d" ; obj.value ="5";
obj.id = "0x00000059" ; obj.value ="5";
XGPON改10G EPON模式,
obj.id = "0x00000001" ; obj.value ="6";
obj.id = "0x0000001d" ; obj.value = "3"
obj.id = "0x00000059" ; obj.value ="6";
⑤输入:tftp -g -l hw_boardinfo -r hw_boardinfo 192.168.100.2,回车(上传 tftpd64软件目录里面的文件到光猫);
⑥输入:cp -f /mnt/jffs2/hw_boardinfo /mnt/jffs2/hw_boardinfo.bak,回车(复制修改后的文件到备份文件) ;
⑦输入:reboot,回车(重启光猫)。
4、接从AP

K662D可用光纤或者网线连接。如果识别不正常,把从AP的复位键按30秒,即可识别。

附:

obj对应信息

点击复制代码
hw_boardinfo和hw_boardinfo.bak
obj.id = "0x00000001" ; obj.value = "1"; 1、GPON 2、EPON 4、双模
obj.id = "0x00000002" ; obj.value = "48575443000A4C0A"; //标签上的 PON NO
obj.id = "0x00000003" ; obj.value = "$2VkbZLTl@A0,"3Jr=JQT/>]7@G)~A+y5:&'Br'=$"; //这些乱码部分不要动为电信下发的相关密码
obj.id = "0x00000004" ; obj.value = "$2WW8PP]|._,V0390K9^6]e@zw&1Y$";
obj.id = "0x00000005" ; obj.value = "$2`~5/9p}dYF@l;u$.m4lJ~C{JPG-KF*186xBogs@P{tSaC$z#/F9=4{Gq8~j5m|GUDOEw]:C$1$GE~,.K$";
obj.id = "0x00000006" ; obj.value = "$2cXCqRQVG14)D)kLX5n^K3K\".Z6$z7~u12-z:7q9$";
obj.id = "0x00000007" ; obj.value = "024BTK2SH7000415"; //此处可以不修改要修改也可以根据(S)SN后的数字来修改,但只取最后几位,注意位数
obj.id = "0x00000008" ; obj.value = "21500834102SH7601000"; //标签上的 PROD ID
obj.id = "0x0000000a" ; obj.value = "A4:C6:88:88:52:AE"; //下面这些MAC地址可以根据标签上的改(注意是十六进制的)
obj.id = "0x0000000b" ; obj.value = "A4:C6:88:88:52:B4";
obj.id = "0x00000022" ; obj.value = "A4:C6:88:88:52:B5";
obj.id = "0x00000023" ; obj.value = "A4:C6:88:88:52:B6";
obj.id = "0x00000024" ; obj.value = "A4:C6:88:88:52:B7";
obj.id = "0x0000002d" ; obj.value = "A4:C6:88:88:52:B8";
obj.id = "0x0000002e" ; obj.value = "A4:C6:88:88:52:B9";
obj.id = "0x0000002f" ; obj.value = "A4:C6:88:88:52:BA";
obj.id = "0x00000030" ; obj.value = "A4:C6:88:88:52:BB";
obj.id = "0x0000000c" ; obj.value = "A4:C6:88:88:52:AF"; //跟下面的MAC地址对应
obj.id = "0x0000000d" ; obj.value = "A4:C6:88:88:52:B0";
obj.id = "0x0000000e" ; obj.value = "A4:C6:88:88:52:B1";
obj.id = "0x0000000f" ; obj.value = "A4:C6:88:88:52:B2";
obj.id = "0x00000010" ; obj.value = "A4:C6:88:88:52:B3";
obj.id = "0x00000011" ; obj.value = "A4:C6:88:88:52:BC";
obj.id = "0x00000012" ; obj.value = "A4:C6:88:88:52:BD";
obj.id = "0x00000013" ; obj.value = "A4:C6:88:88:52:BE";
obj.id = "0x00000025" ; obj.value = "A4:C6:88:88:52:AE";
obj.id = "0x00000016" ; obj.value = "$2@XTi$m$^-7H3!yTyv/T;
obj.id = "0x00000018" ; obj.value = "0"; //电信移动为 0,联通为 2
obj.id = "0x00000019" ; obj.value = "3D811A4C6888852AE"; //设备标识 - 后面的 不要最后一位(取中间那段,注意位数)
obj.id = "0x0000001a" ; obj.value = "E8C"; //中国电信为E8C ,移动为 CMCC,联通为 COMMON ,华为为COMMON
obj.id = "0x0000001b" ; obj.value = "HUBCT"; //湖北电信HUBCT ,移动为 BJCMCC_RMS,联通为 SHCU ,华为为COMMON
obj.id = "0x0000001c" ; obj.value = "0";
obj.id = "0x0000001d" ; obj.value = "1";
obj.id = "0x0000001e" ; obj.value = "1";
obj.id = "0x0000001f" ; obj.value = "1";
obj.id = "0x00000020" ; obj.value = "";
obj.id = "0x00000021" ; obj.value = "0";
obj.id = "0x00000031" ; obj.value = "CHOOSE_XINAN"; //电信为CHOOSE_XINAN,移动为CHOOSE_CMCC_RMS2,联通为CHOOSE_UNICOM , 华为为CHOOSE_XINAN,跟customize.txt里的对应
obj.id = "0x00000034" ; obj.value = "00:00:00:00:00:0C";
obj.id = "0x00000035" ; obj.value = ""; // 移动为 SMART ,电信、联通,华为为空
obj.id = "0x00000039" ; obj.value = "0x00102001";
obj.id = "0x0000003a" ; obj.value = "";
obj.id = "0x0000003c" ; obj.value = "0x00102001";
obj.id = "0x0000003d" ; obj.value = "0x00000000";
obj.id = "0x0000003e" ; obj.value = "0x00000000";
obj.id = "0x0000003f" ; obj.value = "0x00000000";
obj.id = "0x00000040" ; obj.value = "";
obj.id = "0x00000041" ; obj.value = "";
obj.id = "0x00000042" ; obj.value = "0";
obj.id = "0x00000043" ; obj.value = "";
obj.id = "0x0000000c" ; obj.value = "A4:C6:88:88:52:AF"; //跟上面的MAC地址对应
obj.id = "0x00000044" ; obj.value = "";
obj.id = "0x00000045" ; obj.value = "";
obj.id = "0x00000046" ; obj.value = "0";
obj.id = "0x00000047" ; obj.value = "0";
obj.id = "0x00000050" ; obj.value = "";
obj.id = "0x00000051" ; obj.value = "";
obj.id = "0x00000052" ; obj.value = "";
restorehwmode.sh 命令最好不要用,会使原有运营商界面丢失.

如果单纯的改成华为界面只需改hw_boardinfo上面的1a、1b和31三条就可以了。重启后就是华为界面了,然后进入华为界面后,只需要在WAN设置里面增加一条2_INTERNET_R_VID_41,就可以了,实测上网没有影响,其它的根据自己喜好,自行修改。这样账户 密码 光猫IP地址等都没变,如果需要回到原运营商界面,只需要把前面备份的hw_boardinfo上传覆盖hw_boardinfo和hw_boardinfo.bak就可以了。

还有不同运营界面需要修改的1a、1b和31三条数据参考下面:

点击复制代码
华为界面:
obj.id = "0x0000001a" ;
obj.value = "COMMON";
obj.id = "0x0000001b" ;
obj.value = "COMMON";
obj.id = "0x00000031" ;
obj.value = "NOCHOOSE";
联通界面:
"0x0000001a" = "COMMON";
"0x0000001b" = "SHCU"; 默认上海联通 (省份名称缩写的大写字母+CU)
"0x00000031" = "CHOOSE_UNICOM2";
移动界面:
"0x0000001a" = "CMCC";
"0x0000001b" = "CMCC_RMS";
"0x00000031" = "CHOOSE_CMCC_RMS";
天津移动界面:
"0x0000001a" = "CMCC";
"0x0000001b" = "TJCMCC_RMS";
"0x00000031" = "CHOOSE_CMCC_RMS";
电信界面:
obj.id = "0x0000001a" = "E8C";
obj.id = "0x0000001b" = "BJCT"; 默认北京电信 (省份名称缩写的大写字母+CT)
obj.id = "0x00000031" = "CHOOSE_XINAN";
tftp -g -l hw_boardinfo -r hw_boardinfo 192.168.1.2 修改完成后从电脑复制文件到光猫
cp -f /mnt/jffs2/hw_boardinfo /mnt/jffs2/hw_boardinfo.bak 把备份文件也覆盖修改
reboot 重启光猫