找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 3122|回复: 11

[openwrt(x86)] OpenWrt装笔记本上,连不上网

[复制链接]
下了很多个固件,复制到u盘,设置笔记本从u盘启动,启动后按Enter键能够进入命令行界面,网络始终不通。

网络不同的几个表现:一是ping其他ip地址,都不通。二是用命令“opkg update”,提示失败。
笔记本电脑的情况:typec接口扩展钨上带的有线网接口、笔记本内置无线。装上系统以后,没有进行任何设置,只有有线连接在路由器上。

/etc/config/config文件如下:

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 '一串用冒号分隔的字母和数字组合'

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

我的恩山、我的无线 The best wifi forum is right here.
 楼主| | 显示全部楼层
实在搞不定,寻求各位的帮助
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

你只有一个lan口,怎么通?除非它心电感应,和隔壁老王家的宽带搞上了。

点评

是只有一个lan口,它肯定还不能让别的设备联通。问题是这台机子的网络也不通。需要建设性的意见,不是别的!  详情 回复 发表于 2020-6-24 19:39
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

一个网口可以做旁路由

点评

这台机子自身也都连不上网。请问需要怎么设置?谢谢!  详情 回复 发表于 2020-6-24 19:36
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| | 显示全部楼层
twyvv 发表于 2020-6-24 19:23
一个网口可以做旁路由

这台机子自身也都连不上网。请问需要怎么设置?谢谢!
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| | 显示全部楼层
wulishui 发表于 2020-6-24 19:21
你只有一个lan口,怎么通?除非它心电感应,和隔壁老王家的宽带搞上了。

是只有一个lan口,它肯定还不能让别的设备联通。问题是这台机子的网络也不通。需要建设性的意见,不是别的!
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

添加网关和DNS才能上网
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

重装
用别的电脑连接这台openwrt
网络--->防火墙 都接受
config interface 'lan'
    option type 'bridge'
    #option ifname 'eth0'
    option proto 'static'
    option ipaddr '192.168.1.1'
    option netmask '255.255.255.0'
    option ip6assign '60'
config interface wan
        option proto dhcp
        option ifname eth0

重启
挂别的路由下面 看下 ip
进去设置

点评

这台OpenWrt和别的都不通啊。  详情 回复 发表于 2020-6-24 20:23
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

多换几个固件测试,有的在笔记本上就是不行
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

肯定得设置,你就是买个硬路由不设置它也上不了网啊
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| | 显示全部楼层
心太高命太薄 发表于 2020-6-24 19:58
重装
用别的电脑连接这台openwrt
网络--->防火墙 都接受

这台OpenWrt和别的都不通啊。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

在确认你的openwer支持你的typec接口网卡的前提下,network中应该设置你的网关为路由器ip,并设置dns为路由地址或可用的DNS。并且openwrt的ip地址和路由在一个网段。在/etc/config/dhcp中关闭dhcp服务。
        config dhcp 'lan'
        option interface 'lan'
        option ignore '1'
应该是可心通啦,当然这个东西还是再找只电脑用luci配置方便点。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

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

本版积分规则

关闭

欢迎大家光临恩山无线论坛上一条 /1 下一条

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

GMT+8, 2024-4-29 18:47

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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

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