Disable eth0 on boot.

Will this work to disable the onboard Ethernet?
I have a card (eth1) that is better than the onboard, and I think this may be part of my desktop hangs at ‘started locale service’ problem.


/etc/sysconfig/network-scripts/ifcfg-eth0
and change
ONBOOT=yes
to
ONBOOT=no

(or add it if it doesn't exist)

On Tue 04 Sep 2018 09:06:03 PM CDT, Bill L wrote:

Will this work to disable the onboard Ethernet?
I have a card (eth1) that is better than the onboard, and I think this
may be part of my desktop hangs at ‘started locale service’ problem.

Code:

/etc/sysconfig/network-scripts/ifcfg-eth0
and change
ONBOOT=yes
to
ONBOOT=no

(or add it if it doesn’t exist)

Hi
Just disable via the system BIOS…


Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
SLES 15 | GNOME Shell 3.26.2 | 4.12.14-25.16-default
If you find this post helpful and are logged into the web interface,
please show your appreciation and click on the star below… Thanks!

OK, disable in the BIOS, but boot up script still ‘found’ it after saving the BIOS, shutting down and starting up gain.
And it still shows as an alternate connection in Network Manager.
I suppose I thought it would just not be identified any how, any where.
‘hwinfo’ says it is a PCI device, so if it is a removable card, I just my take it out.

Thanks for the response.

BTW>> it didn’t help the hang problem(bummer), hung first time after the change.
OH well… time to look for other causes

Hi
Go into YaST Network Settings and make sure the configuration is deleted…

Or perhaps just blacklist the driver.

BTW>> it didn’t help the hang problem(bummer), hung first time after the change.
OH well… time to look for other causes

I’m not surprised to read this. What led to to think that this would be connected with it?

If you are using NetworkManager, then I doubt that the “ifcfg-eth0” setting will do anything. You would need to disable it with NetworkManager settings.

I have never tried this, but it might work. Right click on the NetworkManager icon in the tray, and select “Settings” (or maybe it is “Connection settings”. Select the “eth0” connect, and choose “Edit”. There should be a box to automatically connect – probably the general tab for the wired connection. Uncheck that box, and save the changes. You will be prompted for the root password when saving the changes.

Did you actually try this? It’s what I would have expected to work.

The above looks a bit confusing to me.

The OP did not tell in the first post if he is using Wicked or NM, but talking about ifcfg-eth0, we all assumed he is using Wicked.

Later he talks about NM “seeing” the device. Thus making most of the earlier advises (except the firmware one) useless.

So please @OP. Are you using wicked or NM? You set that in YaST > Network Devices > Network Settings and then the tab Global.

When set to Wicked, you the can further configure with YaST and the results are in the ifcfg and other files in /etc/sysconfig/network to be used by Wicked.

When set to NM, YaST has no task anymore and what is in the ifcfg files, etc. is if of null importance.