PrefaceEnvironment: Create a Linux virtual machine on VMware Workstation Problem: When checking the IP address through ifconfig on Linux, the IP address cannot be displayed When you enter ifconfig to view, the IP address is not displayed in the middle, as shown below The network icon in the lower right corner is found to be disconnected, and it is determined that the problem is caused by the virtual network card not being connected. Solution:Step 1Directly click the icon to connect manually, as shown below Enter ifconfig again to view the IP address, the problem is solved; but shut down the virtual machine, and then open it again, the network is still disconnected Step 2Enter the following command in the command box, the result is as shown below vi /etc/sysconfig/network-scripts/ifcfg-ens33 (Note: ens33 is the name of the network card) Click i to enter the file editing state (Note: this needs to be done under the administrator account root); Change ONBOOT=no to ONBOOT=yes (Note: ONBOOT indicates whether to activate the network card when the system starts); Click Esc, enter: wq and press Enter to save and exit; Enter the command service network restart (Note: restart service command), as shown below When the computer is shut down and restarted again, the problem is solved. The final result is as shown below. Reference: Linux system checks the IP address, does not display the IP address or only displays 127.0.0.1_Call me Lu Xiaobu-CSDN blog_linux checks the IP You may also be interested in:
|
<<: Pure CSS free implementation code for websites to have dark mode switching function
>>: HTML/CSS Basics - Several precautions in HTML code writing (must read)
Overview Nginx can use variables to simplify conf...
Recently, I want to build a hadoop test cluster i...
Interviewer: Have you read the source code of Vue...
Why doesn't your height:100% work? This knowl...
1. Server setup The remote repository is actually...
Friends who are doing development, especially tho...
The bash history command in Linux system helps to...
This article introduces the sample code of CSS3 c...
Overview Let's summarize some SQL statements ...
Table of contents 1. View the storage engine of t...
Case 1: Last submission and no push Execute the f...
Because of network isolation, MySQL cannot be ins...
How to Install GRUB for Linux Server You cannot u...
Two problems that are easy to encounter when inst...
The default submission method of html is get inste...