Disable/delete USB ethernet

Hello there,

I get connection failed error message lot of time. I notice that cause that USB ethernet adapter are enabled, but not connected. I try to disable/remove it, but it connect/recreate it every restart.

My PC: HP-EliteBook-840-G3

My problem are similar with this topic:

It possible to turn off this adapter somehow?

Yes, you could blacklist it.
Can you post the output for

sudo lshw -C network

Remember to beware the X-Y problem. You could blacklist the driver but it may be that the driver only needs to be repaired.

       description: Wireless interface
       product: Wireless 8260
       vendor: Intel Corporation
       physical id: 0
       bus info: pci@0000:02:00.0
       logical name: wlp2s0
       version: 3a
       serial: f8:63:3f:67:63:cb
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress bus_master cap_list ethernet physical wireless
       configuration: broadcast=yes driver=iwlwifi driverversion=5.15.0-83-generic firmware=36.77d01142.0 8000C-36.ucode ip= latency=0 link=yes multicast=yes wireless=IEEE 802.11
       resources: irq:130 memory:e1100000-e1101fff
       description: Ethernet interface
       product: Ethernet Connection I219-LM
       vendor: Intel Corporation
       physical id: 1f.6
       bus info: pci@0000:00:1f.6
       logical name: enp0s31f6
       version: 21
       serial: 30:e1:71:87:01:12
       capacity: 1Gbit/s
       width: 32 bits
       clock: 33MHz
       capabilities: pm msi bus_master cap_list ethernet physical tp 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation
       configuration: autonegotiation=on broadcast=yes driver=e1000e driverversion=5.15.0-83-generic firmware=0.13-4 latency=0 link=no multicast=yes port=twisted pair
       resources: irq:125 memory:e1200000-e121ffff
       description: Ethernet interface
       physical id: 2
       bus info: usb@1:3
       logical name: enxae6bb296dd80
       serial: ae:6b:b2:96:dd:80
       capabilities: ethernet physical
       configuration: autonegotiation=off broadcast=yes driver=cdc_ether driverversion=5.15.0-83-generic duplex=half firmware=CDC Ethernet Device link=yes multicast=yes port=twisted pair

I see two ethernet devices here, with two different drivers.
Is one a Plug n' play card?

I not use any USB ethernet. Only integrated pci and wifi.

In terminal, elevtate to Root

sudo -i

Launch your file manager from that elevated terminal


Navigate to "Other locations" > "computer" then /etc/modprobe.d/blacklist.conf
You can open blacklist.conf by right click > Open with > Text Editor (Gedit)

Add these two lines to the bottom,

blacklist e1000e

blacklist cdc_ether

Save the file and close it. Close Nautilus (Files) File manager.
In terminal, type


Now, run

sudo update-initramfs -u

Reboot to test.

thanks, i will tested it tomorrow, when i nearby my notebook.