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.