NM applet Disable

Source: Internet
Author: User

http://support.qacafe.com/knowledge-base/how-do-i-prevent-network-manager-from-controlling-an-interface/

Network Manager is a service for Linux which manages various networking interfaces, including physical such as Ethernet an D Wireless, and virtual such as VPN and other tunnels. Network Manager can be configured to control some or all of a system ' s interfaces.

While Network Manager was an excellent service for managing the daily requirements of a user's computer, its effects are Ty Pically Non-optimal for a testing environment. Because of the extra variables it introduces into the state of a test machine's networking configuration, it can be especi Ally difficult to integrate with Cdrouter, which also controls network interfaces. Due to this conflict, the start procedure would generate an error if Network Manager was controlling any interfaces used for Testing. In this case, you have the three options:

    • Tell Network Manager to stop controlling the interfaces used by the test configuration
    • Stop the Network Manager process
    • Remove the Network Manager software from the system

Before you begin, aware is your LAN interface may require manual configuration should your decide to remove Net Work Manager from your system. If you don't have an Internet access from another system, wish to learn how this process works before completing the Removal process. This article discusses how to manually configure network interfaces under several Operating Systems.

Tell Network Manager to stop controlling the interfaces used by the test configuration

The Network Manager has a command line tool, which can be used to see which interfaces it is controlling. Pull up a terminal window and type the following command:

$ nmcli dev status

This displays a table, lists all network interfaces along with their STATE . If Network Manager is a interface, its'll be STATE listed as controlling unmanaged . Any and value indicates the interface is under Network Manager control.

Network Manager settings is controlled by a configuration file: /etc/NetworkManager/nm-system-settings.conf (NM 0.7 and 0.8.0) or /etc/NetworkManager/NetworkManager.conf (nm 0.8.1 and later). W E would use this file to tell the Network Manager to stop controlling a particular interface, but how the is do depends on W Hich Linux operating system is running.

CentOS, Fedora, Red Hat

With these Linux distributions, the preferred-to-tell Network Manager-to-stop controlling an interface are by editing T He individual ifcfg-* files. First, make sure the Network Manager configuration file has the the following lines.

[main]plugins=ifcfg-rh

This plugin tells Network Manager to look at the Red Hat ifcfg-* files. Now for each interface you ' d like Network Manager to ignore, edit the individual /etc/sysconfig/network-scripts/ifcfg-* interface files, adding the Followi Ng lines:

NM_CONTROLLED=noHWADDR=00:11:22:33:44:55

Of course, set the value to is the HWADDR actual MAC address of this interface. Often this is already present.

Ubuntu, Debian

With these Linux distributions, one-to-tell Network Manager to stop controlling a particular interface are by telling N Etwork Manager to ignore all interfaces listed in the /etc/network/interfaces file. This is do by adding the following lines to the Network Manager configuration file:

[main]plugins=ifupdown[ifupdown]managed=false

Since this would only affect interfaces listed /etc/network/interfaces in the file, no interface not listed there would remain under Network Manager control.

Alternate KEYFILEMethod

Regardless of which Linux distribution is running, a alternate method can be used to tell Network Manager to stop control Ling an interface. This is do by adding the following lines to the Network Manager configuration file:

[main]plugins=keyfile[keyfile]unmanaged-devices=mac:00:11:22:33:44:55;mac:66:77:88:99:00:aa

List the MAC address of each interface want Network Manager to ignore, separated with a semicolon. Make sure, MAC addresses listed here is LOWERcase.

Stop the Network Manager process

If Network Manager is not needed during testing, it can be shut off completely. The Stop/start command is a little different depending on the Linux distribution used:

CentOS, Fedora, Red Hat
$ service NetworkManager stop$ service NetworkManager start
Ubuntu, Debian
sudo service network-manager stop$ sudo service network-manager start
Remove the Network Manager software from the system

If Network Manager'll is needed at all, the it can is removed from the system completely. Again, this procedure are a bit different depending on the Linux distribution used:

CentOS, Fedora, Red Hat
$ yum remove NetworkManager
Ubuntu, Debian
sudo apt-get remove network-manager

NM applet Disable

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.