Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Servers & Networking
FedoraForum Search

Forgot Password? Join Us!

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

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 19th September 2011, 05:32 AM
johannlo's Avatar
johannlo Offline
Registered User
 
Join Date: Jul 2005
Location: Melbourne, Australia
Age: 33
Posts: 762
windows_7chrome
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
Reply With Quote
  #2  
Old 19th September 2011, 08:12 AM
glennzo's Avatar
glennzo Offline
Un-Retired Administrator
 
Join Date: Mar 2004
Location: Salem, Mass USA
Posts: 13,924
linuxchrome
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
Reply With Quote
  #3  
Old 19th September 2011, 09:54 PM
JohnVV's Avatar
JohnVV Offline
Registered User
 
Join Date: Aug 2005
Location: Ann Arbor
Age: 45
Posts: 3,907
linuxfirefox
Re: What is the clean way of disabling NetworkManager

mjmwired's old fedora 14 guide will help
http://www.mjmwired.net/resources/mjm-services-f14.html
__________________
Running Arch ,OpenSUSE 11.4-64bit & Scientific Linux 6.1-64bit ( fedora 4 to 11)
My Celestia Downloads

http://celestiamotherlode.net/catalo...?creator_id=10
Reply With Quote
  #4  
Old 19th September 2011, 09:59 PM
jpollard Offline
Registered User
 
Join Date: Aug 2009
Location: Waldorf, Maryland
Posts: 6,092
linuxfedorafirefox
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.
Reply With Quote
  #5  
Old 20th September 2011, 12:23 AM
johannlo's Avatar
johannlo Offline
Registered User
 
Join Date: Jul 2005
Location: Melbourne, Australia
Age: 33
Posts: 762
windows_7chrome
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
Reply With Quote
  #6  
Old 29th September 2011, 07:33 AM
johannlo's Avatar
johannlo Offline
Registered User
 
Join Date: Jul 2005
Location: Melbourne, Australia
Age: 33
Posts: 762
windows_7chrome
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
Reply With Quote
  #7  
Old 29th September 2011, 09:13 AM
smr54 Online
Registered User
 
Join Date: Jan 2010
Posts: 4,976
linuxchrome
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.
Reply With Quote
  #8  
Old 29th September 2011, 10:32 AM
JohnVV's Avatar
JohnVV Offline
Registered User
 
Join Date: Aug 2005
Location: Ann Arbor
Age: 45
Posts: 3,907
linuxfirefox
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 .
__________________
Running Arch ,OpenSUSE 11.4-64bit & Scientific Linux 6.1-64bit ( fedora 4 to 11)
My Celestia Downloads

http://celestiamotherlode.net/catalo...?creator_id=10
Reply With Quote
  #9  
Old 27th October 2012, 12:54 PM
boinc Offline
Registered User
 
Join Date: Nov 2008
Posts: 26
windows_xp_2003firefox
Re: What is the clean way of disabling NetworkManager

Quote:
Originally Posted by glennzo View Post
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??
Reply With Quote
  #10  
Old 27th October 2012, 02:25 PM
jpollard Offline
Registered User
 
Join Date: Aug 2009
Location: Waldorf, Maryland
Posts: 6,092
linuxfirefox
Re: What is the clean way of disabling NetworkManager

Make sure the network configuration files have "NM_CONTROLLED=no" AND has "ONBOOT=yes".
Reply With Quote
  #11  
Old 27th October 2012, 02:28 PM
boinc Offline
Registered User
 
Join Date: Nov 2008
Posts: 26
windows_xp_2003firefox
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.
Reply With Quote
Reply

Tags
clean, disabling, networkmanager

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
F15 disabling NetworkManager gohanman Servers & Networking 1 25th June 2011 01:25 AM
NetworkManager / NetworkManager Display Problem Malachai Hardware & Laptops 0 25th December 2007 10:52 PM
How clean is your PC? Wayne Wibble 14 15th January 2007 05:03 PM
Yum clean all sweetmail1982 Using Fedora 7 15th October 2006 08:35 PM
yum CLEAN fails to clean my house blochbob Using Fedora 9 4th October 2004 02:12 PM


Current GMT-time: 05:42 (Sunday, 19-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat