Nic problems caused by VMware Virtual machine Cloning Linux system

Source: Internet
Author: User

1. Manually configure the static NIC address does not take effect
2. The NIC name becomes ETH1
[email protected] network-scripts]# ls |grep ifcfg
Ifcfg-eth0
Ifcfg-lo
[Email protected] network-scripts]# ifconfig
eth1 Link encap:ethernet HWaddr 00:0c:29:3a:8b:02
inet addr:192.168.1.134 bcast:192.168.1.255 mask:255.255.255.0
Inet6 ADDR:FE80::20C:29FF:FE3A:8B02/64 Scope:link
Up broadcast RUNNING multicast mtu:1500 metric:1
RX packets:5154 errors:0 dropped:0 overruns:0 frame:0
TX packets:299 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:529420 (517.0 KiB) TX bytes:32319 (31.5 KiB)
Lo Link encap:local Loopback
inet addr:127.0.0.1 mask:255.0.0.0
Inet6 addr::: 1/128 scope:host
Up LOOPBACK RUNNING mtu:16436 metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0  (0.0 b) TX bytes:0 (0.0 b)
[Email protected] network-scripts]# vim Ifcfg-eth0

Device=eth0
Hwaddr=00:0c:29:52:39:18
Type=ethernet
Uuid=d12572cd-6808-4cae-b7b6-5480982206e8
Onboot=yes
Nm_controlled=yes
Bootproto=static
ipaddr=192.168.1.119
netmask=255.255.255.0
gateway=192.168.1.1

After you manually set the static IP address and gateway, save the exit and then restart the network after the error occurs
[Email protected] network-scripts]# service network restart
Shutting down loopback interface: [OK]
Bringing up loopback interface: [OK]
Bringing up interface Eth0:Error:No suitable device found:no device found for connection ' System eth0 '.
[FAILED]
[Email protected] network-scripts]#

English-Chinese Translation
No suitable device Found:no device found for connection ' System eth0 '.
No suitable device found: No device connected system eth0 found.

summarizes the following solutions

Change the ifconfig display of the eth1 Nic named Eth0, and set the static IP address

Edit the/etc/udev/rules.d/70-persistent-net.rules file, the name= "eth0" line configuration commented out or deleted, the name= "eth1" modified to Name= "Eth0", modified as follows:
[Email protected] network-scripts]# Vim/etc/udev/rules.d/70-persistent-net.rules
# This file is automatically generated by the/lib/udev/write_net_rules
# program, run by the Persistent-net-generator.rules rules file.
#
# can modify it, as long as you keep each rule to a single
# line, and change is only the value of the Name= key.
# PCI Device 0x8086:0x100f (e1000)
#SUBSYSTEM = = "NET", action== "Add", drivers== "? *", attr{address}== "00:0c:29:52:39:18", attr{type}== "1", kernel== "eth* ", name=" eth0 "
# PCI Device 0x8086:0x100f (e1000)
subsystem== "NET", action== "Add", drivers== "? *", attr{address}== "00:0c:29:3a:8b:02", attr{type}== "1", kernel== "eth*" , name= "Eth0"

View the following information
[email protected] network-scripts]# ls |grep ifcfg-
Ifcfg-eth0
Ifcfg-lo
[Email protected] network-scripts]# vim Ifcfg-eth0
Device=eth0
Hwaddr=00:0c:29:3a:8b:02
Type=ethernet
Uuid=d12572cd-6808-4cae-b7b6-5480982206e8
Onboot=yes
Nm_controlled=yes
Bootproto=static
ipaddr=192.168.1.119
netmask=255.255.255.0
gateway=192.168.1.1

Restart the network adapter service
[Email protected] network-scripts]# service network restart
Shutting down loopback interface: [OK]
Bringing up loopback interface: [OK]
Bringing up interface eth0:active connection state:activating
Active Connection path:/ORG/FREEDESKTOP/NETWORKMANAGER/ACTIVECONNECTION/2
state:activated
Connection activated
[OK]
[Email protected] network-scripts]# ifconfig
eth1 Link encap:ethernet HWaddr 00:0c:29:3a:8b:02
inet addr:192.168.1.119 bcast:192.168.1.255 mask:255.255.255.0
Inet6 ADDR:FE80::20C:29FF:FE3A:8B02/64 Scope:link
Up broadcast RUNNING multicast mtu:1500 metric:1
RX packets:3833 errors:0 dropped:0 overruns:0 frame:0
TX packets:273 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:380984 (372.0 KiB) TX bytes:45223 (44.1 KiB)
Lo Link encap:local Loopback
inet addr:127.0.0.1 mask:255.0.0.0
Inet6 addr::: 1/128 scope:host
Up LOOPBACK RUNNING mtu:16436 metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0  (0.0 b) TX bytes:0 (0.0 b)

Nic problems caused by VMware Virtual machine Cloning Linux system

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.