改模需具体参考论坛,宽带技术网,有前车之鉴
避免变砖
下列为光模式代码(命令下载hw_boardinfo、hw_boardinfo.bak文件后上传替换)
注意版本区别:V300R016,V300R017,V300R018
修改hw_boardinfo和hw_boardinfo.bak文件:GPON B+
obj.id = “0x00000001” ; obj.value = “1”;
obj.id = “0x0000001d” ; obj.value = “1”;
修改hw_boardinfo和hw_boardinfo.bak文件:GPON C+
obj.id = “0x00000001” ; obj.value = “1”;
obj.id = “0x0000001d” ; obj.value = “2”;
修改hw_boardinfo和hw_boardinfo.bak文件:EPON
obj.id = “0x00000001” ; obj.value = “2”;
obj.id = “0x0000001d” ; obj.value = “1”;
修改hw_boardinfo和hw_boardinfo.bak文件: XG-PON (10G不对等)
obj.id = “0x00000001” ; obj.value = “5”;
obj.id = “0x0000001d” ; obj.value = “5”;
修改hw_boardinfo和hw_boardinfo.bak文件:10G Epon (不对等)
obj.id = “0x00000001” ; obj.value = “6”;
obj.id = “0x0000001d” ; obj.value = “3”;
修改hw_boardinfo和hw_boardinfo.bak文件:10G Epon(上下行对等)
obj.id = “0x00000001” ; obj.value = “7”;
obj.id = “0x0000001d” ; obj.value = “5”;
这里重点提示:下方代码为 XGS光模块 专用修改hw_boardinfo和hw_boardinfo.bak文件:10G XGS-PON (上下行对等)
obj.id = “0x00000001” ; obj.value = “10”;
obj.id = “0x0000001d” ; obj.value = “7”;
注意版本区别:V300R019,V500R019,V500R020 开始多了一行代码
修改hw_boardinfo和hw_boardinfo.bak文件:GPON B+
obj.id = “0x00000001” ; obj.value = “1”;
obj.id = “0x0000001d” ; obj.value = “1”;
obj.id = “0x00000059” ; obj.value = “1”;
修改hw_boardinfo和hw_boardinfo.bak文件:GPON C+
obj.id = “0x00000001” ; obj.value = “1”;
obj.id = “0x0000001d” ; obj.value = “2”;
obj.id = “0x00000059” ; obj.value = “1”;
修改hw_boardinfo和hw_boardinfo.bak文件:EPON
obj.id = “0x00000001” ; obj.value = “2”;
obj.id = “0x0000001d” ; obj.value = “1”;
obj.id = “0x00000059” ; obj.value = “2”;
修改hw_boardinfo和hw_boardinfo.bak文件: XG-PON(10G不对等)
obj.id = “0x00000001” ; obj.value = “5”;
obj.id = “0x0000001d” ; obj.value = “5”;
obj.id = “0x00000059” ; bj.value = “5”;
修改hw_boardinfo和hw_boardinfo.bak文件:10G EPON(不对等)
obj.id = “0x00000001” ; obj.value = “6”;
obj.id = “0x0000001d” ; obj.value = “3”;
obj.id = “0x00000059” ; obj.value = “6”;
修改hw_boardinfo和hw_boardinfo.bak文件:10G Epon (上下行对等)
obj.id = “0x00000001” ; obj.value = “7”;
obj.id = “0x0000001d” ; obj.value = “5”;
obj.id = “0x00000059” ; obj.value = “7”;
这里重点提示:下方代码为 企业猫专用 5875、B850修改hw_boardinfo和hw_boardinfo.bak文件:10G Epon (上下行对等)
obj.id = “0x00000001” ; obj.value = “7”;
obj.id = “0x0000001d” ; obj.value = “0”;
obj.id = “0x00000059” ; obj.value = “7”;
这里重点提示:下方代码为 XGS光模块 专用修改hw_boardinfo和hw_boardinfo.bak文件:10G XGS-PON (上下行对等)
obj.id = “0x00000001” ; obj.value = “10”;
obj.id = “0x0000001d” ; obj.value = “7”;
obj.id = “0x00000059” ; obj.value = “10”;
华为光猫修改双模、SN序号、MAC地址方法
特别提示:必须先补全shell
telnet 192.168.1.1(华为界面IP:192.168.100.1)
root
adminHW (华为界面:admin,输入不显示,区分大小写,直接回车)
su
shell
cd /mnt/jffs2
vi hw_boardinfo
在英文状态下,按键盘上的 i 开始编辑:
obj.id = “0x00000001” ; obj.value = “4”;
可以修改为:1、GPON 2、EPON 4、双模
obj.id = “0x00000002” ; obj.value = “485754444AB7AB9A”;
光猫标签上的 PON NO 序号 可以修改!
obj.id = “0x00000008” ; obj.value = “2150083444AAA6000999”;
光猫标签上的 PROD ID 序号 可以修改!
obj.value = “F8:55:88:88:84:C0”;
MAC地址(12位),可以改成你需要的MAC地址!
obj.id = “0x0000000b” ; obj.value = “F8:55:88:88:84:C8”;从这一行开始,MAC地址只能修改前11位,最后一位不能修改!
obj.id = “0x00000022” ; obj.value = “F8:55:88:88:84:C9”; 最后一位不能修改!
obj.id = “0x00000023” ; obj.value = “F8:55:88:88:84:CA”;最后一位不能修改!
obj.id = “0x00000024” ; obj.value = “F8:55:88:88:84:CB”;最后一位不能修改!
obj.id = “0x0000002d” ; obj.value = “F8:55:88:88:84:CC”; 最后一位不能修改!
obj.id = “0x0000002e” ; obj.value = “F8:55:88:88:84:CD”;最后一位不能修改!
obj.id = “0x0000002f” ; obj.value = “F8:55:88:88:84:CE”;最后一位不能修改!
obj.id = “0x00000030” ; obj.value = “F8:55:88:88:84:CF”;最后一位不能修改!
obj.id = “0x0000000c” ; obj.value = “F8:55:88:88:84:C1”;最后一位不能修改!
obj.id = “0x0000000d” ; obj.value = “F8:55:88:88:84:C2”;最后一位不能修改!
obj.id = “0x0000000e” ; obj.value = “F8:55:88:88:84:C3”;最后一位不能修改!
obj.id = “0x0000000f” ; obj.value = “F8:55:88:88:84:C4”;最后一位不能修改!
obj.id = “0x00000010” ; obj.value = “F8:55:88:88:84:C5”;最后一位不能修改!
obj.id = “0x00000011” ; obj.value = “F8:55:88:88:84:C6”;最后一位不能修改!
obj.id = “0x00000012” ; obj.value = “F8:55:88:88:84:C7”;最后一位不能修改!
obj.id = “0x00000013” ; obj.value = “F8:55:88:88:84:C0”;最后一位不能修改!
obj.id = “0x00000025”; obj.value = “F8:55:88:88:84:C0”;这一行的MAC地址要修改为12位!
按 ESC 退出,然后输入 :wq (冒号也要输入),回车保存修改
用同样方法修改 hw_boardinfo.bak 文件,修改完成后退出编辑状态、保存修改
reset
光猫重新启动后完成修改。
另外一种改模方式
Telnet 192.168.100.1
进入命令行界面,按照命令选择工作模式。
WAP>set upport ?
USAGE:
set upport [mode {value}]
OPTIONS:
mode: 1 means GPON mode, 2 means EPON mode, 4 means AUTO mode
WAP>set upport mode 2
success!
学习了