Network IP configuration for CentOS 6.6 New Installation system

Source: Internet
Author: User
Tags nameserver

Instance Environment

    • Virtual machines: VMware 11.1.0

    • System: CentOS 6.6

    1. # ifconfig-a << View the status of all network cards

2. # vi/etc/sysconfig/network-scripts/ifcfg-eth0 << Edit NIC configuration file

Press the I key to start the configuration

What to modify :

Identification 5 Onboot=no modified to Onboot=yes

# is booting with the system

Identification 7 BOOTPROTO=DHCP modified to Bootproto=static

# IP Address allocation method, whether the DHCP server is automatically assigned or manually configured

What to add :

ipaddr=192.168.1.108 << IP
netmask=255.255.255.0 << Subnet Masks
gateway=192.168.1.1 << Gateways

dns1=202.96.128.166

dns2=202.96.134.133

DNS configuration is added according to local network provider

3. Exit Save:

① Press the ESC key

② Input: Wq return

4. Restart Network Service: # Service Network restart

DNS can also be configured in other files

# vi/etc/resolv.conf

Join

NameServer 202.96.128.166

NameServer 202.96.134.133

Exit Save and restart the network service. The actual/etc/resolv.conf is automatically called before the NIC configuration file DNS configuration information

Network IP configuration for CentOS 6.6 New Installation system

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.