[Linux]-CentOS IP Setup method

Source: Internet
Author: User

How to set up the CentOS 7 IP:

1. Manually set the IP method

A) Run the command, CD to directory:

cd/etc/sysconfig/network-scripts/

b) Run command: ls-l

Find something similar to this file name file: Ifcfg-enp0s3

c) Run command: VI ifcfg-enp0s3

Edit content, such as:

Type=Ethernetbootproto=Nonedefroute=Yesipv4_failure_fatal=Noipv6init=yesipv6_autoconf=Yesipv6_defroute=Yesipv6_failure_fatal=NoNAME=Enp0s3uuid=52884a0b-649e-4438-95b2-0d712d97c59bonboot=yesnm_controlled=yesIPADDR0=192.168.1.35PREFIX0= atGATEWAY0=192.168.1.1HWADDR= ,:xx: -: in: 6f:b8ipv6_peerdns=yesipv6_peerroutes=yes

2. Use the Nmtui tool to set the IP

If Nmtui is not installed, you can install it using the command: Yum install Networkmanager-tui

The use of specific tools, can be parameters here:

Http://linux.cn/article-3977-1.html

Http://www.it165.net/os/html/201409/9414.html

[Linux]-CentOS IP Setup method

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.