N1 armbian+docker+openwrt的一个奇怪错误
N1 armbian+docker+openwrt 旁路由模式一直很稳
昨晚突然网络中断了,还以为是OP的偶尔故障,重启后无果
接着重启N1,也就相当于重启armbian的系统,还是无果
SSH登录到armbian后发现可用磁盘空间为:0 ,随即删除了一些无用的docker image,可用空间显示为65M
但是重启OP和armbian,还是无网络。
接着发现armbian本身,也无法访问网络。
查看网络配置文件
nano /etc/network/interfaces
提示,读取锁文件 /etc/network/.interfaces.swp,时出错:没有读入足够数据
scp登录到/etc/network/
目录,发现.interfaces.swp
和interfaces
两个文件都存在
interfaces
文件内为正确的网络配置信息,.interfaces.swp
文件为空,遂复制正确信息到.interfaces.swp
重启网络还是无法上网
继续 nano /etc/network/interfaces
查看,发现还是读取错误
查了一下,试着删除了.interfaces.swp
,再查看网络,就可以看到正确的网络配置信息了
但是还上不了网,ping不通
接着排查DNS,cat /etc/resolv.conf
发现DNS指向的是旁路由的IP,改为主路由后网络恢复正常。
疑问:/etc/network/interfaces
里是有配置 dns-nameservers
地址的,但是优先级好像不如 /etc/resolv.conf
高?
参考:[SOLVED] How to delete swap file??? [Archive] - Ubuntu Forums
版权声明:
作者:Jays
链接:https://ijays.com/2022/10/n1-armbian-docker-openwrt-internet-fix.html
来源:颓废的美
文章版权归作者所有,未经允许请勿转载。
seo
I think everything posted made a ton of sense. However, what about this?
what if you wrote a catchier post title? I ain’t suggesting your information isn’t solid, but suppose you
added something that grabbed a person’s attention? I
mean N1 armbian+docker+openwrt的一个奇怪错误 – 颓废的美 is kinda vanilla.
You could glance at Yahoo’s home page and note how they create article titles to grab viewers to click.
You might add a video or a related picture or two to grab readers interested about what you’ve written. Just my opinion, it could bring your posts a little bit more
interesting.