找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 26624|回复: 24

[已解决]openwrt luci界面打不开;路由配置失败

[复制链接]
发表于 2020-3-23 11:10 | 显示全部楼层 |阅读模式
本帖最后由 正半轴 于 2020-3-24 16:36 编辑

我自行编译了一个固件,满足新的驱动需求,。
但是在修改完成ip后我发现打不开luci界面(本来也打不开)
于是我检查了一下我的几个组件:
root@OpenWrt:~# opkg install luci
Package luci (git-20.078.22902-0ed0d42-1) installed in root is up to date.
root@OpenWrt:~# opkg install uhttpd
Package uhttpd (2020-02-12-2ee323c0-1) installed in root is up to date.


uhttp 我也能启动
root@OpenWrt:/etc/config# /etc/init.d/uhttpd enable
root@OpenWrt:/etc/config# /etc/init.d/uhttpd start
但是浏览器开启网页还是搞不定,
显示:
se://error/
ip肯定是写对的。
对此我想求教怎么配置。我确定我一定是哪里配置错误了。
或者教教我怎么配置路由,配置永久静态路由
谢谢
我的恩山、我的无线 The best wifi forum is right here.
 楼主| 发表于 2020-3-23 13:31 | 显示全部楼层
还是不行,取消了全部的luci配置,尝试其他方案
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2020-3-23 13:49 | 显示全部楼层
尝试方案为,取消luci相关配置,手动添加:
./scripts/feeds update packages luci
./scripts/feeds install -a -p luci
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2020-3-23 14:16 | 显示全部楼层
pgrep uhttpd 看一下有进程id没有,再看下客户端是不是没有获取ipv4地址

点评

键入pgrep uhttpd获取了一个4位数:2344 可能是进程id。 客户端ipv4地址是什么意思,是、/etc/config/network里配置的ip吗?  详情 回复 发表于 2020-3-23 14:23
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2020-3-23 14:23 | 显示全部楼层
401626436 发表于 2020-3-23 14:16
pgrep uhttpd 看一下有进程id没有,再看下客户端是不是没有获取ipv4地址

键入pgrep uhttpd获取了一个4位数:2344 可能是进程id。
客户端ipv4地址是什么意思,是、/etc/config/network里配置的ip吗?
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2020-3-23 14:35 | 显示全部楼层
正半轴 发表于 2020-3-23 14:23
键入pgrep uhttpd获取了一个4位数:2344 可能是进程id。
客户端ipv4地址是什么意思,是、/etc/config/ne ...

的电脑或手机的ipv4的IP,有4位数uhttpd就是运行的用ipv6网关[ipv6网关地址]访问,然后到接口 将lan的强制链路关掉或者把强制dhcp打开,然后客户端释放IP从新获取就可以了

点评

root@OpenWrt:~# /etc/init.d/dnsmasq stop root@OpenWrt:~# /etc/init.d/dnsmasq start udhcpc: started, v1.31.1 udhcpc: sending discover udhcpc: sending select for 192.168.116.152 udhcpc: lease of 19  详情 回复 发表于 2020-3-23 14:56
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2020-3-23 14:56 | 显示全部楼层
401626436 发表于 2020-3-23 14:35
的电脑或手机的ipv4的IP,有4位数uhttpd就是运行的用ipv6网关访问,然后到接口 将lan的强制链路关掉或者 ...

root@OpenWrt:~# /etc/init.d/dnsmasq stop
root@OpenWrt:~# /etc/init.d/dnsmasq start
udhcpc: started, v1.31.1
udhcpc: sending discover
udhcpc: sending select for 192.168.116.152
udhcpc: lease of 192.168.116.152 obtained, lease time 1800
目前是这样的,尝试了一下页面还还是显示error,下一步怎么做
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2020-3-23 15:10 | 显示全部楼层
正半轴 发表于 2020-3-23 14:56
root@OpenWrt:~# /etc/init.d/dnsmasq stop
root@OpenWrt:~# /etc/init.d/dnsmasq start
udhcpc: start ...

