Remove unknown network device names listed in network manager
I would like to delete enp0s20u5u* devices. How do I do it?
OS:
Distributor ID: Ubuntu
Description: Ubuntu 18.04 LTS
Release: 18.04
Codename: bionicThe result of nmcli device status is
DEVICE TYPE STATE CONNECTION
eno1 ethernet connected eno1
enp0s20u5u3 ethernet disconnected --
enp0s20u5u3i5 ethernet disconnected --
enp0s20u5u4 ethernet disconnected --
enp0s20u5u4i5 ethernet disconnected --
rename3 ethernet unavailable --
lo loopback unmanaged -- I only have two ethernet connections:
00:19.0 Ethernet controller: Intel Corporation Ethernet Connection (2) I218-LM (rev 05)
05:00.0 Ethernet controller: Intel Corporation I210 Gigabit Network Connection (rev 03)Or at least understand what these are!
----- EDIT ------
I have already tried nmcli delete. Does not help me.
sudo nmcli device delete enp0s20u5u4
Error: Device 'enp0s20u5u4' (/org/freedesktop/NetworkManager/Devices/8) deletion failed: This device is not a software device or is not realized
Error: not all devices deleted. 2 Answers
Those extra entries must be software devices like bonds, bridges, teams, etc.
First locate the names of the aforementioned software devices with nmcli
Then use nmcli device command to delete any interfaces.
Such as
nmcli device delete enp0s20u5u* where enp0s20u5u* is replaced with the software device you found in the previous step.
Note that this only works for software devices like bonds, bridges, teams, etc. Hardware devices (like Ethernet) cannot be deleted by the command.
Source: man nmcli
Delete the connection and not the device: i.e.,
sudo nmcli connection delete enp0s20u5u4The connection name might be different, so you may have to find it first:
sudo nmcli connection showthen delete what it finds for that device
sudo nmcli connection delete "Wired connection 1" 0