Centos 6.4 minimal static IP configuration

Source: Internet
Author: User

Centos 6.4 minimal static IP configuration linuxcentos network configuration 1. Set static IP and DNS Shell code vi/etc/sysconfig/network-scripts/ifcfg-eth0 DEVICE = "eth0" BOOTPROTO = "static" HWADDR =" 00: 0C: 29: 86: 3D: 16 "Listen 6init =" yes "NM_CONTROLLED =" yes "ONBOOT =" yes "TYPE =" Ethernet "UUID =" dcf18d86-45ea-4b5c-9627-e75b19b3b6e7 "IPADDR = 192.168.1.88 NETMAST = 255.255.255.0 DNS1 = 61.139.2.69 2. Gateway settings add the Shell code to the last line of the file vi/etc/sysconfig/network: GATEWAY = 192.168.1.1 3. network command Shell code ifdown eth0 // disable network ifconfig eth0 down // disable network ifup eth0 // enable network ifconfig eth0 up // enable network service network start // start network service network stop // stop the network service network restart // restart the network service network status // view the network service status ifconfig-a // view the parameters of all NICs

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.