First, open the virtual machine Open xshell5 to connect to the virtual machine (more convenient, the Linux ip is set by default here, but it is not fixed) Enter ifconfig to view network management related configuration information: Then enter the vi /etc/sysconfig/network-scripts/ifcfg-ens33 command. Modify the network card configuration file Press i to edit. Make the changes below. Do not delete the original configuration, just modify it as follows. Just add the configuration items that are not available. After opening it, you can see that the default configuration is DHCP, and then onboot=no, which means it will not start when the system starts. We need to modify this configuration Then create two values ip and subnet mask below and add them to any position in the above picture. IPADDR=192.168.0.116 (fill in your IP address) #IP address NETMASK=255.255.255.0 (fill in your mask value) #Mask value GATEWAY=192.168.0.1 (default gateway) DNS1=8.8.8.8 (using Google's default DNS server) If the above 4 items are not available, add them. If they are available, modify them (configure as shown above, and delete other parameters, they are useless) Esc to exit editing, :wq to save and exit, reboot to restart After restarting, enter ifconfig to check whether the IP modification is successful. The above is a detailed explanation of how to set up a fixed IP in Linux. 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:
|
<<: How to detect if the current browser is a headless browser with JavaScript
>>: Detailed explanation of MySQL database (based on Ubuntu 14.0.4 LTS 64 bit)
The default ssh remote port in Linux is 22. Somet...
After MySQL was upgraded to version 5.7, its secu...
This article shares with you a book flipping effe...
Table of contents Preface Introduction to Dockerf...
Detailed explanation of creating MySql scheduled ...
The steps are as follows 1. Create a docker group...
Anyone who has read my articles recently knows th...
How to set the position of the block element in t...
IE8 new feature Web Slices (Web Slices) Microsoft...
Basic Introduction to Floating In the standard do...
The main contents of this article are as follows:...
Table of contents How to install and configure To...
01. Command Overview The seq command is used to g...
Sometimes our pages will need some prompt boxes o...
Disclaimer: This password reset method can direct...