In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article introduces the knowledge of "VMware cloning Linux tips can not find how to solve eth0", in the actual case of the operation process, many people will encounter such a dilemma, then let the editor lead you to learn how to deal with these situations! I hope you can read it carefully and be able to achieve something!
What happened:
When you use the ifconfig command to modify the ip address of the virtual machine, it prompts eth0 that it cannot be found. It is useless to modify the configuration file / etc/sysconfig/network-scripts/ifcfg-eth0 directly and restart the system.
Using ifconfig to check, I found that there is no eth0, only eth3. So it should be time to create a virtual machine and recreate a network card. When the system finds that the network card is not unified with the system configuration, a new network interface is recreated.
Solution: configure eth0 back
Modify / etc/udev/rules.d/70-persistent-net.rules file
Comment PCI device 0x1022:0x2000 (vmxnet) with #, change the eth3 in PCI device 0x1022:0x2000 (vmxnet) to eth0, remember the MAC address ATTR {address} = = "00:0c:29:ab:c5:2c", and exit the save.
Modify the Nic configuration file / etc/sysconfig/network-scripts/ifcfg-eth0
Change the ip address: IPADDR=192.168.0.102 (because I only use the host-only link method, so it is static ip), modify the MAC address HWADDR=00:0C:29:AB:C5:2c, exit save.
Modify the hostname HOSTNAME=hadoop2 in the / etc/sysconfig/network file
Execute the command: service network restart, and you will be prompted that eth0 takes effect.
Bringing up interface eth0: Active connection state: activating
Active connection path: / org/freedesktop/NetworkManager/ActiveConnection/1
State: activated
Connection activated
It's better to restart the reboot.
[root@hadoop2 ~] # ifconfig
Eth0 Link encap:Ethernet HWaddr 00:0C:29:AB:C5:2C
Inet addr:192.168.0.102 Bcast:192.168.0.255 Mask:255.255.255.0
Inet6 addr: fe80::20c:29ff:feab:c52c/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:177 errors:0 dropped:0 overruns:0 frame:0
TX packets:61 errors:0 dropped:0 overruns:0 carrier:0
Collisions:0 txqueuelen:1000
RX bytes:17634 (17.2 KiB) TX bytes:7611 (7.4 KiB)
Interrupt:19 Base address:0x2024
This is the end of the content of "VMware cloning Linux hint how to solve the problem if you can't find eth0". Thank you for your reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!
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.