 |
 |
 |
 |
| Servers & Networking Discuss any Fedora server problems and Networking issues such as dhcp, IP numbers, wlan, modems, etc. |

19th September 2011, 05:32 AM
|
 |
Registered User
|
|
Join Date: Jul 2005
Location: Melbourne, Australia
Age: 33
Posts: 762

|
|
|
What is the clean way of disabling NetworkManager
I want to go back to the good old days.....
So I turned off networkmanager and turned on network. Didn't work for whatever reason, so I gung-hoed it and yum remove networkmanager.
Reboot later, I don't even see any network devices aside from lo...... network fails to start as it can't find any interfaces... ok.... what the..... why would removing networkmanager remove the system's ability to see the NIC? (which is still happily showing up in dmesg logs and lspci).
So after that experience I rebuilt my machine, and left networkmanager to its own devices (its a server with a LAN cable and static IP).
But I'm curious: whats the clean way in F15 to disable networkmanager and use the traditional RH way of configuring eth0?
__________________
the phases of 'nix troubleshooting
For :eek:
:confused: | google > :D
Next
|

19th September 2011, 08:12 AM
|
 |
Un-Retired Administrator
|
|
Join Date: Mar 2004
Location: Salem, Mass USA
Posts: 13,924

|
|
|
Re: What is the clean way of disabling NetworkManager
These commands should work:
PHP Code:
systemctl stop NetworkManager.service
systemctl disable NetworkManager.service
Then you enable the network service in a similar fashion.
PHP Code:
systemctl enable network.service
systemctl start network.service
__________________
Glenn
The Bassinator © ®
Laptop: Toshiba Satellite / Intel Core 2 Duo 1.73 GHz / 2GB / 160GB / Intel Mobile 945GM/GMS/GME/943/940GML Integrated Graphics
Desktop: BioStar MCP6PB M2+ / AMD Phenom 9750 Quad Core / 4GB / 1TB SATA / 500GB SATA / EVGA GeForce 8400 GS 1GB
|

19th September 2011, 09:54 PM
|
 |
Registered User
|
|
Join Date: Aug 2005
Location: Ann Arbor
Age: 45
Posts: 3,907

|
|
|
Re: What is the clean way of disabling NetworkManager
|

19th September 2011, 09:59 PM
|
|
Registered User
|
|
Join Date: Aug 2009
Location: Waldorf, Maryland
Posts: 6,092

|
|
|
Re: What is the clean way of disabling NetworkManager
You may need to redefine your network interfaces. NetworkManager uses the same files, and the removal most likely removed the configuration files too.
|

20th September 2011, 12:23 AM
|
 |
Registered User
|
|
Join Date: Jul 2005
Location: Melbourne, Australia
Age: 33
Posts: 762

|
|
|
Re: What is the clean way of disabling NetworkManager
OK cheers
I used the traditional RH 'service XYZ stop/start' method, I'm guessing systemctl is the new way of doing things?
For some reason stopping/starting NM and network using service didn't work but maybe systemctl will.
Will definitely NOT remove networkmanager lol I ahve no idea how to define interfaces
__________________
the phases of 'nix troubleshooting
For :eek:
:confused: | google > :D
Next
|

29th September 2011, 07:33 AM
|
 |
Registered User
|
|
Join Date: Jul 2005
Location: Melbourne, Australia
Age: 33
Posts: 762

|
|
|
Re: What is the clean way of disabling NetworkManager
FWIW the systemctl method worked perfectly, but I had to manually add a default route.
The impressive (?) thing was that the static IP I had set via networkmanager seemed to be seamlessly carried across. Though why it didn't carry the default route across, no idea. Oh well
__________________
the phases of 'nix troubleshooting
For :eek:
:confused: | google > :D
Next
|

29th September 2011, 09:13 AM
|
|
Registered User
|
|
Join Date: Jan 2010
Posts: 4,976

|
|
|
Re: What is the clean way of disabling NetworkManager
From time to time, (when I've done default installs, which include NM), it seems that stopping it still leaves various things running, such as dhclient, which NM assumes you want. Nowadays, I do minimal installs, which don't include NM. These days, I usually run system-config-network-tui. I used to just manually configure ifcfg-eth0, but stevea has pointed out elsewhere that there are various other files and/or scripts (I don't remember the exact details) that are affected, so one is better off using the tool.
However, even after doing that, I have to manually edit the file, which will choose to not start it at boot and will assume it is controlled by NM--there's a line in there NM_CONTROLLED="yes" that seems to get set after running system-config-network-tui.
The old chkconfig and service commands should still work, they've worked to make it compatible, though chkconfig --list no longer works, IIRC.
|

29th September 2011, 10:32 AM
|
 |
Registered User
|
|
Join Date: Aug 2005
Location: Ann Arbor
Age: 45
Posts: 3,907

|
|
|
Re: What is the clean way of disabling NetworkManager
i normally use ifup
on fedora and cent and SL i turn off NM .That is UNLESS there is a wireless connection like a laptop .
on suse 11.4i use ifup
99% of the time the older network tool will get the ip from dhcp ( set to NOT change DNS) -- i like 8.8.8.8
now 15 IS A BIT different the boot process changed , and it it time i learn the new programs .
|

27th October 2012, 12:54 PM
|
|
Registered User
|
|
Join Date: Nov 2008
Posts: 26

|
|
|
Re: What is the clean way of disabling NetworkManager
Quote:
Originally Posted by glennzo
These commands should work:
PHP Code:
systemctl stop NetworkManager.service
systemctl disable NetworkManager.service
Then you enable the network service in a similar fashion.
PHP Code:
systemctl enable network.service
systemctl start network.service
|
Tried this on FC16, but I'm not able to disable it - only stop it. But after next boot my network is gone!
How can I manually set the IP address and get rid of the Network Manager once and for all??
|

27th October 2012, 02:25 PM
|
|
Registered User
|
|
Join Date: Aug 2009
Location: Waldorf, Maryland
Posts: 6,092

|
|
|
Re: What is the clean way of disabling NetworkManager
Make sure the network configuration files have "NM_CONTROLLED=no" AND has "ONBOOT=yes".
|

27th October 2012, 02:28 PM
|
|
Registered User
|
|
Join Date: Nov 2008
Posts: 26

|
|
|
Re: What is the clean way of disabling NetworkManager
I did that, but it did not seem to work.
Later I found out that the network script was not executed during startup. A link in /etc/rc3.d was missing. Adding it fixed the problem.
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
Current GMT-time: 05:42 (Sunday, 19-05-2013)
|
|
 |
 |
 |
 |
|
|