Modify the IP address of the virtual machine: Enter the following interface and modify the subnet IP directly. View the gateway: Linux network environment configuration: The first method (automatic acquisition): Note: After logging in, use the interface to set up automatic IP acquisition Let’s go into the settings first: Check Automatically connect and click Apply. After that, each time you start the system, you can automatically connect to the network. Features: Linux will automatically obtain an IP address after startup. The disadvantage is that the IP address automatically obtained each time may be different. This method is not suitable for servers because the IP address of our server needs to be fixed in real time. The second method: (specify the fixed top ip) illustrate: Directly modify the configuration file to specify the IP address and connect to the external network (recommended by programmers). Edit vim /etc/sysconfig/network-scripts/ifcfg-eth0 (for centos7 and above, vim /etc/sysconfig/network-scripts/ifcfg-ens33) Requirement: Change the IP to static, IP address is 192.168.184.130 (This part is because I deleted the ens33 file by mistake, and I can't do anything else, so I just took a screenshot from Han Shunping's video and posted it here...) After that, you must restart the network service: service network restart, or reboot the machine Summarize The above is the tutorial on how to modify the IP address of a Linux virtual machine, check the gateway, and configure the network environment. I hope it will be helpful to you. If you have any questions, please leave me a message and I will reply to you in time. I would also like to thank everyone for their support of the 123WORDPRESS.COM website! You may also be interested in:
|
<<: javascript input image upload and preview, FileReader preview image
>>: Detailed explanation of MLSQL compile-time permission control example
Redis is an open source NoSQL database written in...
As users become more privacy-conscious and take m...
Container auto-start Docker provides a restart po...
Table of contents Preface 【undo log】 【redo log】 【...
Demand background Part of the data in the busines...
To put it simply, website construction is about &q...
selinux ( Security-Enhanced Linux) is a Linux ker...
Method 1: var a = [1,2,3]; var b=[4,5] a = a.conc...
1. Compile proto Create a new proto folder under ...
environment: 1. CentOS6.5 X64 2.mysql-5.6.34-linu...
Table of contents Diffing Algorithm Layer-by-laye...
1. Scenario description: Our environment uses mic...
The MySQL query result row field splicing can be ...
Due to the limitation of CPU permissions, communi...
Table of contents 1. Preparation: 2. Source code ...