CentOS7.0 network settings and domain name binding

Source: Internet
Author: User
CentOS7.0 is a very new version. many of my friends don't know how to install and configure CentOS7.0, because centos7.0 and earlier versions have greatly improved. Note: Up to now, the latest CentOS7.x version is CentOS7.0. The following describes the specific installation and configuration process of CentOS7.0. after the installation is completed today, I know that centos does not have a visual interface. Enter the logon interface account and enter root

CentOS 7.0 is a very new version. many friends do not know how to install and configure CentOS 7.0, because CentOS has greatly improved with previous versions.

Note: Up to now, the latest version of CentOS 7.x is CentOS 7.0. The following describes the specific installation and configuration process of CentOS 7.0.

After the installation is completed today, I realized that centos does not have a visual interface.

Enter the logon page

Enter the root account and press enter.

Enter the root password set above and press enter.

System logon successful

Set IP address and gateway DNS

Note: After CentOS 7.0 is installed by default, network connections are not automatically enabled!

Cd/etc/sysconfig/network-scripts/# enter the network configuration file directory
Vi ifcfg-eno16777736 # Edit the configuration file and add to modify the following content
HWADDR = 00: 0C: 29: 8D: 24: 73 TYPE = Ethernet BOOTPROTO = static # enable static IP address DEFROUTE = yes PEERDNS = yes PEERROUTES = yes route = no route 6init = yes route 6_autoconf = yes route 6_defroute = yes route 6_peerdns = yes route = no NAME = eno16777736 UUID = ae0965e7-22b9-45aa-8ec9-3f0a20a85d11 ONBOOT = yes # enable automatic network connection IPADDR0 = 192.168.21.128 # set IP address PREFIXO0 = 24 # set subnet mask GATEWAY0 = 192.168.21.2 # set gateway DNS1 = 8.8.8.8 # Set Primary DNS DNS2 = 8.8.4.4 # Set backup DNS: wq! # Save and Exit service network restart # restart the network and ping www.baidu.com # test whether the network is normal

Ip addr # View ip addresses

Set the host name to www
Hostname www # set the host name to www
Vi/etc/hostname # Edit the configuration file
Www # modify localhost. localdomain to www
: Wq! # Save and exit
Vi/etc/hosts # Edit the configuration file
127.0.0.1 localhost www # modify localhost. localdomain to www
: Wq! # Save and exit
Shutdown-r now # restart the 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.