找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 1337|回复: 9

[openwrt(x86)] 如何在Docker里面运行OP做旁路由?

[复制链接]
发表于 2022-5-6 09:51 | 显示全部楼层 |阅读模式
看了这篇文章的帖子,https://mlapp.cn/376.html,发现并不能运行起来,我目前的网络环境是有一个小主机装了Linux,然后用Wi-Fi链接的网络,因为没有有线接口,所以只想运行一个OP做旁路由
我的恩山、我的无线 The best wifi forum is right here.
发表于 2022-5-6 10:03 | 显示全部楼层
拉取这个镜像:registry.cn-shanghai.aliyuncs.com/suling/openwrt:x86_64
默认的镜像是 arm架构的镜像,在 x86上当然 不能运行

点评

我拉取的是这个镜像  详情 回复 发表于 2022-5-6 10:08
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2022-5-6 10:08 | 显示全部楼层
jjit 发表于 2022-5-6 10:03
拉取这个镜像:registry.cn-shanghai.aliyuncs.com/suling/openwrt:x86_64
默认的镜像是 arm架构的镜像, ...

我拉取的是这个镜像

  1. sudo ifconfig wlan0 promisc

  2. docker network create -d macvlan --subnet=192.168.1.0/24 --gateway=192.168.1.1 -o parent=wlan0 macnet

  3. docker run --restart always --name openwrt -d --network macnet --privileged registry.cn-shanghai.aliyuncs.com/suling/openwrt:x86_64 /sbin/init
复制代码
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2022-5-6 10:15 | 显示全部楼层
本帖最后由 jjit 于 2022-5-6 10:17 编辑

那就换个人做的镜像呢,试试这个:https://hub.docker.com/r/kiddin9/openwrt-nginx
kiddin9/openwrt-nginx:x86_64
教程: https://t.ly/1gyR

点评

尝试了一下也不行  详情 回复 发表于 2022-5-6 10:28
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2022-5-6 10:28 | 显示全部楼层
jjit 发表于 2022-5-6 10:15
那就换个人做的镜像呢,试试这个:https://hub.docker.com/r/kiddin9/openwrt-nginx
kiddin9/openwrt-ngin ...

尝试了一下也不行

点评

你小主机的CPU是 64位的吗,装的 Linux系统也是 64位的系统吗  详情 回复 发表于 2022-5-6 10:30
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2022-5-6 10:30 | 显示全部楼层
积分充值 发表于 2022-5-6 10:28
尝试了一下也不行

你小主机的CPU是 64位的吗,装的 Linux系统也是 64位的系统吗

点评

主机是NUC11 i5,系统是ubuntu 22.04,都是x86的  详情 回复 发表于 2022-5-6 10:32
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2022-5-6 10:32 | 显示全部楼层
jjit 发表于 2022-5-6 10:30
你小主机的CPU是 64位的吗,装的 Linux系统也是 64位的系统吗

主机是NUC11 i5,系统是ubuntu 22.04,都是64位的
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2022-5-6 10:43 | 显示全部楼层
不知道了,运行不起来,有报什么错误信息吗

点评

没有任何报错信息,就是进入OP配置网IP地址,无法ping通网关IP,外面也无法ping通OP地址  详情 回复 发表于 2022-5-6 10:47
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2022-5-6 10:47 | 显示全部楼层
jjit 发表于 2022-5-6 10:43
不知道了,运行不起来,有报什么错误信息吗

没有任何报错信息,就是进入OP配置网IP地址,无法ping通网关IP,外面也无法ping通OP地址
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2022-5-6 13:43 | 显示全部楼层
没有网口能行呢?
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-4-19 15:00

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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

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