Page 1 of 1

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

Posted: 2018/01/09 17:12:13
by lightman47
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.

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

Posted: 2018/01/09 17:38:24
by MartinR
Have you tried adding

Code: Select all

NM_CONTROLLED=no
to the bad card's configuration?

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

Posted: 2018/01/09 17:45:47
by lightman47
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!

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

Posted: 2018/01/11 10:50:48
by lightman47
Hmmm - I wonder if the second 'card' is starting to go and I just think it's a config issue ...

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

Posted: 2018/01/25 12:58:11
by lightman47
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.