昨天安装了 Debian,除了无法使有线连接工作之外,体验很愉快。我有一个无线连接,可以连接并允许我访问互联网。有线连接已激活,但没有任何互联网。我安装了网络管理器,希望它能起到一些作用。
ip a(当我同时连接到无线和有线时)
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eno1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
link/ether 54:a0:50:88:02:67 brd ff:ff:ff:ff:ff:ff
inet6 2601:410:4200:1490:3db7:b480:c149:bae3/64 scope global temporary dynamic
valid_lft 212562sec preferred_lft 85850sec
inet6 2601:410:4200:1490:56a0:50ff:fe88:267/64 scope global mngtmpaddr noprefixroute dynamic
valid_lft 212562sec preferred_lft 212562sec
inet6 fe80::56a0:50ff:fe88:267/64 scope link
valid_lft forever preferred_lft forever
3: wlp3s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
link/ether dc:85:de:cb:f4:13 brd ff:ff:ff:ff:ff:ff
inet 192.168.0.19/24 brd 192.168.0.255 scope global dynamic wlp3s0
valid_lft 85510sec preferred_lft 85510sec
inet6 2601:410:4200:1490:ae2d:d92b:d52e:bc36/64 scope global noprefixroute dynamic
valid_lft 212562sec preferred_lft 212562sec
inet6 fe80::750d:dee3:cc5c:1169/64 scope link
valid_lft forever preferred_lft forever
注意到 eno1 缺少 IPv4 地址。
还尝试调整文件
/etc/网络/接口
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
source /etc/network/interfaces.d/*
# The loopback network interface
auto lo
iface lo inet loopback
cat /etc/network/interfaces.d/* auto lo iface lo inet 环回
auto eth0
iface eth0 inet dhcp
到目前为止我注意到的一件事是我的以太网在interfaces.d中被称为eth0,而在ip a中被称为eno1。我尝试将etho0更新为eno1,然后重新启动服务,但没有成功。根据我对网络管理器的理解,现在应该忽略接口文件吗?
猫 /etc/NetworkManager/NetworkManager.conf
[main]
plugins=ifupdown,keyfile
[ifupdown]
managed=true
任何帮助,将不胜感激!