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:
|
<<: The use of v-model in vue3 components and in-depth explanation
>>: Detailed explanation of data types and schema optimization in MySQL
Preface With the crazy speculation of virtual cur...
1. Download 1. Click the latest download from the...
After installing MySQL, you will find that the ro...
When installing in MySQL 8.0.16, some errors may ...
Today, after the game was restarted, I found that...
Form provides two ways of data transmission - get ...
Table of contents MySQL's current_timestamp p...
Copy code The code is as follows: html { overflow...
swarm three virtual machines 132,133,134 1. Initi...
In fact, we wonder every day when IE6 will really...
Learning CSS3 is more about getting familiar with...
Preface In order to reflect the difference betwee...
This article shares the specific code of vue+echa...
Table of contents 1. Install dependencies 2. Conf...
“How to make a website look high-end? Or more des...