Network Won't Start At Boot

Running 11.4, GNOME.

YaST -> System Services (Runlevel) produces the list of services that run at boot.

network, network-remotefs, nfs, nscd, and ntp are all “Yes*” at every boot. The biggest problem is that network hasn’t started and NetworkManager - or, namely, nm-applet, doesn’t show up and I cannot connect to my network.

If I enable network manually from System Services, NetworkManager appears, asks for the keyring password, connects, and I’m fine - until I reboot. Then I have to go back into System Services and manually enable network in order to connect.

What would cause this? Any suggestions?

-Ian

Running 11.4, GNOME.

YaST -> System Services (Runlevel) produces the list of services that run at boot.

network, network-remotefs, nfs, nscd, and ntp are all “Yes*” at every boot. The biggest problem is that network hasn’t started and NetworkManager - or, namely, nm-applet, doesn’t show up and I cannot connect to my network.

If I enable network manually from System Services, NetworkManager appears, asks for the keyring password, connects, and I’m fine - until I reboot. Then I have to go back into System Services and manually enable network in order to connect.

What would cause this? Any suggestions?

-Ian

If you open YaST (Enter Root User Password) / Network Devices / Network Services / Global Options Tab / Network Setup Method is the bullet for User Controlled with NetworkManager set? And, by the way, Welcome to the openSUSE forums EchoLynx!

Thank You,

I suspect this might be a big problem. When I tried to move a couple screenshots, my workstation froze. Needed the Magic SysRq keys to get out.

One thing at a time…

I think things are different at my end because I am using the GNOME version of OpenSuSE. Is this what you meant?
NetworkSettings1.png - 193KiB
NetworkSettings2.png - 130KiB
NetworkSettings3.png - 129KiB

On 2011-10-08 00:06, EchoLynx wrote:

