计算化学公社
标题:
ubuntu18.04.6 LTS物理网卡NO-CARRIER和state DOWN
[打印本页]
作者Author:
huangtf
时间:
2024-6-21 18:18
标题:
ubuntu18.04.6 LTS物理网卡NO-CARRIER和state DOWN
本帖最后由 huangtf 于 2024-6-21 18:09 编辑
各位老师和前辈好!ubuntu18.04.6 LTS接上有网的网线,网口左上的绿色指示灯是亮的(无闪动),网口左下的橙色指示灯是亮的(有闪动),但是ip a,显示NO-CARRIER和state DOWN。来论坛发现无相关的帖子,遂尝试几种方式,仍不能解决,请各位老师和前辈帮忙看一下,非常感谢!
root@# ip a
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/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eno1: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN group default qlen 1000
link/ether 5a:aa:aa:55:55:5a brd ff:ff:ff:ff:ff:ff
3: eno2: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN group default qlen 1000
link/ether 5a:aa:aa:55:55:5b brd ff:ff:ff:ff:ff:ff
root@#
root@#
root@#
root@# nmcli d status
DEVICE TYPE STATE CONNECTION
eno1 ethernet unavailable --
eno2 ethernet unavailable --
lo loopback unmanaged --
root@#
root@#
root@#
root@# ethtool -i eno2
driver: i40e
version: 2.8.20-k
firmware-version: 4.11 0x80001da4 1.2527.0
expansion-rom-version:
bus-info: 0000:60:00.1
supports-statistics: yes
supports-test: yes
supports-eeprom-access: yes
supports-register-dump: yes
supports-priv-flags: yes
root@#
root@#
root@#
root@# cat /etc/netplan/*.yaml
# Let NetworkManager manage all devices on this system
network:
version: 2
renderer: NetworkManager
ethernets:
eno2:
dhcp4: true
dhcp6: true
root@#
root@#
root@#
root@# ifup eno2
Unknown interface eno2
root@#
root@#
root@#
root@# ip link set eno2 up
root@#
root@#
root@#
root@# nmcli d status
DEVICE TYPE STATE CONNECTION
eno1 ethernet unavailable --
eno2 ethernet unavailable --
lo loopback unmanaged --
root@#
root@#
root@#
root@# systemctl restart NetworkManager
root@#
root@#
root@#
root@# nmcli d status
DEVICE TYPE STATE CONNECTION
eno1 ethernet unavailable --
eno2 ethernet unavailable --
lo loopback unmanaged --
root@#
root@#
root@#
root@# reboot
root@#
root@#
root@#
root@# ifup eno2
Unknown interface eno2
root@#
root@#
root@#
root@# ip link set eno2 up
root@#
root@#
root@#
root@# ip a
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/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eno1: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN group default qlen 1000
link/ether 5a:aa:aa:55:55:5a brd ff:ff:ff:ff:ff:ff
3: eno2: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN group default qlen 1000
link/ether 5a:aa:aa:55:55:5b brd ff:ff:ff:ff:ff:ff
root@#
root@#
root@#
root@# nmcli d status
DEVICE TYPE STATE CONNECTION
eno1 ethernet unavailable --
eno2 ethernet unavailable --
lo loopback unmanaged --
root@#
root@#
root@#
作者Author:
abin
时间:
2024-6-21 20:55
要么使用Ubuntu服务器采用的netplan 方案,
要么采用桌面版Network Manager 。
两者混用是不行的。
Network Manager 指令模式
可以参考【Linux配置网络-哔哩哔哩】
https://b23.tv/VxJxCUq
作者Author:
mingkun
时间:
2024-6-29 11:48
本帖最后由 mingkun 于 2024-7-23 18:21 编辑
sudo vim /etc/NetworkManager.conf 修改managed=true && sudo vim /usr/lib/NetworkManager/conf.d/10-globally-managed-devices.conf 加入 except:type:ethernet, && sudo systemctl restart NetworkManger
欢迎光临 计算化学公社 (http://bbs.keinsci.com/)
Powered by Discuz! X3.3