Ubuntu Set fixed Ip,network-manager cannot save fixed IP solution
Title:
Using Windows too long to form aesthetic fatigue Ah, but depressed is the Windows personalization ability is too weak point it
And Ubuntu is a perfect alternative.
Because the personal laptop wireless card problem, the school use wired and must be fixed IP, but use the graphical interface (network-manager) set fixed IP (manual), the bottom of the Save button is gray, inverted has not been set fixed IP, But Baidu or Google set fixed IP, almost 100% of the requirements from the command line to modify/etc/network/interfaces and a/etc/... (Change the DNS file). (Actually, that's the right way)
But there are ways to say that because the driver is wrong, so can not save the IP, perhaps this is an aspect of the reason, but more notable is:即使驱动正确,这个保存按钮还是会是灰色
Workaround:
-
First, set the fixed IP (mostly on the web like the following method, which is correct)
<pre> <code>ubuntu network parameters are saved in the file/etc/network/interfaces, the default settings use DHCP, the contents are as follows: # The primary network Interfaceauto Eth0iface Eth0 inet DHCP to set static IP is as follows: 1) Edit/etc/network/interfaces1.1) block DHCP line # The primary network Interfaceauto eth0#iface eth0 i NET dhcp1.2) Add parameters related to static IP # The primary network interfaceiface eth0 inet staticaddress 192.168.0.10netmask 255.255.255.0gateway 192.168.0.12) Edit/etc/resolv.conf, set Dnsnameserver 202.96.134.133nameserver 202.106.0.203) Perform the following two commands to enable the new settings $sudo service Network-manager restart//errors may occur </code></pre>
-
The last step is most likely to have a problem
first: After the command runs successfully: Display wire network:device not manage
on network manager , you need to modify sudo vi/etc/networkmanager/networkmanager.conf
There will be a section of Managed=false
, Change false to True
The second kind: $sudo service network-manager restart
it is this command error, this time to confirm Ip,gateway,netmask and other writing format there is no error, for example 192.168.001.000
, this is best changed to192.168.1.0
The third type: temporary personal not found
Ubuntu Set fixed Ip,network-manager cannot save fixed IP solution