Linux setup NIC starts and configures static IP

Source: Internet
Author: User

Set the network card to boot, modify the network card configuration file: Vi/etc/sysconfig/network-scripts/ifcfg-eth0

The contents are as follows:

650) this.width=650; "src=" Http://v.apelearn.com/ueditor/php/upload/image/20160227/1456553795296799.png "title=" 1456553795296799.png "alt=" 01.png "style=" border:0px;margin:2px 0px;height:auto; "/>

Set the Onboot to Yes to start the network adapter

Bootproto Setting the static

Set IP, gateway and other parameters

ipaddr=192.168.1.112

netmask=255.255.255.0

gateway=192.168.1.1

dns1=192.168.1.1

dns2=8.8.8.8

After modifying, save, restart Network Service: Service network restart


Linux setup NIC starts and configures static IP

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.