> I think things are different at my end because I am using the GNOME
> version of OpenSuSE. Is this what you meant?
> ‘NetworkSettings1.png - 193KiB’ (http://tinyurl.com/3fw3dab)
> ‘NetworkSettings2.png - 130KiB’ (http://tinyurl.com/3nmonm2)
> ‘NetworkSettings3.png - 129KiB’ (http://tinyurl.com/3gd88cr)

Yes. And if I remember correctly, with those settings network will not
start at boot, but at login.


Cheers / Saludos,

Carlos E. R.
(from 11.4 x86_64 “Celadon” at Telcontar)

I suspect this might be a big problem. When I tried to move a couple screenshots, my workstation froze. Needed the Magic SysRq keys to get out.

One thing at a time…

I think things are different at my end because I am using the GNOME version of OpenSuSE. Is this what you meant?
NetworkSettings1.png - 193KiB
NetworkSettings2.png - 130KiB
NetworkSettings3.png - 129KiB

Are you trying to connect using wireless but may also use a wired connection? When using wireless in gnome have you setup the application keyring, to keep your wireless passphrase? If you only use one network connection all of the time, using the Traditional Method using ifup will start up faster than using networkmanager. Use networkmanager when you are using a laptop and switch between networks a lot.

Thank You,

robin_listas: I think you’re right, though it doesn’t matter to me. I just want it to work without intervention.

jdmcdaniel3:
I am only using a wireless connection at the moment, so I tried ifup. Unfortunately, that didn’t work. After configuring the wireless card, the configuration application process hung on something like “starting network services”, the same way starting the network service manually from System Services takes several seconds, only this time it takes about twice as long and the end result isn’t a connection.

jdmcdaniel3:
I am only using a wireless connection at the moment, so I tried ifup. Unfortunately, that didn’t work. After configuring the wireless card, the configuration application process hung on something like “starting network services”, the same way starting the network service manually from System Services takes several seconds, only this time it takes about twice as long and the end result isn’t a connection.

Did you enter the network SSID and network passphrase into the ifup configuration? Basically, if you can connected with networkmanager, you can connect with ifup. Sometimes, I find you need to open up a terminal session once, become root with su - and enter the ifdown command for the hardwired network like ifdown eth0 for instance. When online, you can search on ifup and ifstatus to get a list of associated commands.

Thank You,

While I had configured the SSID and WPA key correctly, I hadn’t set the default gateway. Once done, I still couldn’t connect, so I did the following:

ian@ian-openSUSE:~> sudo su -
ian-openSUSE:~ # ifstatus wlan0
    wlan0     device: RaLink RT2800 802.11n PCI
DHCP4 client NOT running
DHCP6 client NOT running
    wlan0     is down
ian-openSUSE:~ # ifup wlan0
    wlan0     device: RaLink RT2800 802.11n PCI
    wlan0     starting wpa_supplicant
Starting DHCP4+DHCP6 client on wlan0. . . . . . . .  
    wlan0     IP address: 192.168.1.107/24
    wlan0     DHCP6 continues in background
ian-openSUSE:~ # 

Then I was connected. I tried restarting to see if the ‘network’ service was was running at boot time, and it was - but I still wasn’t connected. Run “ifup wlan0” and I’ll connect.

It seems like progress, but we aren’t there yet. I still have to do something to connect after every boot.

So, you could create a script that runs this command perhaps on each reboot. Use a text editor to create a netup script:

#!/bin/bash

#: Title       : netup
#: Date Created: Sat Oct 8 12:14:16 CDT 2011
#: Last Edit   : Sat Oct 8 12:14:16 CDT 2011
#: Author      : EchoLynx
#: Version     : 1.00
#: Description : 
#: Options     : 

ifup wlan0

exit 0

# End Of Script

Then, you need to copy the file to /etc/init.d, mark it executable and assign it to run at some run level:

sudo cp netup /etc/init.d
sudo chmod +x /etc/init.d/netup
sudo  ln -s /etc/rc5.d/netup /etc/init.d/netup

There are other ways to do this I am sure, but this should work. This runs at run level 5 as root. It might work at run level 3 as well.

Thank You,

A solution is all I ask for.

Created the script, but had some problems making the symbolic link.


ian@ian-openSUSE:~> sudo cp netup /etc/init.d
root's password:
Sorry, try again.
root's password:
ian@ian-openSUSE:~> sudo cp netup /etc/init.d
ian@ian-openSUSE:~> sudo chmod +x /etc/init.d/netup
ian@ian-openSUSE:~> sudo  ln -s /etc/rc5.d/netup /etc/init.d/netup
ln: failed to create symbolic link `/etc/init.d/netup': File exists
ian@ian-openSUSE:~> sudo  ln -s /etc/rc5.d/netup /etc/init.d/netup
ln: failed to create symbolic link `/etc/init.d/netup': File exists
ian@ian-openSUSE:~> /etc/rc5.d/netup
bash: /etc/rc5.d/netup: No such file or directory
ian@ian-openSUSE:~> sudo  ln -s /etc/init.d/netup /etc/rc5.d/netup
ln: failed to create symbolic link `/etc/rc5.d/netup': No such file or directory
ian@ian-openSUSE:~> sudo ln -s /etc/init.d/netup /etc/rc5.d/netup
ln: failed to create symbolic link `/etc/rc5.d/netup': No such file or directory
ian@ian-openSUSE:~> sudo su
ian-openSUSE:/home/ian # ln -s /etc/init.d/netup /etc/rc5.d/netup
ln: failed to create symbolic link `/etc/rc5.d/netup': No such file or directory
ian-openSUSE:/home/ian # ln -s /etc/rc5.d/netup /etc/init.d/netup
ln: failed to create symbolic link `/etc/init.d/netup': File exists
ian-openSUSE:/home/ian # 

lets try a different tack. Lets add it to an existing file /etc/init.d/after.local. We need to edit this file as root. In kde you could do an Alt-F2 and enter:

kdesu kwrite /etc/init.d/after.local

Then add in your command at the end of the file.

#! /bin/sh
#
# Copyright (c) 2010 SuSE LINUX Products GmbH, Germany.  All rights reserved.
#
# Author: Werner Fink, 2010
#
# /etc/init.d/after.local
#
# script with local commands to be executed from init after all scripts
# of a runlevel have been executed.
#
# Here you should add things, that should happen directly after
# runlevel has been reached.  Common environment
# variables for this are:
#  RUNLEVEL  -- The current system runlevel.
#  PREVLEVEL -- The previous runlevel (useful after a runlevel switch).
#

ifup wlan0

And save the file and reboot…

Thank You,

In gnome, the command is gnomesu and the editor is gedit.

Unfortunately, adding that line to after.local didn’t work. This was just after reboot…


ian-openSUSE:/home/ian # ifstatus wlan0
    wlan0     device: RaLink RT2800 802.11n PCI
DHCP4 client NOT running
DHCP6 client NOT running
    wlan0     is down
ian-openSUSE:/home/ian # ifup wlan0
    wlan0     device: RaLink RT2800 802.11n PCI
    wlan0     starting wpa_supplicant
Starting DHCP4+DHCP6 client on wlan0. . . . . . . .  
    wlan0     IP address: 192.168.1.107/24
    wlan0     DHCP6 continues in background
ian-openSUSE:/home/ian # 

… and then I went online and created this post.

I found another suggestion to then add this after the previous line:

#! /bin/sh
#
# Copyright (c) 2010 SuSE LINUX Products GmbH, Germany.  All rights reserved.
#
# Author: Werner Fink, 2010
#
# /etc/init.d/after.local
#
# script with local commands to be executed from init after all scripts
# of a runlevel have been executed.
#
# Here you should add things, that should happen directly after
# runlevel has been reached.  Common environment
# variables for this are:
#  RUNLEVEL  -- The current system runlevel.
#  PREVLEVEL -- The previous runlevel (useful after a runlevel switch).
#

ifup wlan0
iwlist wlan0 scan

Why not give this a try…

Thank You,

Still disconnected at boot.

If you need help finding a solution, throw me a bone. I would do the research myself, but I don’t know what I’m looking for.

Thank you for spending so much time on this.

Lets go back to the basics. Goto YaST (Enter Root User Password) / Network Devices / Network Settings / Overview Tab / Select Wireless Device with mouse / Press Edit Bottom Left / General Tab (of Edit now) / Device Activation / Activate Device says: **On NFSroot **is what my hard wired network connection says. What does yours say for the wireless adapter? You can just press Next and then OK to not change it. But, if it says Manually, that might be the problem.

Thank You,

On 2011-10-08 19:46, jdmcdaniel3 wrote:
> Then, you need to copy the file to /etc/init.d, mark it executable and
> assign it to run at some run level:
>
>
> Code:
> --------------------
> sudo cp netup /etc/init.d
> sudo chmod +x /etc/init.d/netup
> sudo ln -s /etc/rc5.d/netup /etc/init.d/netup
> --------------------
>
>
> There are other ways to do this I am sure, but this should work.

No, it should not. The symlinks are ignored in a normal openSUSE install.
You have to follow procedure as documented and call checkinstall.


Cheers / Saludos,

Carlos E. R.
(from 11.4 x86_64 “Celadon” at Telcontar)

Currently set to “At Boot Time”

Other options are:
“On Cable Connection”
“On Hotplug”
“Manually”
“Never”
“On NFSroot”

Tried “On NFSroot”, but that didn’t do it.

Currently set to “At Boot Time”

Other options are:
“On Cable Connection”
“On Hotplug”
“Manually”
“Never”
“On NFSroot”

Tried “On NFSroot”, but that didn’t do it.

I guess there is some detail that we are missing. If you remove the two commands added to after.local, restart, open up a terminal session and type in these commands, what do you get. Post the results here for use to see again.

su -
password:
ifup wlan0
iwlist wlan0 scan

What was the name of the service you would start to cause networking to come up when using networkmanager? We have started a second page and this keeps from needing to go backwards.

Thank You,