[技术文章] 华为光猫命令ftfp及参数说明

[复制链接]
作者
乐源   发布于2023-5-22 10:07:39 来自河北
tftp下载程序
WAP(Dopra Linux) # su
WAP(Dopra Linux) # shell
WAP(Dopra Linux) # cd /tmp
WAP(Dopra Linux) # tftp -g -r test.jar 192.168.0.16

执行程序
WAP(Dopra Linux) # java -jar test.jar

改双模
vi hw_boardinfo
找到obj.id = "0x00000001" ; obj.value = "4";这里,
英文状态下按字母:i   ,进入编辑模式,
然后把光标移动到后引号下面,Backspace删除,把2改成4,(1代表GPON,2代表EPON,4代表E/G双模),
按esc,然后输入:wq回车(注意冒号不能漏),然后reboot,重启光猫!

以下是各个参数的说明!!!以下是论坛找的6 E$ a  S! i. q
obj.id = "0x00000001" ; obj.value = "4";       1 光模式修改:4为双模  2为EP   1为GP
obj.id = "0x00000002" ; obj.value = "485754444AB7AB9A";      2 标签上的 PON NO
obj.id = "0x00000003" ; obj.value = "";
obj.id = "0x00000004" ; obj.value = "";
obj.id = "0x00000005" ; obj.value = "";
obj.id = "0x00000006" ; obj.value = "";
obj.id = "0x00000007" ; obj.value = "044BBBAGH6001122";      7 此处不用改
obj.id = "0x00000008" ; obj.value = "2150083444AAA6000999";  8 标签上的 PROD ID
obj.id = "0x00000009" ; obj.value = "";
obj.id = "0x0000000a" ; obj.value = "F8:55:88:88:84:C0";   重要:修改MAC只可修改前11位,往下要全换
obj.id = "0x0000000b" ; obj.value = "F8:55:88:88:84:C8";
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";
obj.id = "0x00000026" ; obj.value = "";
obj.id = "0x00000027" ; obj.value = "";
obj.id = "0x00000028" ; obj.value = "";
obj.id = "0x00000029" ; obj.value = "";
obj.id = "0x0000002a" ; obj.value = "";
obj.id = "0x0000002b" ; obj.value = "";
obj.id = "0x0000002c" ; obj.value = "";
obj.id = "0x00000016" ; obj.value = "";
obj.id = "0x00000018" ; obj.value = "0";    18 移动为 0,联通为 2
obj.id = "0x00000019" ; obj.value = "";
obj.id = "0x0000001a" ; obj.value = "E8C";  1a 移动为 CMCC,联通为 COMMON2
obj.id = "0x0000001b" ; obj.value = "BJCT";  1b 移动为 BJCMCC_RMS,联通为 SHCU
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";  31 移动CHOOSE_CMCC_RMS2,联通CHOOSE_UNICOM
obj.id = "0x00000034" ; obj.value = "00:00:00:00:00:0C";   34 默认数据不用改
obj.id = "0x00000036" ; obj.value = "";
obj.id = "0x00000037" ; obj.value = "";
obj.id = "0x00000038" ; obj.value = "";
obj.id = "0x00000035" ; obj.value = "";   35 只有移动填入 SMART ,电信、联通此处无数据
obj.id = "0x00000039" ; obj.value = "0x00102001";
obj.id = "0x0000003a" ; obj.value = "@@&@&@&@&@&";
obj.id = "0x0000003b" ; 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 = "";

网友简教程:固件版本是V3R016C00S100
1使能工具成功开启telnet,然后恢复华为原厂界面:restorehwmode.sh(恢复华为模式命令)(此步骤参考的 http://www.chinadsl.net/thread-125822-1-1.html)
WAP>su
Challenge:1GK543HB(请复制到SU密码计算器计算 华为光猫SU密码计算器.rar )
Please input verification code:
这个计算器我也下载好了,可是没有用到,直接就提示success,然后重启之后就变成华为经典界面
SU_WAP>shell
WAP(Dopra Linux) # restorehwmode.sh #恢复华为模式命令
reboot
WAP>su
set upport mode 4 (这里的4是自动模式)1 GPON 2EPON 4 AUTO
最后重启认证光猫成功后,再创建TR069协议 Internet协议(vlan)就可以使用了,由于固件是通用版不是定制版所以认证成功后很多配置olt不会自动下发,就需要手动创建了!



dmesg|more 显示内核缓冲区系统控制信息|more加开关
cat /proc/cpuinfo #查看cpu信息
cat /proc/meminfo #查看内存信息
Cpuinfo 主机CPU信息
Dma 主机DMA通道信息
Filesystems 文件系统信息
Interrupts 主机中断信息
Ioprots 主机I/O端口号信息
Meninfo 主机内存信息
Version Linux内存版本信息
display deviceinfo 显示硬件,E/G,软件版本等信息

查看CPU核心数
WAP(Dopra Linux) # cd /sys/devices/system/cpu/
WAP(Dopra Linux) # ls

uname -a #查看系统体系结构
dmesg | more 查看硬件信息(我找到了光猫是Epoin模式:epon .........HI_DP_5118_FPGA:0 mode:2)
cat /etc/issue 查看当前版本
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 创建账号

本版积分规则

Archiver|小黑屋|( 冀ICP备2021005463号 )

GMT+8, 2024-12-4 01:42 , Processed in 0.114990 second(s), 24 queries , Gzip On.

N2N1 It社区 n2n1.cn

Copyright © 2001-2021,MeiCheng.

快速回复 返回顶部 返回列表