Setting a static IP address in a Linux system

Source: Internet
Author: User

Baidu for a long time, or this is more reliable

Http://jingyan.baidu.com/article/455a99508be7cda167277865.html

I love you,-----------------------------------------------------------------------------.

Let me mark, please.

1, first in:
Input in Terminal: Vi/etc/sysconfig/network-scripts/ifcfg-eth0

2, start editing, fill in the IP address, subnet mask, gateway, DNS and so on. Where "the information inside the red box" is necessary.

When you are finished editing, save the exit.

3, restart the network services. Service network restart or/etc/init.d/network restart

4, Ping the gateway, ping the outside network for testing. Can ping to indicate that the network is normal.

Setting a static IP address in a Linux system

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.