How Linux is set up for fixed IP, DNS, etc.

Source: Internet
Author: User

premise: Virtual machines Linux centOS6.6

How Linux sets up fixed IP,DNS, gateways

1 , switch to Root Account Number

2 , #cd /etc/sysconfig/network-scripts into the settings directory of the NIC

3, #vi Cfg-eth0 into the network card configuration file

4, the configuration file is as follows

5, to set

Gateways ( Gatefix) to align with the host's gateway

can set IPADDR Fixed IP

and the DNS is set as needed

6. Restart the Network service after Setup

#service Network Restart or #/etc/init.d/network restart

7, #Telnet www.baidu.com

Test whether the network is healthy

How Linux is set up for fixed IP, DNS, etc.

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.