You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

修改OpenWrt的/etc/config/network配置后无法SSH连接设备的求助

修改OpenWrt的/etc/config/network配置后无法SSH连接设备的求助

环境配置

  • Mikrotik RouterBoard 750gr3
    • 系统版本:OpenWrt 23.05.03
  • MacBook
    • 连接端口:Mikrotik Port 1
    • 本机IP:10.13.1.201

问题描述

修改/etc/config/network配置文件并重启设备之前,我还能正常通过SSH连接路由器,但重启后就彻底连不上了,试了好几种方法都没找到问题根源:

  • ping路由器直接提示主机不可达
  • Winbox也搜不到这个设备

我在刚安装完OpenWrt后就自定义了网络配置,修改后的/etc/config/network内容如下(后续内容未粘贴完整):

config globals 'globals'
  option ula_prefix 'fdf7:aefc:1ed9::/48'

config interface  'loopback'
  option  ifname      'lo'
  option  proto       'static'
  option  ipaddr      '127.0.0.1'
  option  netmask     '255.0.0.0'

config switch
  option  name        'switch0'
  option  reset       '1'
  option  enable_vlan '1'

config switch_vlan
  option  device...

备注:内容来源于stack exchange,提问作者zahntheo

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.04.17 10:19:50