openwrt 网关烧写程序

1、用SecureCRT配serial端口,波特率57600

2、开启网关烧写openwrt.bin

3、配置vi   /etc/config/network

    lan——》eth0.1

   wan——》eth0.2

   0.1、0.2互换 (lan0.1 wan 0.2)

4、输入passwd设置root密码

5、重启网关配置/etc/init.d/netwrok reload


二、用ssh传ipk

1、opkg install  xxx.ipk


三、配置网关端口

     vi   /etc/twrt/config

四、配置网关id

  vi /root/id_sys

  vi  /etc/twrt/id_sys (无效)

注意:passwd  重置密码

五、使能网关wifi

  vi  /etc/config/wireless

option disable 0


六、设备重启

  /etc/init.d/twrt restart


七、内网端口配置

 LOCALHOST_PORT=9091
LOCALHOST_PROC=1


八、ps 查看进程

      kill 杀掉进程

      twrt 重启进程



九、 usr/sbin/twrt

       etc/init.d/twrt  stop

      etc/init.d/twrt  start


十、清空文件

      echo > scene


十一、查询网关IP

      ifconfig


备注:网关重启

      etc/init.d/twrt stop

      killall   twrt




posted @ 2015-10-17 21:47  云中鹤5786  阅读(421)  评论(0编辑  收藏  举报