|
本帖最后由 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@# |
|