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
Table of contents Preface cause Phenomenon why? A...
This article introduces the CSS Sticky Footer imp...
Copy code The code is as follows: <frameset co...
This article example shares the specific code for...
Table of contents Install Basic configuration of ...
This article shares simple HTML and music player ...
First, your container must be running You can vie...
This article example shares the specific code of ...
Table of contents 01. Listener watch (1) Function...
This article example shares the specific code for...
The default storage directory of mysql is /var/li...
Preface WeChat Mini Programs provide new open cap...
This is a test of the interviewee's basic kno...
Whenever I have any unclear questions, I come to ...
The function to be implemented today is the follo...