找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 84918|回复: 72

刷了OPENWRT官方原版(无界面)---》安装WEB管理界面新手教程!

 火.. [复制链接]
发表于 2011-4-9 22:37 | 显示全部楼层 |阅读模式
本帖最后由 zhongmeian 于 2011-4-9 23:06 编辑

官方固件刷完后本身不带界面的,导致很多新手进不了WEB界面,以为刷挂。
我也是新手,特发此教程。

SHH命令和Telnet命令推介用软件putty,可以多模式切换。大家可以百度一下去找下载。论坛传不上。(三楼有下)

1.先用Telnet  改密码   
命今:passwd root
输二次就修改成功了。

2.再用winscp工具进路由修改/etc/config/network修改如下:


config 'interface' 'loopback'
        option 'ifname' 'lo'
        option 'proto' 'static'
        option 'ipaddr' '127.0.0.1'
        option 'netmask' '255.0.0.0'

config 'interface' 'lan'
        option 'ifname' 'eth0'
        option 'type' 'bridge'
        option 'proto' 'static'
        option 'ipaddr' '192.168.1.1'
        option 'netmask' '255.255.255.0'

config 'interface' 'wan'
        option 'ifname' 'eth1'
        option 'proto' 'pppoe'
        option 'username' '你的ADSL账号'
        option 'password' '密码'

config 'switch' 'eth0'
        option 'enable_vlan' '1'

config 'switch_vlan'
        option 'device' 'eth0'
        option 'vlan' '1'
        option 'ports' '0 1 2 3 4'

或接上二级路由上或其它方法。总之让这个路由能上网!!!!!!

3. 用SHH 命今手动安装界面.
opkg update
opkg install luci

/etc/init.d/uhttpd enable
/etc/init.d/uhttpd start

完了,你就可以看到界面了。

评分

参与人数 2恩山币 +2 收起 理由
hzxbusiness + 1 呐,做人呢,最重要的就是开心
xbbz + 1 我是来打酱油的~

查看全部评分

我的恩山、我的无线 The best wifi forum is right here.
发表于 2011-4-9 22:45 | 显示全部楼层
我也来补充:
让设备联网,需要编辑network
  1. vi /etc/config/network
复制代码
参考下面配置
  1. config 'interface' 'loopback'
  2.         option 'ifname' 'lo'
  3.         option 'proto' 'static'
  4.         option 'ipaddr' '127.0.0.1'
  5.         option 'netmask' '255.0.0.0'

  6. config 'interface' 'lan'
  7.         option 'ifname' 'eth0'
  8.         option 'type' 'bridge'
  9.         option 'proto' 'static'
  10.         option 'ipaddr' '192.168.1.1'
  11.         option 'netmask' '255.255.255.0'

  12. config 'interface' 'wan'
  13.         option 'ifname' 'eth1'
  14.         option 'proto' 'pppoe'
  15.         option 'username' '帐号'
  16.         option 'password' '密码'
  17.         option 'mtu' '1492'

  18. config 'switch' 'eth0'
  19.         option 'enable_vlan' '1'

  20. config 'switch_vlan'
  21.         option 'device' 'eth0'
  22.         option 'vlan' '1'
  23.         option 'ports' '0 1 2 3 4'
复制代码
我这里用的是无线客户端模式,编辑无线配置文件,开启无线,配置无线客户端dhcp模式。
  1. vi /etc/config/wireless
复制代码
参考下面配置
  1. config 'wifi-device' 'radio0'
  2.         option 'type' 'mac80211'
  3.         option 'macaddr' '你的无线MAC'
  4.         option 'hwmode' '11ng'
  5.         list 'ht_capab' 'SHORT-GI-20'
  6.         list 'ht_capab' 'SHORT-GI-40'
  7.         list 'ht_capab' 'TX-STBC'
  8.         list 'ht_capab' 'RX-STBC1'
  9.         list 'ht_capab' 'DSSS_CCK-40'
  10.         option 'disabled' '0'
  11.         option 'channel' '8'
  12.         option 'txpower' '20'
  13.         option 'country' 'US'
  14.         option 'htmode' 'HT40-'

  15. config 'wifi-iface'
  16.         option 'device' 'radio0'
  17.         option 'network' 'lan'
  18.         option 'mode' 'ap'
  19.         option 'ssid' '无线SSID'
  20.         option 'encryption' 'psk'
  21.         option 'key' '无线连接密码'
复制代码
重新启动网络
  1. /etc/init.d/network restart
复制代码
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2011-4-9 22:45 | 显示全部楼层
还是想办法把PUTTY放上来吧,真蛋痛,论坛限制附件只能200k

解压后,运行那个444K大小的PUTTY.exe就行了。默认选了SHH,还有输密码时,是不会显示的。

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

×
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2011-4-9 22:47 | 显示全部楼层
呵呵,99兄,你也在啊。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2011-4-9 22:59 | 显示全部楼层
谢谢你的指教。我真以为刷挂了
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2011-4-9 23:07 | 显示全部楼层
不客气,我也是上周才玩这个。发现网上资料太少了。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2011-4-9 23:09 | 显示全部楼层
哈哈,偶是蹭网的,设置起来要麻烦点。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2011-4-9 23:38 | 显示全部楼层
大哥们,我改了密码后不能telnet了……
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2011-4-9 23:55 | 显示全部楼层
大哥们,我改了密码后不能telnet了……
tangzuzh 发表于 2011-4-9 23:38

改了密码用SSH登陆。
修改配置文件阿可以用WINSCP
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2011-4-10 00:04 | 显示全部楼层
不知道trunk版的web界面什么时候并入发布版??
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2011-4-10 00:46 | 显示全部楼层
已经解决了,重刷了固件。谢谢大哥们
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2011-4-11 20:53 | 显示全部楼层
这个我转个链接到openwrt.org.cn,相信很多人需要。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2011-4-11 22:33 | 显示全部楼层
这个好,mark一下啦。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2011-4-13 16:26 | 显示全部楼层
分流一下:http://www.leang.org:88/uploads/putty.rar
不解释~
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2011-4-14 16:09 | 显示全部楼层
顶!
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

有疑问请添加管理员QQ86788181|手机版|小黑屋|Archiver|恩山无线论坛(常州市恩山计算机开发有限公司版权所有) ( 苏ICP备05084872号 )

GMT+8, 2024-4-20 11:35

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

| 江苏省互联网有害信息举报中心 举报信箱:js12377 | @jischina.com.cn 举报电话:025-88802724 本站不良内容举报信箱:68610888@qq.com 举报电话:0519-86695797

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