How to connect to router manually ?

Accidentally deleted NetworkManager and unable to connect to my wireless router.

Tried https://en.opensuse.org/SDB:YaST_wireless_network_in_first_stage_installation but unable to get a connection.

Anyone able to advise the steps to

  • connect wirelessly, I am using wpa-psk for encryption. or
  • connect using ethernet cable, I am able to pull an ethernet cable to connect to the router.

Thanks

Plug in the ethernet and run this as root:

dhclient nameofdevice

I forgot systemd uses new device names it might not be eth0 or eth1. Try running ifconfig as root to see what it comes up with.

Or you could use yast to set up a dhcp connection, use the network-settings module.

If all you deleted is NetworkManager, then use Yast Network Settings to switch to using “ifup” configuration. Then reinstall NetworkManager.

**dhclient nameofdevice
**
did the trick , thanks.