Skip to content

自动识别 LPMU 内网网卡并保留备用默认路由 - #2

Merged
massif-01 merged 2 commits into
mainfrom
fix/detect-lpmu-internal-interface
Nov 11, 2026
Merged

massif-01 merged 2 commits into
mainfrom
fix/detect-lpmu-internal-interface

Conversation

@massif-01

Copy link
Copy Markdown
Member

改动

  • 以持有 10.10.99.99/24 的唯一 IPv4 接口识别 LPMU 内网接口,NAT 初始化、上联配置和监控使用同一判断。地址缺失或重复时明确报错。
  • 智能路由优先使用连通的上联,切换时保留已有 DHCP 默认路由,以便故障转移和恢复。
  • 扩展 Linux 网络命名空间测试,覆盖接口识别、上联切换以及 97/98 转发。

验证

  • 测试机的内网接口为 enp3s0。隔离网络在真实 LPMU 上验证了主备切换及恢复,两个 DHCP 默认路由均保留。
  • 真机 97 WebUI、98 SSH 和模型 API 通过 LPMU 转发,与直连结果一致。
  • TianshanOS 将这两笔脚本提交的 lpmu/ 文件打包入固件。对应固件变更见 TianshanOS #66。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant