OpenMediaVault / Debian 无法识别新网络

OpenMediaVault / Debian 无法识别新网络

我有一台装有 OpenMediaVault 的服务器(运行在 Debian 上),它已为我的家庭网络配置,但我搬到了一个新地方,那里有新的路由器和新的网络(路由器设置为使用 DHCP 分配 IP)。我在服务器上插入了一根以太网电缆,但它仍然使用旧设置,我无法在当前网络上找到它(路由器也看不到它已连接)。

我尝试重新启动它并尝试告诉它获取新的配置,但我不那么精明而且我不记得我到底做了什么(抱歉,一直很忙乱)。

我可以物理访问它,它有一个键盘和显示器,这就是我目前与它交互的方式。

这是我的nano /etc/resolv.conf输出(根据我在屏幕上看到的内容手写输入):

# This file is managed by man:systemd-resolved(8). Do not edit.
#
# This is a dynamic resolv.conf file for connecting local clients directly to
# all known uplink DNS servers. This file lists all condigured search domains.
#
# Third party programs must not access this file directly, but only through the
# symlink at /etc/resolv.conf. To manage man:resolv.conf(5) in a different way,
# replace this symlink by a static file or a different symlink.
#
# See man:systemd-resolved.service(8) for details about the supported modes of
# operation for /etc/resolv.conf.

nameserver 1.1.1.1

这是我的nano /etc/network/interfaces输出(根据我在屏幕上看到的内容手写输入):

# This file is auto-generated by openmediavault (https://www.openmediavault.org)
# WARNING: Do not edit this file, your changes will get lost.

# interfaces(5) file used by ifup(8) and ifdown(8)
# Better use netplan.io or systemd-networkd to configure additional interface stanzas.

# Include files from /etc/network/interfaces.d:
source-directory /etc/network/interfaces.d

输出来自iftables -a(根据我在屏幕上看到的内容手写输入,也省略了 kubernetes 接口等):

enp0s25: flags=4163<UP, BROADCAST,RUNNING,MULTICAST> mtu 1500
        inet 192.168.15.101 netmask 255.255.255.0 broadcast 192.168.15.255
        ether --skipping this line as am not sure whether I should post it on the net--
        RX packets 607984 bytes 52335391 (49.9 MiB)
        RX errors 0 dropped 6 overruns 0 frame 0
        TX packets 21334 bytes 1759560 (1.6 MiB)
        TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
        device interrupt 20 memory 0xf3100000-f3120000
        
lo: flags:73<UP,LOOPBACK,RUNNING> mtu 65536
        inet 127.0.0.1 netmask 255.0.0.0
        inet6 ::1 prefixlen 128 scopeid 0x10<host>
        loop txqueuelen 1000 (Local Loopback)
        RX packets 151863 bytes 56908700 (54.2 MiB)
        RX errors 0 dropped 6 overruns 0 frame 0
        TX packets 151863 bytes 56908700 (54.2 MiB)
        TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

输出来自ip a(根据我在屏幕上看到的内容手写输入,也省略了 kubernetes 接口等):

1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1 scope host line
        valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host
        valid_lft forever preferred_lft forever
2: enp0s25: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
    link/ether --skipping this line as am not sure whether I should post it on the net--
    inet 192.168.15.101/24 brd 192.168.15.255 scope global enp0s25
        valid_lft forever preferred_lft forever

输出ifdown enp0s25
ifdown: interface enp0s25 not configured

输出ifup eth0
ifup: unknown interface eth0

我当前的网络是 192.168.50.*

我不知道发生什么事。

相关内容