我是ipv6直连的 解决方式是写了个邮件自动发送地址给我自己
—— 来自 Xiaomi 24122RKC7C, Android 15上的 ...
阿里云买个域名买十年用不了多少钱 astkaasa 发表于 2025-8-8 14:49
阿里云买个域名买十年用不了多少钱
32楼要求高铁上断网访问
有网其实找阿里云/腾讯云的NAS服务也行,0.2元/GB/月不限速 另外怎么定义全闪NAS,拿个随身路由器插1TB的U盘开网络共享算么,必要的时候拔下U盘OTG连手机 ltycomputer 发表于 2025-8-8 15:07
另外怎么定义全闪NAS,拿个随身路由器插1TB的U盘开网络共享算么,必要的时候拔下U盘OTG连手机 ...
我有个暴论:用USB接入的存储不能算NAS,它应该属于Hub 还有个歪路子,闲鱼搜农商云/彼度云,跑PCDN的路由器,WiFi6已刷iStore OS,内置256/512G EMMC,RK3568的CPU,还能塞个2280尺寸的NVME盘
这下能docker了,然后还能找人升级内存和EMMC,不过据说发热不小
弄个双网口,一个口固定好ip用网线直连 WiiGe 发表于 2025-8-8 14:22
无线网卡用了Intel 9560NGW CNVI,E key的M.2网卡, 飞牛的系统没驱动
截止现在飞牛最新的内核是Kernel 6 ...
这就是我说的感觉困难的地方,虚拟机和宿主机之间的网络配置,把无线网卡共享给虚拟机可能还不够,有线网卡应该也是要由 openwrt 管理的,不然宿主机也得跑一个 dhcp,共享完之后还得让虚拟机给宿主机暴露一个网络设备,配置成宿主机通过虚拟机联网,挺反直觉的,感觉很容易踩坑。让我来按这个思路做的话,我肯定不要虚拟机,直接在宿主机上配置 nat,dhcp,ap 和 sta 等。 折腾一整天, 我认为我已经实现了1楼中所述的全部效果, 我将分三楼简述最终的具体需求, 技术信息和操作步骤 核心需求:
1. 创建虚拟网络环境接管enp2s0f0和enp2s0f1,不干扰现有的eno1网络配置
2. OpenWrt虚拟机作为路由器,管理仅针对于接入PC和NAS物理机的局域网
3. 物理机需要在新局域网中有固定IP, 便于局域网内设备访问
4. 保留物理机通过eno1正常互联网访问能力
5. 保留物理机通过wls5f3的正常互联网访问能力
功能需求
1. 客户端PC接入功能: 通过enp2s0f0和enp2s0f1物理网口接入的PC能够获得IP并访问Internet
2. 局域网内部通信: 客户端PC ↔ 物理机 ↔ OpenWrt 能够互相访问
3. DHCP服务: 由虚拟机OpenWrt提供IP地址分配服务
4. 网络隔离: 新的局域网与现有eno1网络相对独立, 以便路由器能够为eno1动态分配IP
扩展需求
1. 虚拟机流量应通过OpenWrt访问互联网: 利用OpenWrt的透明隧道(科学这部分不能聊的话请告知, 我会删掉这段)
2. (可选功能)客户端通过wls5f3访问物理机和openwrt虚拟机: 利用无线网卡的AP和STA共存功能
3. 能够通过OpenWrt监控和管理整个局域网流量
4. 服务访问: 局域网内设备能够访问物理机上运行的服务
安全需求
1. 网络安全: 局域网与外部网络适当隔离
2. 访问控制: 由openwrt实现控制不同设备间的访问权限
3. 防火墙功能: 由openwrt实现支持基本的网络安全防护
性能需求
1. 网络性能: 最小化网络延迟和包丢失
2. 可扩展性: 便于后续添加更多网络功能和设备
本帖最后由 WiiGe 于 2025-8-9 23:49 编辑
硬件配置:
HP Z2 SFF G4 , 32G, i7-8700K
网络方面是板载网卡eno1, Intel X550-T2, 分别为enp2s0f0和enp2s0f1, WLAN网卡Intel 9560NGW CNVI, 设备名称为wls5f3
为便于不熟悉的人使用, 使用了免费且界面友好的飞牛OS, 版本如图 0.9.18
网络设备如下图:
已有的技术约束:
1. 需要保留现有配置: 不破坏现有的eno1和wls5f3网络配置, 不能影响物理机上网功能
2. 充分利用OVS的网络虚拟化能力, 因为飞牛OS只允许物理网卡直通虚拟机和转为OVS网桥两种接入虚拟机的方式
3. 得开机自启动, 所有网络配置需要支持系统重启后自动恢复
4. 完成配置后应使客户端PC免配置访问
5. 物理机上的 NetworkManager 会删除 OVS 网桥, 需要通过 NetworkManager 来管理 OVS 网桥
物理网络接口规划
1. eno1: 用于互联网接入
2. wls5f3: 用于互联网接入
3. enp2s0f0和enp2s0f1: 用于客户端PC接入
本帖最后由 WiiGe 于 2025-8-9 23:37 编辑
实现步骤:
1. 为所有物理机网口启用OVS, WLAN就不用了, 没这个选项
2. 新建OpenWRT虚拟机, 将这几个OVS网口共享给虚拟机
3. 将用于访问互联网的eno1-ovs设置为DHCP, 交由外部路由器/交换机管理, 无需用户介入配置
4. 将用于局域网PC访问的enp2s0f0和enp2s0f1设置手动, IP固定为192.168.100.50/24, 网关设置为OpenWRT的地址192.168.100.1, 以便访问
5. 登录OpenWRT, 将enp2s0f0和enp2s0f1对应的eth0和eth1加入br-lan
6. 新建wan设备, 置为DHCP, 将eno1对应的eth2加入wan
7, 在openwrt的dns/dhcp中随心所欲地进行静态地址绑定
8. 保存OpenWRT设置, 确认配置效果
网络拓扑:
$ sudo ovs-vsctl show
Bridge enp2s0f1-ovs
Port vnet1
Interface vnet1
Port enp2s0f1
Interface enp2s0f1
Port enp2s0f1-ovs
Interface enp2s0f1-ovs
type: internal
Bridge eno1-ovs
Port eno1
Interface eno1
Port eno1-ovs
Interface eno1-ovs
type: internal
Port vnet2
Interface vnet2
Bridge enp2s0f0-ovs
Port enp2s0f0-ovs
Interface enp2s0f0-ovs
type: internal
Port vnet0
Interface vnet0
Port enp2s0f0
Interface enp2s0f0
ovs_version: "3.1.0"
数据流示例:
场景1:客户端PC访问互联网
客户端PC
↓
enp2s0f1(物理机直连,IP 192.168.100.113)
↓
[通过路由表匹配,转发到OpenWrt LAN]
↓
虚拟机wrt eth0/eth1(LAN口)
↓
↓
虚拟机wrt eth2(WAN口)→ eno1-ovs网桥 → eno1 → 互联网
场景2:跨物理网卡LAN通信
enp2s0f0-ovs网桥 ↔ enp2s0f1-ovs网桥
↓
需通过虚拟机wrt的eth0↔eth1软交换(无直连路径)
↓
虚拟机内部桥接或VLAN处理(需配置br-lan)
以上就是无需和飞牛OS的networking.service缠斗也无需linux命令, 且能够适应大多数网络环境同时固定IP的NAS配置
已知问题:
1. 不能把enp2s0f0和enp2s0f1做成链路聚合bond再给它开OVS, 飞牛不允许
2. 不能给enp2s0f0-ovs和enp2s0f1-ovs指定相同的IP(显然), 所以如果你插了4口网卡得手动配置4个IP, 不过网线接入任意一个LAN都能访问到其他IP. 因此我仍认为这是一种固定IP的配置方式
3. 尚未将wlan网卡纳入配置
感谢前面几十楼老哥们的建言, 我的方案如有什么考虑不周的地方, 欢迎朱军大力指出 直接使用ipv6的linklocal作为ip地址 moyuzhijia 发表于 2025-8-9 23:44
直接使用ipv6的linklocal作为ip地址
linklocal啊, 我还不太清楚lan <-> wan 访问该怎么配呢, 是不是要做点4to6/6to4的NAT来保证客户端PC上网? 恭喜,不过看下来感觉还是太复杂了,从操作的角度来说,只利用现有的GUI工具就完成或许是“简单”,但从架构来说有点复杂,不太优雅也有些问题不好解决,比如说 wlan 现在就很尴尬,以及网线连接访问互联网也很麻烦。
我认为“简单”的架构要么是之前说的不要虚拟机的方案,或者比较抗拒这种方式的话,也可以把所有的物理网卡直通给虚拟机,此时这个虚拟机就相当于一个真实的路由器,路由器的网口和 wifi 就是该物理机的所有网口和 wifi,此时不论是 dhcp,ap/sta,或者 nat,路由都由 openwrt 管理,就我的经验默认配置应该就够用了,唯一的特例是宿主机本身,在创建虚拟机时除了直通网卡之外还要配置桥接,然后宿主机通过桥接的虚拟网口来上网,这个架构下 openwrt 作为网络的核心和唯一的出口,不论是配置操作扩展等等都要方便很多,网络性能大概也会更好一点。 本帖最后由 WiiGe 于 2025-8-10 02:13 编辑
indtability 发表于 2025-8-10 01:38
恭喜,不过看下来感觉还是太复杂了,从操作的角度来说,只利用现有的GUI工具就完成或许是“简单”,但从架 ...
中肯, 我实在没敢全部直通是因为因为两方面原因(在限定了飞牛OS的情况下):
1. 9560NGW直通给openwrt他不识别, 可能是openwrt的驱动没带, 那我得去给他构建一份带驱动的镜像, 想象一下就开始烦躁了, 就放下了先尝试ovs的方案
2. 全网络接口直通如你所言, 会遇到物理机没网卡可用, 必须依赖虚拟网卡而虚拟网卡可能不太稳的情况: 在尝试过程中, 飞牛OS上添加tap和veth的时候也会时不时地消失某些配置和虚拟设备, 这让我有些心悸
总的来说, 用全直通是个更优雅的方案, 但是在不知道哪些地方有限制得和飞牛斗智斗勇的情况下, 我还是先依赖GUI能配置的部分, 鬼知道会不会一个系统更新给你全杀了, 要是这种事情发生在老哥身上怕是要提刀上门请我吃席. 下一步我觉得就是折腾一下飞牛的wlan, 怎么给它弄进虚拟环境还能让host OS和虚拟机一起访问
我甚至在配节点连通性的过程中动过直接PVE, 在纯虚拟化的环境下搭飞牛和openwrt的想法, 但还是因为性能开销和可管理性放弃了这个点子, 新手拿到PVE肯定全麻
所以也倒不是抗拒某个方案, 而是发现飞牛和群晖TrueNAS一个做派: 你不知道某个地方的配置会不会有系统跟你作对, 即 "我不能完全信任飞牛的组件可靠性", 如果是纯血debian或者ubuntu, 8月7号就把这坨虚拟网络全弄好了, 可惜对方根本不会使用SSH
Anyway: 飞 牛 全 责 WiiGe 发表于 2025-8-10 02:10
中肯, 我实在没敢全部直通是因为因为两方面原因(在限定了飞牛OS的情况下):
1. 9560NGW直通给openwrt他不 ...
限定这种 nas 系统的话是有点尴尬,不太敢依赖它的稳定性,不过即使各种 immutable 的系统也会留下更新后保留配置的方法,或许是特定路径挂载,或许是某个分区做 overlay,我觉得长期使用的系统都应该能做到这点才对,不过物理机没网口出故障确实是最薄弱的环节,我的想法里最后托底的方式应该是通过显示口和usb键鼠直接操作,事实上即使使用物理网口,更新出问题导致网口配置丢失,甚至是进入系统时卡住一样要面临无法通过网络远程的情况,概率比较小而已,最能托底的还是无需配置的输入输出口,有托底的手段的话我更倾向更合理更优雅的方案,没这个条件尤其是用户也不会修的话,确实最好选个出问题概率小的。 indtability 发表于 2025-8-10 12:23
限定这种 nas 系统的话是有点尴尬,不太敢依赖它的稳定性,不过即使各种 immutable 的系统也会留下更新后 ...
头疼, 我把Intel AC9560直通给虚拟机后, 这openwrt根本都没有网络-> 无线这个页面
看了dmesg 发现没有固件:
# dmesg | grep -i iwl
[ 6.773155] iwlwifi 0000:00:0b.0: Detected crf-id 0x2816, cnv-id 0x1000100 wfpm id 0x80000000
[ 6.773763] iwlwifi 0000:00:0b.0: PCI dev a370/0234, rev=0x312, rfid=0x105110
[ 6.774295] iwlwifi 0000:00:0b.0: Detected Intel(R) Wireless-AC 9560
[ 6.774882] iwlwifi 0000:00:0b.0: Direct firmware load for iwlwifi-9000-pu-b0-jf-b0-46.ucode failed with error -2
[ 6.775600] iwlwifi 0000:00:0b.0: Falling back to sysfs fallback for: iwlwifi-9000-pu-b0-jf-b0-46.ucode
[ 6.777725] iwlwifi 0000:00:0b.0: Direct firmware load for iwlwifi-9000-pu-b0-jf-b0-45.ucode failed with error -2
[ 6.778641] iwlwifi 0000:00:0b.0: Falling back to sysfs fallback for: iwlwifi-9000-pu-b0-jf-b0-45.ucode
[ 6.784804] iwlwifi 0000:00:0b.0: Direct firmware load for iwlwifi-9000-pu-b0-jf-b0-44.ucode failed with error -2
[ 6.785529] iwlwifi 0000:00:0b.0: Falling back to sysfs fallback for: iwlwifi-9000-pu-b0-jf-b0-44.ucode
[ 6.789702] iwlwifi 0000:00:0b.0: Direct firmware load for iwlwifi-9000-pu-b0-jf-b0-43.ucode failed with error -2
[ 6.790418] iwlwifi 0000:00:0b.0: Falling back to sysfs fallback for: iwlwifi-9000-pu-b0-jf-b0-43.ucode
[ 6.793262] iwlwifi 0000:00:0b.0: Direct firmware load for iwlwifi-9000-pu-b0-jf-b0-42.ucode failed with error -2
[ 6.794002] iwlwifi 0000:00:0b.0: Falling back to sysfs fallback for: iwlwifi-9000-pu-b0-jf-b0-42.ucode
[ 6.796171] iwlwifi 0000:00:0b.0: Direct firmware load for iwlwifi-9000-pu-b0-jf-b0-41.ucode failed with error -2
[ 6.796897] iwlwifi 0000:00:0b.0: Falling back to sysfs fallback for: iwlwifi-9000-pu-b0-jf-b0-41.ucode
[ 6.799112] iwlwifi 0000:00:0b.0: Direct firmware load for iwlwifi-9000-pu-b0-jf-b0-40.ucode failed with error -2
[ 6.799836] iwlwifi 0000:00:0b.0: Falling back to sysfs fallback for: iwlwifi-9000-pu-b0-jf-b0-40.ucode
[ 6.801942] iwlwifi 0000:00:0b.0: Direct firmware load for iwlwifi-9000-pu-b0-jf-b0-39.ucode failed with error -2
[ 6.802676] iwlwifi 0000:00:0b.0: Falling back to sysfs fallback for: iwlwifi-9000-pu-b0-jf-b0-39.ucode
[ 6.805358] iwlwifi 0000:00:0b.0: Direct firmware load for iwlwifi-9000-pu-b0-jf-b0-38.ucode failed with error -2
[ 6.806406] iwlwifi 0000:00:0b.0: Falling back to sysfs fallback for: iwlwifi-9000-pu-b0-jf-b0-38.ucode
[ 6.808596] iwlwifi 0000:00:0b.0: Direct firmware load for iwlwifi-9000-pu-b0-jf-b0-37.ucode failed with error -2
[ 6.809318] iwlwifi 0000:00:0b.0: Falling back to sysfs fallback for: iwlwifi-9000-pu-b0-jf-b0-37.ucode
[ 6.812043] iwlwifi 0000:00:0b.0: Direct firmware load for iwlwifi-9000-pu-b0-jf-b0-36.ucode failed with error -2
[ 6.812765] iwlwifi 0000:00:0b.0: Falling back to sysfs fallback for: iwlwifi-9000-pu-b0-jf-b0-36.ucode
[ 6.814941] iwlwifi 0000:00:0b.0: Direct firmware load for iwlwifi-9000-pu-b0-jf-b0-35.ucode failed with error -2
[ 6.815666] iwlwifi 0000:00:0b.0: Falling back to sysfs fallback for: iwlwifi-9000-pu-b0-jf-b0-35.ucode
[ 6.817823] iwlwifi 0000:00:0b.0: Direct firmware load for iwlwifi-9000-pu-b0-jf-b0-34.ucode failed with error -2
[ 6.818545] iwlwifi 0000:00:0b.0: Falling back to sysfs fallback for: iwlwifi-9000-pu-b0-jf-b0-34.ucode
[ 6.820711] iwlwifi 0000:00:0b.0: Direct firmware load for iwlwifi-9000-pu-b0-jf-b0-33.ucode failed with error -2
[ 6.821434] iwlwifi 0000:00:0b.0: Falling back to sysfs fallback for: iwlwifi-9000-pu-b0-jf-b0-33.ucode
[ 6.823519] iwlwifi 0000:00:0b.0: Direct firmware load for iwlwifi-9000-pu-b0-jf-b0-32.ucode failed with error -2
[ 6.824249] iwlwifi 0000:00:0b.0: Falling back to sysfs fallback for: iwlwifi-9000-pu-b0-jf-b0-32.ucode
[ 6.826459] iwlwifi 0000:00:0b.0: Direct firmware load for iwlwifi-9000-pu-b0-jf-b0-31.ucode failed with error -2
[ 6.827186] iwlwifi 0000:00:0b.0: Falling back to sysfs fallback for: iwlwifi-9000-pu-b0-jf-b0-31.ucode
[ 6.829320] iwlwifi 0000:00:0b.0: Direct firmware load for iwlwifi-9000-pu-b0-jf-b0-30.ucode failed with error -2
[ 6.830041] iwlwifi 0000:00:0b.0: Falling back to sysfs fallback for: iwlwifi-9000-pu-b0-jf-b0-30.ucode
[ 6.832159] iwlwifi 0000:00:0b.0: no suitable firmware found!
[ 6.832572] iwlwifi 0000:00:0b.0: minimum version required: iwlwifi-9000-pu-b0-jf-b0-30
[ 6.833134] iwlwifi 0000:00:0b.0: maximum version supported: iwlwifi-9000-pu-b0-jf-b0-46
[ 6.833701] iwlwifi 0000:00:0b.0: check git://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git
给opkg了固件就好了:
opkg install kmod-iwlwifi
opkg install iwlwifi-firmware-iwl9000# dmesg | grep -i iwl
[ 6.740186] iwlwifi 0000:00:0b.0: Detected crf-id 0x2816, cnv-id 0x1000100 wfpm id 0x80000000
[ 6.740795] iwlwifi 0000:00:0b.0: PCI dev a370/0234, rev=0x312, rfid=0x105110
[ 6.741298] iwlwifi 0000:00:0b.0: Detected Intel(R) Wireless-AC 9560
[ 6.757224] iwlwifi 0000:00:0b.0: WRT: Overriding region id 0
[ 6.757647] iwlwifi 0000:00:0b.0: WRT: Overriding region id 1
[ 6.758062] iwlwifi 0000:00:0b.0: WRT: Overriding region id 2
[ 6.758486] iwlwifi 0000:00:0b.0: WRT: Overriding region id 3
[ 6.758903] iwlwifi 0000:00:0b.0: WRT: Overriding region id 4
[ 6.759313] iwlwifi 0000:00:0b.0: WRT: Overriding region id 6
[ 6.759722] iwlwifi 0000:00:0b.0: WRT: Overriding region id 8
[ 6.760132] iwlwifi 0000:00:0b.0: WRT: Overriding region id 9
[ 6.760540] iwlwifi 0000:00:0b.0: WRT: Overriding region id 10
[ 6.760955] iwlwifi 0000:00:0b.0: WRT: Overriding region id 11
[ 6.761370] iwlwifi 0000:00:0b.0: WRT: Overriding region id 15
[ 6.761784] iwlwifi 0000:00:0b.0: WRT: Overriding region id 16
[ 6.762208] iwlwifi 0000:00:0b.0: WRT: Overriding region id 18
[ 6.762644] iwlwifi 0000:00:0b.0: WRT: Overriding region id 19
[ 6.763058] iwlwifi 0000:00:0b.0: WRT: Overriding region id 20
[ 6.763479] iwlwifi 0000:00:0b.0: WRT: Overriding region id 21
[ 6.763894] iwlwifi 0000:00:0b.0: WRT: Overriding region id 28
[ 6.766279] iwlwifi 0000:00:0b.0: loaded firmware version 46.7e3e4b69.0 9000-pu-b0-jf-b0-46.ucode op_mode iwlmvm
[ 6.833723] iwlwifi 0000:00:0b.0: base HW address: 34:2e:b7:b0:af:77, OTP minor version: 0x4
[ 6.935192] ieee80211 phy0: Selected rate control algorithm 'iwl-mvm-rs'
iwlwifi 0000:00:0b.0: Registered PHC clock: iwlwifi-PTP, with index: 1
然后试着照 openwrt的用户指南操作, 想用wifi config来重新生成无线配置, 结果根本找不到wifi这个命令:
# wifi config
-bash: wifi: command not found人麻了, WebUI没有相关配置, 接口中看不到该设备, 只能CLI配置的WiFi有什么可用性啊.jpg
再次看看设备, 发现似乎工作正常, 00:0b.0 就是这个网卡:
# lspci
00:00.0 Host bridge: Intel Corporation 440FX - 82441FX PMC (rev 02)
00:01.0 ISA bridge: Intel Corporation 82371SB PIIX3 ISA
00:01.1 IDE interface: Intel Corporation 82371SB PIIX3 IDE
00:01.3 Bridge: Intel Corporation 82371AB/EB/MB PIIX4 ACPI (rev 03)
00:02.0 Audio device: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) High Definition Audio Controller (rev 01)
00:03.0 VGA compatible controller: Red Hat, Inc. Virtio 1.0 GPU (rev 01)
00:04.0 Unclassified device : Red Hat, Inc. Virtio memory balloon
00:05.0 SCSI storage controller: Red Hat, Inc. Virtio SCSI
00:06.0 Communication controller: Red Hat, Inc. Virtio console
00:07.0 SCSI storage controller: Red Hat, Inc. Virtio block device
00:08.0 Ethernet controller: Red Hat, Inc. Virtio network device
00:09.0 Ethernet controller: Red Hat, Inc. Virtio network device
00:0a.0 Ethernet controller: Red Hat, Inc. Virtio network device
00:0b.0 Network controller: Intel Corporation Cannon Lake PCH CNVi WiFi (rev 10)
00:1e.0 USB controller: Red Hat, Inc. QEMU XHCI Host Controller (rev 01)
00:1f.0 SATA controller: Intel Corporation 82801IR/IO/IH (ICH9R/DO/DH) 6 port SATA Controller (rev 02)于是试图手动建立设备:
# iw phy phy0 interface add wlan0 type managed
# ip link set wlan0 up看上去是成功了:
# iw wlan0 info
Interface wlan0
ifindex 7
wdev 0x1
addr 34:2e:b7:b0:af:77
type managed
wiphy 0
multicast TXQ:
qsz-byt qsz-pkt flows drops marks overlmt hashcol tx-bytes tx-packets
0 0 0 0 0 0 0 0 0
结果根本起不起来:
# ip link show wlan0
7: wlan0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN mode DEFAULT group default qlen 1000
link/ether 34:2e:b7:b0:af:77 brd ff:ff:ff:ff:ff:ff
# ip link set wlan0 up
# ip link show wlan0
7: wlan0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN mode DEFAULT group default qlen 1000
link/ether 34:2e:b7:b0:af:77 brd ff:ff:ff:ff:ff:ff
怀疑是没配置, 于是touch了一个手写配置:
# cat /etc/config/wireless
config wifi-device 'radio0'
option type 'mac80211'
option channel '149'
option hwmode '11a'
option path '0000:00:0b.0'
option htmode 'HT40+'
option disabled 0
config wifi-iface 'wifinet0'
option device 'radio0'
option mode 'sta'
option network 'wwan'
option ssid 'CHINANET-360 Free WiFi'
option encryption 'none'
option key '<打码打码打码>'
重启OpenWRT后依旧没有设备, 只能写/etc/rc.local让它启动时执行:
iw phy phy0 interface add wlan0 type managed
ip link set wlan0 up
现在的情况是, 网卡和驱动看上去十分正常:
# iw list
Wiphy phy0
wiphy index: 0
max # scan SSIDs: 20
max scan IEs length: 413 bytes
max # sched scan SSIDs: 20
max # match sets: 11
Retry short limit: 7
Retry long limit: 4
Coverage class: 0 (up to 0m)
Device supports RSN-IBSS.
Device supports AP-side u-APSD.
Device supports T-DLS.
Supported Ciphers:
* WEP40 (00-0f-ac:1)
* WEP104 (00-0f-ac:5)
* TKIP (00-0f-ac:2)
* CCMP-128 (00-0f-ac:4)
* GCMP-128 (00-0f-ac:8)
* GCMP-256 (00-0f-ac:9)
* CMAC (00-0f-ac:6)
* GMAC-128 (00-0f-ac:11)
* GMAC-256 (00-0f-ac:12)
Available Antennas: TX 0x3 RX 0x3
Configured Antennas: TX 0x3 RX 0x3
Supported interface modes:
* IBSS
* managed
* AP
* AP/VLAN
* monitor
* P2P-client
* P2P-GO
* P2P-device
Band 1:
Capabilities: 0x19ef
RX LDPC
HT20/HT40
SM Power Save disabled
RX HT20 SGI
RX HT40 SGI
TX STBC
RX STBC 1-stream
Max AMSDU length: 7935 bytes
DSSS/CCK HT40
Maximum RX AMPDU length 65535 bytes (exponent: 0x003)
Minimum RX AMPDU time spacing: 4 usec (0x05)
HT Max RX data rate: 300 Mbps
HT TX/RX MCS rate indexes supported: 0-15
Bitrates (non-HT):
* 1.0 Mbps
* 2.0 Mbps (short preamble supported)
* 5.5 Mbps (short preamble supported)
* 11.0 Mbps (short preamble supported)
* 6.0 Mbps
* 9.0 Mbps
* 12.0 Mbps
* 18.0 Mbps
* 24.0 Mbps
* 36.0 Mbps
* 48.0 Mbps
* 54.0 Mbps
Frequencies:
* 2412.0 MHz (22.0 dBm)
* 2417.0 MHz (22.0 dBm)
* 2422.0 MHz (22.0 dBm)
* 2427.0 MHz (22.0 dBm)
* 2432.0 MHz (22.0 dBm)
* 2437.0 MHz (22.0 dBm)
* 2442.0 MHz (22.0 dBm)
* 2447.0 MHz (22.0 dBm)
* 2452.0 MHz (22.0 dBm)
* 2457.0 MHz (22.0 dBm)
* 2462.0 MHz (22.0 dBm)
* 2467.0 MHz (22.0 dBm)
* 2472.0 MHz (22.0 dBm)
* 2484.0 MHz (disabled)
Band 2:
Capabilities: 0x19ef
RX LDPC
HT20/HT40
SM Power Save disabled
RX HT20 SGI
RX HT40 SGI
TX STBC
RX STBC 1-stream
Max AMSDU length: 7935 bytes
DSSS/CCK HT40
Maximum RX AMPDU length 65535 bytes (exponent: 0x003)
Minimum RX AMPDU time spacing: 4 usec (0x05)
HT Max RX data rate: 300 Mbps
HT TX/RX MCS rate indexes supported: 0-15
VHT Capabilities (0x039071b2):
Max MPDU length: 11454
Supported Channel Width: neither 160 nor 80+80
RX LDPC
short GI (80 MHz)
TX STBC
SU Beamformee
MU Beamformee
VHT RX MCS set:
1 streams: MCS 0-9
2 streams: MCS 0-9
3 streams: not supported
4 streams: not supported
5 streams: not supported
6 streams: not supported
7 streams: not supported
8 streams: not supported
VHT RX highest supported: 0 Mbps
VHT TX MCS set:
1 streams: MCS 0-9
2 streams: MCS 0-9
3 streams: not supported
4 streams: not supported
5 streams: not supported
6 streams: not supported
7 streams: not supported
8 streams: not supported
VHT TX highest supported: 0 Mbps
VHT extended NSS: supported
Bitrates (non-HT):
* 6.0 Mbps
* 9.0 Mbps
* 12.0 Mbps
* 18.0 Mbps
* 24.0 Mbps
* 36.0 Mbps
* 48.0 Mbps
* 54.0 Mbps
Frequencies:
* 5180.0 MHz (22.0 dBm) (no IR)
* 5200.0 MHz (22.0 dBm) (no IR)
* 5220.0 MHz (22.0 dBm) (no IR)
* 5240.0 MHz (22.0 dBm) (no IR)
* 5260.0 MHz (22.0 dBm) (no IR, radar detection)
* 5280.0 MHz (22.0 dBm) (no IR, radar detection)
* 5300.0 MHz (22.0 dBm) (no IR, radar detection)
* 5320.0 MHz (22.0 dBm) (no IR, radar detection)
* 5340.0 MHz (disabled)
* 5360.0 MHz (disabled)
* 5380.0 MHz (disabled)
* 5400.0 MHz (disabled)
* 5420.0 MHz (disabled)
* 5440.0 MHz (disabled)
* 5460.0 MHz (disabled)
* 5480.0 MHz (disabled)
* 5500.0 MHz (22.0 dBm) (no IR, radar detection)
* 5520.0 MHz (22.0 dBm) (no IR, radar detection)
* 5540.0 MHz (22.0 dBm) (no IR, radar detection)
* 5560.0 MHz (22.0 dBm) (no IR, radar detection)
* 5580.0 MHz (22.0 dBm) (no IR, radar detection)
* 5600.0 MHz (22.0 dBm) (no IR, radar detection)
* 5620.0 MHz (22.0 dBm) (no IR, radar detection)
* 5640.0 MHz (22.0 dBm) (no IR, radar detection)
* 5660.0 MHz (22.0 dBm) (no IR, radar detection)
* 5680.0 MHz (22.0 dBm) (no IR, radar detection)
* 5700.0 MHz (22.0 dBm) (no IR, radar detection)
* 5720.0 MHz (22.0 dBm) (no IR, radar detection)
* 5745.0 MHz (22.0 dBm) (no IR)
* 5765.0 MHz (22.0 dBm) (no IR)
* 5785.0 MHz (22.0 dBm) (no IR)
* 5805.0 MHz (22.0 dBm) (no IR)
* 5825.0 MHz (22.0 dBm) (no IR)
* 5845.0 MHz (disabled)
* 5865.0 MHz (disabled)
* 5885.0 MHz (disabled)
* 5905.0 MHz (disabled)
Supported commands:
* new_interface
* set_interface
* new_key
* start_ap
* new_station
* new_mpath
* set_mesh_config
* set_bss
* authenticate
* associate
* deauthenticate
* disassociate
* join_ibss
* join_mesh
* remain_on_channel
* set_tx_bitrate_mask
* frame
* frame_wait_cancel
* set_wiphy_netns
* set_channel
* tdls_mgmt
* tdls_oper
* start_sched_scan
* probe_client
* set_noack_map
* register_beacons
* start_p2p_device
* set_mcast_rate
* connect
* disconnect
* channel_switch
* set_qos_map
* add_tx_ts
* set_multicast_to_unicast
software interface modes (can always be added):
* AP/VLAN
* monitor
valid interface combinations:
* #{ managed } <= 1, #{ P2P-client, P2P-GO } <= 1, #{ P2P-device } <= 1,
total <= 3, #channels <= 2
* #{ managed } <= 1, #{ AP, P2P-client, P2P-GO } <= 1, #{ P2P-device } <= 1,
total <= 3, #channels <= 1
HT Capability overrides:
* MCS: ff ff ff ff ff ff ff ff ff ff
* maximum A-MSDU length
* supported channel width
* short GI for 40 MHz
* max A-MPDU length exponent
* min MPDU start spacing
Device supports TX status socket option.
Device supports HT-IBSS.
Device supports SAE with AUTHENTICATE command
Device supports low priority scan.
Device supports scan flush.
Device supports per-vif TX power setting
P2P GO supports CT window setting
P2P GO supports opportunistic powersave setting
Driver supports full state transitions for AP/GO clients
Driver supports a userspace MPM
Driver/device bandwidth changes during BSS lifetime (AP/GO mode)
Device adds DS IE to probe requests
Device can update TPC Report IE
Device supports static SMPS
Device supports dynamic SMPS
Device supports WMM-AC admission (TSPECs)
Device supports configuring vdev MAC-addr on create.
Device supports randomizing MAC-addr in scans.
Device supports randomizing MAC-addr in sched scans.
Device supports randomizing MAC-addr in net-detect scans.
max # scan plans: 2
max scan plan interval: 65535
max scan plan iterations: 254
Supported TX frame types:
* IBSS: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
* managed: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
* AP: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
* AP/VLAN: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
* mesh point: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
* P2P-client: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
* P2P-GO: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
* P2P-device: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
Supported RX frame types:
* IBSS: 0x40 0xb0 0xc0 0xd0
* managed: 0x40 0xb0 0xd0
* AP: 0x00 0x20 0x40 0xa0 0xb0 0xc0 0xd0
* AP/VLAN: 0x00 0x20 0x40 0xa0 0xb0 0xc0 0xd0
* mesh point: 0xb0 0xc0 0xd0
* P2P-client: 0x40 0xd0
* P2P-GO: 0x00 0x20 0x40 0xa0 0xb0 0xc0 0xd0
* P2P-device: 0x40 0xd0
Supported extended features:
* [ VHT_IBSS ]: VHT-IBSS
* [ RRM ]: RRM
* [ MU_MIMO_AIR_SNIFFER ]: MU-MIMO sniffer
* [ SCAN_START_TIME ]: scan start timestamp
* [ BSS_PARENT_TSF ]: BSS last beacon/probe TSF
* [ BEACON_RATE_LEGACY ]: legacy beacon rate setting
* [ FILS_STA ]: STA FILS (Fast Initial Link Setup)
* [ CONTROL_PORT_OVER_NL80211 ]: control port over nl80211
* [ TXQS ]: FQ-CoDel-enabled intermediate TXQs
* [ SCAN_MIN_PREQ_CONTENT ]: use probe request with only rate IEs in scans
* [ EXT_KEY_ID ]: Extended Key ID support
* [ CONTROL_PORT_NO_PREAUTH ]: disable pre-auth over nl80211 control port support
* [ DEL_IBSS_STA ]: deletion of IBSS station support
* [ SCAN_FREQ_KHZ ]: scan on kHz frequency support
* [ CONTROL_PORT_OVER_NL80211_TX_STATUS ]: tx status for nl80211 control port support
* [ PROT_RANGE_NEGO_AND_MEASURE ]: support for MFP in range measurement negotiation/procedure
* [ POWERED_ADDR_CHANGE ]: can change MAC address while up然而luci不能正确显示设备和参数, lspci也有奇怪的报错
# lspci -nnk| grep wifi
lspci: Unable to load libkmod resources: error -2
Kernel driver in use: iwlwifi切换SSID还有概率设备消失, 哇, 焦头烂额了
本帖最后由 WiiGe 于 2025-8-11 19:07 编辑
WebUI现状:
kWRT固件: https://github.com/kiddin9/Kwrt
本帖最后由 ltycomputer 于 2025-8-11 20:03 编辑
可以买个mt7601的迷你USB网卡插着,然后openwrt装kmod-mt76驱动,纯当管理WiFi
以前软路由就插了个这个,AP模式,信号不强,正好防止别人乱连,方便手机管理
不过各虚拟化USB直通都是奇形怪状的,失效就失联了 WiiGe 发表于 2025-8-11 19:01
头疼, 我把Intel AC9560直通给虚拟机后, 这openwrt根本都没有网络-> 无线这个页面
看了dmesg 发现没有固 ...
看下来感觉你绕了很长的一个远路。
我认为问题还是出在内核和驱动中,你的网卡并没有被正常驱动,一旦网卡正常驱动,使用 ip link 命令就能看到对应设备接口,然后在 openwrt 的用户界面就能操作它了。在 ip link 都看不见接口的情况下,后面做的可能都是无用功。 indtability 发表于 2025-8-12 00:36
看下来感觉你绕了很长的一个远路。
我认为问题还是出在内核和驱动中,你的网卡并没有被正常驱动,一旦网 ...
给我卡在这儿了有什么好的路子让网卡正常驱动吗?
我实在是没找到什么好的办法, 手动把iwlwifi-9000-pu-b0-jf-b0-46.ucode放到/lib/firmware也试过了, 好像没啥效果, 有什么路子能让它正常工作吗? ltycomputer 发表于 2025-8-11 19:59
可以买个mt7601的迷你USB网卡插着,然后openwrt装kmod-mt76驱动,纯当管理WiFi
以前软路由就插了个这个,A ...
这个搞不好可以保底, 毕竟一个M2接口都用了结果放着不管, 意难平啊意难平 本帖最后由 lawsherman 于 2025-8-12 09:54 编辑
https://cn.linux-console.net/?p=8606
另外,换个驱动试试呢
https://www.intel.cn/content/www ... vers-for-linux.html WiiGe 发表于 2025-8-12 00:51
给我卡在这儿了有什么好的路子让网卡正常驱动吗?
我实在是没找到什么好的办法, 手动把iwlwifi-9000-pu ...
没什么好办法,只能说具体情况具体分析,再翻翻日志吧,或许日志里能发现什么端倪。
页:
1
[2]