Tuesday, May 7, 2024
 Popular · Latest · Hot · Upcoming
1
rated 0 times [  1] [ 0]  / answers: 1 / hits: 781  / 2 Years ago, tue, march 29, 2022, 7:31:55

When my computer is connected to ethernet, everything works fine. Without the cable, there are two problems: the booting is slow (it takes several minutes) and the computer does not automatically connect to wi-fi. The computer "thinks" it is connected to ethernet, as can be seen in the picture. I solve it by removing the "imaginary" ethernet connection but it is tiring to do each time I turn on the computer.


enter image description here


I tried to solve it myself and I had a theory that it has something to do with MAC addresses because of the last line of my NetworkManager.conf file (see below). I tried switching it to yes but it did not work.


[main]
plugins=ifupdown,keyfile

[ifupdown]
managed=true

[device]
wifi.scan-rand-mac-address=no

Additional files
/etc/network/interfaces


# interfaces(5) file used by ifup(8) and ifdown(8)
auto lo
iface lo inet loopback

auto enp3s0
iface enp3s0 inet dhcp

/etc/netplan/*.yaml (only one file 01-network-manager-all.yaml)


# Let NetworkManager manage all devices on this system
network:
version: 2
renderer: NetworkManager

Opening enp3s0:
enter image description here


Opening ifupdown:
enter image description here


Could you please give me a hint where the problem might be?


More From » boot

 Answers
3

Set /etc/NetworkManager/NetworkManager.conf to this...


[main]
plugins=ifupdown,keyfile

[ifupdown]
managed=false

[device]
wifi.scan-rand-mac-address=no

Set /etc/network/interfaces to this...


# interfaces(5) file used by ifup(8) and ifdown(8)
auto lo
iface lo inet loopback

Set your enp3s0 connection profile to Connect Automatically.


Reboot with ethernet cable disconnected.


Note: Your ifupdown (enp3s0) interface settings should not be showing anymore.


If there's still a 2 minute delay at boot time, just disable Connect Automatically in your enp3s0 connection profile, when you know you're going to use the computer on campus without an ethernet cable connected.


[#1538] Wednesday, March 30, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
heathree

Total Points: 157
Total Questions: 132
Total Answers: 108

Location: Honduras
Member since Mon, Apr 5, 2021
3 Years ago
;