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; "/>
[[email protected] #4] $CAT interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see Interfaces (5).
# The Loopback network interface
Auto Lo
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; "/>
[[email protected] #8] $CD networkmanager/
[email protected] #9] $ls
networkmanager.conf VPN DISPATCHER.D dnsmasq.d system-connections
[email protected] #10] $pwd
/etc/networkmanager
[email protected] #11] $ls
networkmanager.conf VPN DISPATCHER.D dnsmasq.d system-connections
[[email protected] #12] $CD system-connections/
[email protected] #13] $ls
Wired
[[email protected] #14] $cat Wired
Cat:Wired:Permission denied
[email protected] #15] $sudo cat Wired
[sudo] password for zcm:
[802-3-ethernet]
Duplex=full
Mac-address=00:0c:29:2d:ef:be
[Connection]
Id=wired
Uuid=bad1acb0-b4dc-4da9-b2cd-d20adf930bca
Type=802-3-ethernet
timestamp=1409583499
[IPv6]
Method=auto
[IPv4]
Method=manual
dns=192.168.1.1;
addresses1=192.168.1.79;24;192.168.1.1;
[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