At the beginning of your study, you know Linux

Source: Internet
Author: User
Tags get ip

I. System installation

Select Install Centos linux7;==> after entering the system installation interface

Select language (Chinese) = = Select the installation location

1. Configuring partitions

/boot =200m SWAP = twice times of memory all the remaining space is given/

Confirm partition = = "Accept Changes"

2. Set root password, weak password input two times = = "complete



Two. Configure the IP address

1. Auto Get IP Address = = "Dhclient

2. Manually set the IP address (static IP) = =

VI/ETC/SYSCONFIG/NETWORK-SCRIPTS/IFCFG-ENS1//configure NIC ens* (NIC name)

DEVICE=ENS1//Module name

Bootproto=static//static IP (dynamic IP is DHCP)

Onboot=yes//boot-up NIC

ipaddr=192.168.1.2//Set IP address

netmask=255.255.255.0//Subnet mask

gateway=192.168.1.1//Gateway

dns1=4.4.4.4//Domain name resolution//above must have


* Partial Interpretation

Type=ethernet #网络接口类型

Ipv6init=yes #是否支持IPV6

Edit End Press ESC to enter WQ save exit

3. Restart the network card: Systemctl Restart Network




At the beginning of your study, you know Linux

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.