PDA

View Full Version : Networking disabled when logged off?


cptgunther
27th September 2010, 08:07 PM
I recently had to replace my MB on my Fedora 11 server, and after that was done, I've noticed something strange. If there are no users logged in on the console, they server is inaccessible from outside (no response to ping, no file sharing, etc.). If I log in, then the network is available again. I updated the /etc/udev/rules.d/70-persistent-net.rules to remove the old NIC card and change the current NIC to be ETH0, and told the firewall to trust ETH0, but still no good if not logged in. Any Suggestions?

SlowJet
27th September 2010, 08:48 PM
If no one is logged on the only thing running is system services which would need special setup to allow foreign users to process anything.
Otherwise you would be trying to acces the macine with root which may not work without special settings.

It's like pointing your TV remote at your car door lock and wondering why the horn doesn't honk?

SJ

cptgunther
27th September 2010, 09:13 PM

If no one is logged on the only thing running is system services which would need special setup to allow foreign users to process anything.
Otherwise you would be trying to acces the macine with root which may not work without special settings.

It's like pointing your TV remote at your car door lock and wondering why the horn doesn't honk?

SJ

I would still expect basic networking services to be running (ICMP PONG, at least), or at least hope they would be, since normal *nix systems often are headless, and don't have anyone logged in on the console. Any way to make sure they run at bootup?

trigpoint
27th September 2010, 10:04 PM
If you are using NetworkManager, there is no connection until someone logs in.

This is great for my laptop, which connects to the net in many different ways and locations.

For my server, I have
Installed system-config-network
Disabled service NetworkManager
Enabled service Network

Run system-config-network, un-tick controlled by networkmanager, and tick 'Activate when computer starts'.

You may also want to configure a fixed IP, so you can find it :)

GoinEasy9
27th September 2010, 10:15 PM
In NetworkManager, when you go in to edit one of the connections, there is a box that says "Available to all users". I've been told that if that box is checked, network won't go down when all users are logged off. This is just something I heard in an IRC chat, haven't experimented with it, but you may want to try it and see if it helps.

Gödel
27th September 2010, 10:27 PM
NetworkManager only runs in a gnome session.

For a wifi connection install cnetworkmanager (the commandline version) and have it connect from /etc/rc.local or disable NetworkManager and use the manual ifconfig type tools.

http://vidner.net/martin/software/cnetworkmanager/

(yum install cnetworkmanager)

marriedto51
28th September 2010, 09:50 AM
For the wired ethernet on this machine, if I right-click the NetworkManager applet, and choose "Edit connections..." I see "System eth0" (created by anaconda during installation). If I choose to edit that, I get ticks against both "Connect automatically" and "Available to all users".

Under system-config-network, if I edit eth0, I have ticks against "Controlled by NetworkManager" (the default, I think), and "Activate device when computer starts".

It might not be the simplest route, but with those things set, then other machines on our LAN can connect to this machine (for file sharing, ssh, etc) whether or not anyone is logged in.