你完全曲解了我的意思,uhttpd运行就有web页面(OPENWRT最新源里为了迎合ipv6把ipv4“屏蔽了”)这么说你懂我的意思没?所以此时你用lan的ip怎么访问都是无济于事的,算了!你直接cat /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 globals 'globals'  详情 回复 发表于 2020-3-23 15:12
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2020-3-23 15:12 | 显示全部楼层
401626436 发表于 2020-3-23 15:10
你完全曲解了我的意思,uhttpd运行就有web页面(OPENWRT最新源里为了迎合ipv6把ipv4“屏蔽了”)这么说你懂 ...

好的,谢谢!
config interface 'loopback'
        option ifname 'lo'
        option proto 'static'
        option ipaddr '127.0.0.1'
        option netmask '255.0.0.0'

config globals 'globals'
        option ula_prefix 'fd37:0503:82e3::/48'

config interface 'lan'
        option type 'bridge'
        option ifname 'eth0'
        option proto 'static'
        option ipaddr '192.168.116.20'
        option netmask '255.255.255.0'
        option ip6assign '60'
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2020-3-23 15:16 | 显示全部楼层
正半轴 发表于 2020-3-23 15:12
好的,谢谢!
config interface 'loopback'
        option ifname 'lo'

浏览器输入 [url=http://[fd37:0503:82e3::]]http://[fd37:0503:82e3::][/url]

点评

在/etc/sysctl.conf添加如下一行 net.ipv6.conf.all.disable_ipv6=1。 通过这么操作后我重启,然后看ifconfig br-lan Link encap:Ethernet HWaddr 00:0C:29:48:74:AA inet addr:192.168.116.20  详情 回复 发表于 2020-3-23 15:37
网页无法访问。,  详情 回复 发表于 2020-3-23 15:33
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2020-3-23 15:33 | 显示全部楼层
401626436 发表于 2020-3-23 15:16
浏览器输入 ]http://[fd37:0503:82e3::]

网页无法访问。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2020-3-23 15:37 | 显示全部楼层
401626436 发表于 2020-3-23 15:16
浏览器输入 ]http://[fd37:0503:82e3::]

在/etc/sysctl.conf添加如下一行
net.ipv6.conf.all.disable_ipv6=1。
通过这么操作后我重启,然后看ifconfig
br-lan    Link encap:Ethernet  HWaddr 00:0C:29:48:74:AA  
          inet addr:192.168.116.20  Bcast:192.168.116.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
没有ipv6内容了。但是还是不能开启luci页面
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2020-3-23 15:37 | 显示全部楼层
正半轴 发表于 2020-3-23 15:33
网页无法访问。,

[url=http://[fd37:0503:82e3::1]]http://[fd37:0503:82e3::1][/url]  不在家,拿着手机记性不好,要不我都可以直接给你拼出条一次性解决的命令了

点评

通过输入这个网址目前有了新的进展,之前是普通的网页无法找到,现在和输入192.168.116.20 一样都是se://error/了.但是通过ifconfig里的另一个 inet6 addr: fd37:503:82e3::1/60 Scope:Global inet6 add  详情 回复 发表于 2020-3-23 15:47
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2020-3-23 15:47 | 显示全部楼层
401626436 发表于 2020-3-23 15:37
]http://[fd37:0503:82e3::1]  不在家,拿着手机记性不好,要不我都可以直接给你拼出条一次性解决的命令 ...

通过输入这个网址目前有了新的进展,之前是普通的网页无法找到,现在和输入192.168.116.20 一样都是se://error/了.但是通过ifconfig里的另一个
inet6 addr: fd37:503:82e3::1/60 Scope:Global
          inet6 addr: fe80::20c:29ff:fe48:74aa/64 Scopeink
进行连接,打开了luci页面.
非常感谢。

点评

uci set network.lan.force_link=0 && uci commit network && /etc/init.d/network restart  详情 回复 发表于 2020-3-23 16:09
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2020-3-23 15:51 | 显示全部楼层
正半轴 发表于 2020-3-23 15:47
通过输入这个网址目前有了新的进展,之前是普通的网页无法找到,现在和输入192.168.116.20 一样都是se:// ...

然后网页lan把强制链路关掉

点评

被自己笨枯了,在配置选项里,的information里ip相关的选项里,我取消了最上面2个勾,一个是ipv6,现在v6或者v4都登录不上去了,复位了一下也不行。对此有解决办法吗。  详情 回复 发表于 2020-3-23 16:23
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-4-20 06:57

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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

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