In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-27 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces the solution of not seeing eth0 in linux. It is very detailed and has a certain reference value. Friends who are interested must finish it!
Linux does not see the solution to eth0: 1. Use the command "ifconfig eth0 192.168.1.x" to set the IP;2 of eth0, and change the adapter type in "vSphere Client".
This article operating environment: linux5.9.8 system, G3 computer.
Linux system can not find the solution of eth0 device
I. description of the problem:
The Linux virtual machine ifconfig command under VMware vSphere Client cannot find the eth0 device, and there are only ifcfg-lo files, not ifcfg-eth0, in / etc/sysconfig/network-scripts/.
Second, there may be two reasons:
First, a simple ifcfg-eth0 file is lost or eth0 becomes eth x (which can be viewed through the ifconfig-a command), through which the eth0 network card device is automatically enabled when Linux starts.
Second, the mismatch between the network adapter and the old version of Linux results in
Third, for the first reason, the temporary solution:
The IP of eth0 can be set normally by using the command ifconfig eth0 192.168.1.x, which is only a temporary treatment and fails after the system is rebooted. / Note: running this command on my computer shows that the device cannot be found.
Permanent solution:
1. Create a new ifcfg-eth0 file in the / etc/sysconfig/network-scripts/ directory
2. Set ifcfg-eth0 's DEVICE, BOOTPROTO, ONBOOT, IPADDR, GATEWAY, NETMASK, NETWORK, NAME and so on correctly, such as:
DEVICE=eth0 # physical device name
BOOTPROTO=static # indicates static IP, while setting it to DHCP indicates dynamic acquisition.
IPADDR=192.168.1.x # IP address
NETMASK=255.255.255.0 # Subnet Mask
GATEWAY=192.168.1.1 # Gateway address
ONBOOT=yes # is automatically enabled at startup
Fourth, the solution to the second reason:
Add an old version of the network adapter to match your current Linux system, such as E1000
Method: change the adapter type in vSphere Client
Select virtual machine in VMware vSphere Client client-edit virtual machine settings, then add-network adapter, select E1000 type
Through the vSphere Client client, we add network adapter 2 (adapter type is E1000), then delete network adapter 1 and restart the server.
After reboot, under / etc/sysconfig/network-scripts/, you will see two configuration files: ifcfg-eth0 and ifcfg-eth0.bak. The system automatically generates a new configuration file and renames the original configuration file.
The above is all the content of the article "the solution to eth0 can not be seen in linux". Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.