创建于 2014-05-04
迁移自本人的百度空间
-----------------------------
telnet 光猫地址:
C:\Users\Administrator>telnet 192.168.100.1
Login:root
Password:admin 以*****方式显示
Password is default value, please modify it!
WAP>shell
WAP(Dopra Linux) # cd /mnt/jffs2
WAP(Dopra Linux) # cp hw_ctree.xml hw_ctree_bak.xml
WAP(Dopra Linux) # cp hw_ctree.xml myconfig.xml.gz
WAP(Dopra Linux) # aescrypt2 1 myconfig.xml.gz tmp
WAP(Dopra Linux) # gzip -d myconfig.xml.gz // 得倒 myconfig.xml
修改myconfig.xml的相关项
WAP(Dopra Linux) # vi myconfig.xml // /telecomadim,修改其密码后保存退出
压缩文件:
WAP(Dopra Linux) # gzip myconfig.xml // 压缩后生成文件myconfig.xml.gz, \
加密文件:
WAP(Dopra Linux) # aescrypt2 0 myconfig.xml.gz tmp
最后把加密后的文件覆盖原来的hw_ctree.xml:
WAP(Dopra Linux) # cp -f myconfig.xml.gz hw_ctree.xml
重启光猫即可。