Linux networking notes, linux networking

Source: Internet
Author: User

Linux networking notes, linux networking

I always thought that what I said about linux was not enough in fact to keep up with the ever-changing needs of applications.

There are too many errors in the existing documents. After all, however, after years of accumulation, it is still possible to organize an accurate document.

Local IP settings:

# Static interface
Auto eth0
Iface eth0 inet static
Address 192.168.127.11
Netmask 255.255.255.0
Network 192.168.127.0
Broadcast 192.168.127.255
Gateway 192.168.127.2
Dns-nameservers 192.168.127.2

Note: This is a NIC setting configured for/etc/network/interfaces. Many documents do not have a gateway or a dns missing. Have you ever configured a windows ip address?

# Dhcp interface
Auto eth1
Iface eth1 inet dhcp

Automatically assigned ip addresses.

In some systems, dns is set in another place,/etc/resolv. conf.

This file will be reset in my system. Many solutions are to disable NetworkManager? This is not a question. If the problem is solved in this way, the east wall will be removed to make up the west wall.

Some will be better. Change/etc/sysconfig/network-scripts /,

It seems to be useful on centos.

Another file can be modified. in/etc/NetworkManager. conf, comment out the line dns = dnsmasq.

As you can see, these methods all reject new components and are contrary to the free and open Internet spirit.

In fact, you can check the returned information. The ubuntu system uses the resolvconf tool to configure dns, which is not recommended to be called directly,

We recommend that you use a new field dns-nameservers In the interfaces file, which automatically calls this new tool to configure dns.

Of course it is not a new tool, and version 14.04 will be available.

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.