Ubuntu Set fixed Ip,network-manager cannot save fixed IP solution

Source: Internet
Author: User

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:
    1. 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> 
    2. 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

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.