Debian/ubuntu system, IP DNS MTU configuration

Source: Internet
Author: User
Tags nameserver

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

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.