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
A dynamic clock demo based on Canvas is provided ...
In the Linux system, in addition to various accou...
The process packets with the SYN flag in the RFC7...
Development Background: Recently, I am working on...
Upgrade background: In order to solve the vulnera...
This article describes how to install lamp-php7.0...
Preface: The group by function retrieves the firs...
Download CentOS7 The image I downloaded is CentOS...
By default, the table title is horizontally cente...
This article example shares the specific code of ...
Recently, the Vue project needs to refresh the da...
Original link: https://vien.tech/article/157 Pref...
Table of contents 1. Problem Discovery 2. View de...
Table of contents Business Background Using Techn...
Table of contents Preface 1. The effect is as sho...