Ubuntu Server network configuration

Source: Internet
Author: User
Tags nameserver

The network parameters of Ubuntu Server configured on Ubuntu Server are stored in the file/etc/network/interfaces. dhcp is used by default. The content is as follows: # The primary network interface auto eth0 iface eth0 inet dhcp settings static IP address method: 1) EDIT vi/etc/network/interfaces 1.1) mask one line of dhcp # The primary network interface auto eth0 # iface eth0 inet dhcp 1.2) add parameters related to static IP # The primary network interface iface eth0 inet static address 192.168.0.10 netmask 255.255.255.0 gateway 192.168.0.1 2) EDIT vi/etc/resolv. conf, set dns nameserver 202.96.134.20.nameserver 202.106.0.20 3) run the following two commands to enable the new settings $ sudo ifdown eth0 $ sudo ifup eth0, restart the network service/etc/init. d/networking restart

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.