1. Configure Add ip:vi/etc/network/interfaces Modify the following:
# The Primary network interface
Auto Eth0
Iface eth0 inet Static
MTU 1410
Address 192.168.1.100
Address2 #添加多个IP地址
Netmask 255.255.255.0
Gateway 192.168.1.1
Save, restart the NIC service networking restart or/etc/init.d/networking restart
2. Modify dns:vi/etc/resolv.conf Add the following content
NameServer 114.114.114.114
nameserver 114.114.115.115
Permanently change DNS (do not restore after reboot):
1) chkconfig NetworkManager off
2) Service NetworkManager stop
Ps:
If you cannot surf the Internet, you must remove System-connections from the/etc/networkmanager/directory or move it to a different directory.
The last execution of/etc/networkmanager/can be connected to the Internet.
This article is from the "high-anti-server sales, bring operation and maintenance" blog, please be sure to keep this source http://kenvik.blog.51cto.com/11000054/1858431
Debian/ubuntu system, IP DNS MTU configuration