I am lately having trouble setting up the Ethernet port. I tried setting it up in /etc/sysconfig/network, but NetworkManager.Service seems to be over-riding any changes that I make.
When I tried to open this “NetworkManager” via terminal, or from quicklaunch, I get no response. Furhtermore, YAST Network management seems to be disabled/overridden.
For the time being, I am setting ifconfig manually
ifconfig enp0s25 192.168.0.1
which needs to be ran each time. Could someone help me with this please? This is important to me because I am using ethernet port to communicate with FPGA board ATLYS, and I am constantly running into communication errors due to this
You either use wicked or NetworkManager. And you set that in YaST > Network > Network Devices.
When you choose NetworkManager, YaST is of no further use for configuring the network and I also assume (editing manually) the ifconfig-* files are useless because NM does not use them.
When you choose wicked, you can use YaST to fill in all the needed parameters. They end up in several configuration files like the ifconfig-* files and others. You can of course edit all those file manually when you know what you are doing.
I use wicked for setting static IP addresses, because I see no need for NM when having always the same IP address from boot to shutdown.
I have no experience in using NM, I have not even installed it.
But as I understand correctly, you could make a connection “system” (or similar wording) to have it connected from boot (and not from GUI login as is where NM is invented for).
But I have no doubt others with NM experience will join this thread.
Verify or set Network Manager to manage your network settings. In a default installation, openSUSE installs, but <disables> Network Manager(If you see a Networking icon in your Desktop panel, it’ll probably say “Network disabled” or similar) so if you don’t modify the default setting, then you would manually configure in YaST or modify the network interface text files as you’ve described. So, from your Desktop application launch button, you should open your menu, look for and launch the following and select “Network Manager Service” from the dropdown menu
YaST > System > Network Settings > Global Options tab (leftmost)
Depending on your Desktop, you may see a Networking icon in your Desktop panel (aka taskbar). Rt-click it, and instead of saying “Networking disabled” you should now be able to “Edit Connections.” Click on that, and you should now be able to modify an existing connection or create a new, configuring static settings for your network interface (or many will allow the connection to be configured as a DHCP client).
Ordinarily,
People should only rarely use nmcli instead of the GUI tools.
Ummmh … nope, not necessarily. All of the last 3 installs I did of 42.2 installed and set Network Manager to work by default. All were laptop, though, with wireless cards, so perhaps it factors the presence of a wireless card in when it selects the default – I don’t know, never really watched for it.
To the OP:
But, as tsu2 says, it would be a good idea to go into Yast and check that Network Manager Service is selected:
So, from your Desktop application launch button, you should open your menu, look for and launch the following and select “Network Manager Service” from the dropdown menu
YaST > System > Network Settings > Global Options tab (leftmost)
Also in there, this:
When you choose NetworkManager, YaST is of no further use for configuring the network
is mostly correct. However, you can make some changes in there, even with NetworkManager in control: For example, you can set or change your Hostname and/or Domain Name, and a few other items. Things you cannot change in the YaST2 Network Settings are (likely) greyed out.
And, this, from tsu2, is correct, how to set static IP in NetworkManager:
Depending on your Desktop, you may see a Networking icon in your Desktop panel (aka taskbar). Rt-click it, and instead of saying “Networking disabled” you should now be able to “Edit Connections.” Click on that, and you should now be able to modify an existing connection or create a new, configuring static settings for your network interface (or many will allow the connection to be configured as a DHCP client).
You should check that NM is active and that wicked is not
sudo systemctl status NetworkManager
sudo systemctl status wicked
This can be configured in YaST as already explained.
With respect to the connection you’ve created you can check/edit that graphically (NM connection editor) or examine /etc/NetworkManager/system-connections/itsdaq (based on the name of the connection you created already)
In an effort to assist I did the following (appropriate for my network)
nmcli con add type ethernet con-name test ifname eth0 ip4 192.168.1.100/24 gw4 192.168.1.1
which resulted in the following connection being created (/etc/NetworkManager/system-connections/test) and containing