Ubuntu desktop settings settings for the network environment 2

Source: Internet
Author: User

Ubuntu Desktop Network Settings

Category: Linux 2014-09-01 22:52 1112 People read reviews (0) favorites report

First of all, my experience, I think Ubuntu Desktop version of the best way to configure the network is to use the Network-manager interface software, because the desktop version of the software is automatically launched. The reasons are as follows:

1. If you want this software to be set to not start the machine, you have to do:chkconfig network-manager off This command, but by default chkconfig This command is not installed , and use Apt-get to install the premise is you can Sisu network, and network normal!

2. In addition, as long as Network-manager this program is running, the content you add to/etc/resolv.conf will disappear after a reboot, which means that your DNS configuration is invalid, which could result in the inability to sisu the network!

In order to use Network-manager, do not manually set the ETH0 network address in the file/etc/network/interfaces, as I do, keep the content as follows:

[Plain] view plaincopy650) this.width=650; "src=" Https://code.csdn.net/assets/CODE_ico.png "width=" 12 " Height= "alt=" on code to view the chip "style=" Border:none; "/>650" this.width=650; "src=" Https://code.csdn.net/assets/ico _fork.svg "width=" height= "alt=" derived from My Code slice "style=" border:none; "/>

  1. [[email protected] #4] $CAT interfaces

  2. # This file describes the network interfaces available on your system

  3. # and how to activate them. For more information, see Interfaces (5).

  4. # The Loopback network interface

  5. Auto Lo

  6. Iface Lo inet Loopback

Next, you can open Network-manager to configure the network,

650) this.width=650; "src=" http://img.blog.csdn.net/20140901224727402 "style=" border:none; "/>

650) this.width=650; "src=" http://img.blog.csdn.net/20140901224914277 "style=" border:none; "/>

Because I have successfully added, so the window title in the picture is "edit", if it is added for the first time, I believe it should show "add".

This configuration, each boot, Network-manager will be set by your network parameters set to the system, but also easy to modify.

The network configuration added through Network-manager is also in the system as a file, see my running situation:

[Plain] view plaincopy650) this.width=650; "src=" Https://code.csdn.net/assets/CODE_ico.png "width=" 12 " Height= "alt=" on code to view the chip "style=" Border:none; "/>650" this.width=650; "src=" Https://code.csdn.net/assets/ico _fork.svg "width=" height= "alt=" derived from My Code slice "style=" border:none; "/>

  1. [[email protected] #8] $CD networkmanager/

  2. [email protected] #9] $ls

  3. networkmanager.conf VPN DISPATCHER.D dnsmasq.d system-connections

  4. [email protected] #10] $pwd

  5. /etc/networkmanager

  6. [email protected] #11] $ls

  7. networkmanager.conf VPN DISPATCHER.D dnsmasq.d system-connections

  8. [[email protected] #12] $CD system-connections/

  9. [email protected] #13] $ls

  10. Wired

  11. [[email protected] #14] $cat Wired

  12. Cat:Wired:Permission denied

  13. [email protected] #15] $sudo cat Wired

  14. [sudo] password for zcm:

  15. [802-3-ethernet]

  16. Duplex=full

  17. Mac-address=00:0c:29:2d:ef:be

  18. [Connection]

  19. Id=wired

  20. Uuid=bad1acb0-b4dc-4da9-b2cd-d20adf930bca

  21. Type=802-3-ethernet

  22. timestamp=1409583499

  23. [IPv6]

  24. Method=auto

  25. [IPv4]

  26. Method=manual

  27. dns=192.168.1.1;

  28. addresses1=192.168.1.79;24;192.168.1.1;

  29. [Email protected] #16]$


The content in this file is exactly the same as the settings you made through the Network-manager interface. "Wired connection 1" In my diagram has been changed to "Wired".

This article also references: http://blog.csdn.net/anhuidelinger/article/details/17584299

Most of the solutions mentioned on the Web are directly modifying the/etc/network/interfaces file and adding DNS to the/etc/resolv.conf, but the premise is that there is no network-manager involved , Factor they use the version may be ubuntu-server version, this version is no graphical interface, so naturally there is no Network-manager program, so that the setting will take effect, and can be maintained after a reboot.


This article from "There is nothing, know in Providence" blog, please be sure to keep this source http://yangsj.blog.51cto.com/8702844/1712783

Ubuntu desktop settings settings for the network environment 2

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.