Two pits-linux under Network-manager wired unmanaged-dns resolv.conf file is emptied

Source: Internet
Author: User

Linux has two sets of programs to manage network connectivity:

1,/etc/network/interfaces (/etc/init.d/networking) 2, Network-manager

Two sets of schemes are conflicting and cannot coexist at the same time.

The first scenario is for environments that do not have x, such as servers, or where there is no need to change connections at All. The second set of programs used in the desktop environment, especially notebooks, moved to move around, the network connection situation will change at any Time.

Both of them to avoid conflicts and to share the configuration, there is the following solution:

1. When Network-manager discovers That/etc/network/interfaces was altered, it closes itself (shown as Unmanaged) unless the managed is set to True.

2, when the managed is set to true,/etc/network/interfaces, it does not take effect. ############## sudo vi/etc/networkmanager/networkmanager.conf change the managed=false to true, restart it. ##############

Two pits

1. Wired Unmanaged

If you have already configured eth0 in/etc/network/interfaces, you need to remove the eth0 configuration and modify/etc/networkmanager/networkmanager.conf managed=true

Reboot

Cause: interfaces configured the eth0 so that the Network-manager thought interfaces took over the network control, so in order to avoid the conflict, no longer take over eth0, so the display device is not hosted.

2,/etc/resolv.conf Boot is emptied

The reason is Ditto.

Two pits-linux under Network-manager wired unmanaged-dns resolv.conf file is emptied

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.