[Cancelled] Need to "hide" onboard network card from NetworkManager

Issues related to hardware problems
Post Reply
lightman47
Posts: 1521
Joined: 2014/05/21 20:16:00
Location: Central New York, USA

[Cancelled] Need to "hide" onboard network card from NetworkManager

Post by lightman47 » 2018/01/09 17:12:13

I have a motherboard with two onboard network cards. One of them went bad about 8 months after building the machine, so I plugged the network into the other card and all is well. Sort of.

Despite my attempts to disable the bad card in NetworkManager, it still starts the correct card, shuts it down, attempts/fails to start the bad card, shuts it down, then restarts the good one. Normally, that would be ok, except NFS shares failed to mount in the meantime "mount.nfs: Failed to resolve server wlinux: Name or service not known". Because of that, some bootup logging & other chores involving the shares did not happen. By the time Gnome comes up, the shares have mounted (wait-online, perhaps) but the startup chores never got done.

Question: How can I hide or completely disable the bad card so NetworkManager isn't spending that critical piece of time trying to start it? Is there a file I should edit to remove references to the bad card?

ifcfg for bad card:

Code: Select all

TYPE=Ethernet
DEFROUTE=yes
PEERDNS=yes
PEERROUTES=yes
IPV4_FAILURE_FATAL=no
IPV6INIT=no
IPV6_AUTOCONF=yes
IPV6_DEFROUTE=yes
IPV6_PEERDNS=yes
IPV6_PEERROUTES=yes
IPV6_FAILURE_FATAL=no
NAME=enp7s4
UUID=d9033914-e8fd-47da-925a-f3ee7b1ddaa6
DEVICE=enp7s4
ONBOOT=no
PROXY_METHOD=none
BROWSER_ONLY=no
USERS=candace
ifcfg for GOOD card:

Code: Select all

TYPE=Ethernet
BOOTPROTO=dhcp
DEFROUTE=yes
IPV4_FAILURE_FATAL=no
IPV6INIT=no
IPV6_AUTOCONF="yes"
IPV6_DEFROUTE="yes"
IPV6_PEERDNS="yes"
IPV6_PEERROUTES="yes"
IPV6_FAILURE_FATAL="no"
NAME=enp2s0
UUID=092acf50-5224-46e6-9aac-eb8b0a51c284
DEVICE=enp2s0
ONBOOT=yes
HWADDR=90:E6:BA:07:42:A6
MACADDR=90:E6:BA:07:42:A6
PROXY_METHOD=none
BROWSER_ONLY=no
Thank you.
Last edited by lightman47 on 2018/01/25 12:58:33, edited 1 time in total.

MartinR
Posts: 714
Joined: 2015/05/11 07:53:27
Location: UK

Re: Need to "hide" onboard network card from NetworkManager

Post by MartinR » 2018/01/09 17:38:24

Have you tried adding

Code: Select all

NM_CONTROLLED=no
to the bad card's configuration?

lightman47
Posts: 1521
Joined: 2014/05/21 20:16:00
Location: Central New York, USA

Re: Need to "hide" onboard network card from NetworkManager

Post by lightman47 » 2018/01/09 17:45:47

I haven't, but will. In other installations, that's already in there (but with yes) - I never realized it was missing here. I will get back with results.

Thank you.
----------
Worked once - although I'd achieve successful connects sporadically previously, I was hoping this was the fix.
I expect my next step will be to post MUCH from /var/log/messages; I was hoping to skip all that with an 'easy fix'. Heh.

Again, thank you!

lightman47
Posts: 1521
Joined: 2014/05/21 20:16:00
Location: Central New York, USA

Re: Need to "hide" onboard network card from NetworkManager

Post by lightman47 » 2018/01/11 10:50:48

Hmmm - I wonder if the second 'card' is starting to go and I just think it's a config issue ...

lightman47
Posts: 1521
Joined: 2014/05/21 20:16:00
Location: Central New York, USA

Re: Need to "hide" onboard network card from NetworkManager

Post by lightman47 » 2018/01/25 12:58:11

OK - I haven't updated recently because I believe I am developing a hardware issue. I'm waiting for a time when I can have the machine for several hours to run diagnostics on it. There are now other issues - a couple of previously reliable programs are doing real screwy things. Previously, I'd only run memtest on it; time to test the rest.

Will cancel post. Thank you.

Post Reply