Linux Networking Notes

Source: Internet
Author: User

Have always thought that their own Linux also said the past, in fact, has not kept up with the ever-changing application needs.

There are no ready-made documents to look at, too many mistakes. However, after years of accumulation, it is possible to organize an accurate document.

Native 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

Explain, this is a/etc/network/interfaces configuration of a network card settings, many documents are not less the gateway is less DNS, is not configured Windows IP?

# DHCP interface
Auto Eth1
Iface eth1 inet DHCP

Automatically assign IP, nothing to say.

Some systems have DNS settings in another place,/etc/resolv.conf.

This file will be reset in my system. A lot of solutions to say turn off NetworkManager? It's not a rip-off. There's a problem with that, pay Paul.

Some will be better, change/etc/sysconfig/network-scripts/,

It seems to be a good use for CentOS.

There is also a file modified also can be, is in/etc/networkmanager/networkmanager.conf comment out dns=dnsmasq this line.

It can be seen that these approaches are more exclusive of new components, contrary to the spirit of free and open Internet.

In fact, just look at the information returned to know that Ubuntu system is the use of resolvconf this new tool to configure DNS, and this tool is not recommended to call directly,

A more canonical operation is recommended, which is to use a new field dns-nameservers in the interfaces file, which implicitly automatically invokes the new tool to configure DNS.

Of course, it is not a new tool, the 14.04 version will have.

Linux Networking Notes

Related Article

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.