友华通信HG510E/HG510G等RTL芯片融合网关解除DNS劫持及修改GPON/EPON模式
1.正常登录设备
2.在浏览器输入输入http://192.168.1.1/cgi-bin/abcdidfope94e0934jiewru8ew414.cgi开启telnet
3.使用telnet工具登录设备,
yhtcAdmin
Cm1@YHfw
4.telnet登录成功后输入如下命令:
sed -i 's/CWMP_USERINFO_RESULT" Value="99"/CWMP_USERINFO_RESULT" Value="1"/g' /etc/config/lastgood.xml
sed -i 's/CWMP_REG_INFORM_STATUS" Value="0"/CWMP_REG_INFORM_STATUS" Value="2"/g' /etc/config/lastgood.xml
sed -i 's/CWMP_USERINFO_TIMES" Value="0"/CWMP_USERINFO_TIMES" Value="8"/g' /etc/config/lastgood.xml
sed -i 's/CWMP_USERINFO_LIMIT" Value="10"/CWMP_USERINFO_LIMIT" Value="10"/g' /etc/config/lastgood.xml
sed -i 's/CWMP_USERINFO_STATUS" Value="99"/CWMP_USERINFO_STATUS" Value="0"/g' /etc/config/lastgood.xml
sed -i 's/CWMP_USERINFO_RESULT" Value="99"/CWMP_USERINFO_RESULT" Value="1"/g' /etc/config/lastgood.xml_bak
sed -i 's/CWMP_REG_INFORM_STATUS" Value="0"/CWMP_REG_INFORM_STATUS" Value="2"/g' /etc/config/lastgood.xml_bak
sed -i 's/CWMP_USERINFO_TIMES" Value="0"/CWMP_USERINFO_TIMES" Value="8"/g' /etc/config/lastgood.xml_bak
sed -i 's/CWMP_USERINFO_LIMIT" Value="10"/CWMP_USERINFO_LIMIT" Value="10"/g' /etc/config/lastgood.xml_bak
sed -i 's/CWMP_USERINFO_STATUS" Value="99"/CWMP_USERINFO_STATUS" Value="0"/g' /etc/config/lastgood.xml_bak
5、修改GPON/EPON模式
mib set PON_MODE 2
mib commit