CentOS Configuration Fixed IP

Source: Internet
Author: User
1, enter in the terminal: Vi/etc/sysconfig/network-scripts/ifcfg-eth0
2, file configuration as follows, save exit:#描述网卡对应的设备别名, such as Ifcfg-eth0 file it for eth0device=eth0onboot=yestype=ethernet# set the network card to obtain the IP address of the way, The possible options are #static,dhcp or BOOTP, corresponding to the statically specified #ip address, the IP address obtained through the DHCP protocol, the IP address obtained through the BOOTP protocol bootproto=static# the corresponding subnet broadcast address broadcast= 192.168.163.255# the corresponding network card physical address hwaddr=00:0c:29:62:da:8d# if the network card to obtain an IP address is statically specified, this field specifies the IP address of the NIC ipaddr=192.168.163.128# Network mask netmask=255.255.255.0# NIC corresponding network address network=192.168.163.0# Gateway gateway=192.168.163.2#dnsdns1=192.168.163.2
3. Restart the Network service: Service Network Restart

From for notes (Wiz)

CentOS Configuration Fixed IP

Related Article

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.