CentOS IP connection network implementation process diagram

CentOS IP connection network implementation process diagram

1. Log in to the system and enter the directory: cd /etc/sysconfig/network-scripts, as shown below:

Found ifcfg-ens33 (file)

Step 2: Use the vi editor to open the ifcfg-ens33 file. Use the command: vi ifcfg-ens33

First modify the two places pointed by the arrows

1. BOOTPROTO=static

2.ONBOOT=YES

Note: If you want to enter data, be sure to check whether there is an "insert" icon in the lower left corner of the page. If not, you can enter the letter i on the keyboard to indicate modification mode.

Then enter the IP address, subnet, gateway, and DNS, as shown below:

As for how to divide IP addresses, you can click [Settings] - [Virtual Network Editor] of the virtual machine, select VMnet8 - NET mode, and then plan the subnet yourself. My network segment is set to 1, and the subnet is: 192.168.1.0. My real host occupies an IP of 192.168.1.1, so my gateway should be set to: 192.168.1.2, and then the host can be set to: 192.168.1.3 or 1.4, etc. I set 192.168.1.4 here

After editing, click the ESC key on the keyboard to exit editing, then enter the character: English colon, the colon will appear in the lower left corner of the interface, then enter wq to save and confirm. After modifying, remember to restart the network card.

The command to restart the network card is: service network restart

Restart and display OK

The above is the full content of this article. I hope it will be helpful for everyone’s study. I also hope that everyone will support 123WORDPRESS.COM.

You may also be interested in:
  • Centos8 bridge static IP configuration method in VMware virtual machine
  • Centos8 (minimum installation) tutorial on how to install Python3.8+pip
  • Detailed explanation of setting static ip network card for CentOS 8 VMware virtual machine to access the Internet
  • Install CentOS7 in VMware (set static IP address) and install mySql database through docker container (super detailed tutorial)
  • Install zip and unzip command functions under Linux and CentOS (server)
  • Detailed explanation of how to configure static IP in Centos8
  • Implementation of IP address configuration in Centos7.5
  • How to set static IP in centOS7 bridge mode

<<:  The use of v-model in vue3 components and in-depth explanation

>>:  Detailed explanation of data types and schema optimization in MySQL

Recommend

A brief analysis of adding listener events when value changes in html input

The effect to be achieved In many cases, we will ...

MYSQL master-slave replication knowledge points summary

An optimization solution when a single MYSQL serv...

Detailed explanation of using top command to analyze Linux system performance

Introduction to Linux top command The top command...

WeChat Mini Programs are shared globally via uni-app

In actual use, it is often necessary to share the...

Dissecting the advantages of class over id when annotating HTML elements

There are very complex HTML structures in web pag...

Deploy Nginx+Flask+Mongo application using Docker

Nginx is used as the server, Mongo is used as the...

Why I recommend Nginx as a backend server proxy (reason analysis)

1. Introduction Our real servers should not be di...

Realize three-level linkage of year, month and day based on JavaScript

This article shares the specific code for JavaScr...

JQuery implements hiding and displaying animation effects

This article shares the specific code of JQuery t...

How to make spaces have the same width in IE and FF?

body{font-size:12px; font-family:"宋体";}...

Solution to BT Baota Panel php7.3 and php7.4 not supporting ZipArchive

The solution to the problem that the PHP7.3 versi...

MySQL 8.0.15 installation and configuration graphic tutorial

This article records the installation and configu...

A brief discussion on the problem of forgotten mysql password and login error

If you forget your MySQL login password, the solu...

Forever+nginx deployment method example of Node site

I recently bought the cheapest Tencent cloud serv...