Key Points of ubuntu 12.04 lts Network Configuration

Source: Internet
Author: User

There are two ways to configure the network. These two methods conflict with each other. We recommend that you use network-manager for the desktop system. The server version is configured through the file/etc/Network/interfaces.

Network-Manager configuration method:

    1. Make sure that the/etc/Network/interfaces file contains only the content of the local loop, for example

      • Auto loiface lo Inet loopback
    2. Make sure that network-manager is enabled. Open the configuration file/etc/NetworkManager. conf. The content of the configuration file is:
      • [Main] plugins = ifupdown, keyfiledns = dnsmasq [ifupdown] managed = true # True indicates that the agent is enabled, and false indicates that the agent is not enabled.
    3. After completing the last two steps, restart and press the shortcut key Alt + F2. Enter the command network connection to open the network connection Configuration window and configure the network as needed.

/Etc/Network/interfaces ):
  1. open the file/etc/Network/interfaces, make sure the network manager is not enabled (see the preceding figure), and configure the following content:

    •  # The loopback network interface (configure the loopback interface) auto lo # activate the lo interface iface lo Inet loopback # configure the lo interface as the loopback interface # the primary network interface (configure the main network interface) auto eth0 # enable the eth0 interface iface eth0 Inet static # configure the eth0 interface as the static IP Address 10.16.3.99 netmask 255.255.255.0 network 10.16.3.0 broadcast 10.16.3.255 gateway 10.16.3.1 
  2. Configure the DNS server, open the file/etc/resolv. conf, and set the content:
    • Nameserver 127.0.0.1

It is a pain to use this editor to arrange simple indentation formats...

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.