Check out a lot of information, concluded under:
Use switch user: su root, and then enter the password
Network card configuration (note: ifcfg-eth0,70-persistent-net.rules Network Connections and configuration as to three MAC Address)
vim /etc/sysconfig/network-scripts/ifcfg-eth0
####################################
DEVICE="eth0"
BOOTPROTO="static"
HWADDR="00:50:56:33:48:99"
IPV6INIT="no"
NM_CONTROLLED="yes"
ONBOOT="yes"
TYPE="Ethernet"
UUID="366c5030-b1bd-4af5-9f37-847c37f0cd38"
IPADDR=192.168.1.103
NETMASK=255.255.255.0
GETWAY=192.168.1.1
DNS1=8.8.8.8
vim /etc/sysconfig/network
####################################
NETWORKING=yes
HOSTNAME=localhost.localdemain
GATEWAY=192.168.1.1
vim /etc/resolv.conf
####################################
nameserver 8.8.8.8
Restart card
service network restart
解决 Error:No suitable device found: no device found for connection "System eth0"
Reproduced
Solve problems using clone VMware virtual machine can not be out of the new networking
One. background
We installed a virtual machine, I want to do a distributed cluster, want to simulate several servers, then wanted to direct copying already have installed a virtual machine, so relatively easy, do not repeat the install and configure the JAVA virtual machine environment, save to do the same thing, then copied directly, so before you configure the JAVA environment have been.
Issues relating to the
Then I copied a good virtual machine, start landing into account (with a username and password before that stage is the same), modify the good IPADDR, and then restart the network card problems?
#service network restart
Problems: Error: No suitable device found: no device found for connection "System eth0" as shown:
#ifup eth0
Appear: eth0: unknown interface: the question No such device, the card will not start problems.
III. To solve the problem
The first step: we click on the Network Adapter Remove to delete the network card interface, as shown:
Step two : then add a new card, it is to click add, this time in front of a table with MAC Address is not the same, as shown in Figure
The third step: restart the virtual machine, and then enter the directory /etc/udev/rules.d/
#cat 70-persistent-net.rules
The information inside our address with MAC Address Network Adapter like, as shown:
Step four: enter / etc / sysconfig / network-scripts / directory
#vi ifcfg-eth0
HWADDR, like the modified MAC Address Network Adapter's address, as shown:
Step five : Restart card, this time can be started normally, as shown:
70-persistent-net.rules not automatically generated, solutions
Not automatically generate 70-persistent-net.rules reason of file:
Replacing linux modify the kernel before ifcfg-eth0 file, replace the kernel, use dhclient not allocate dynamic IP , delete the 70-persistent-net.rules file, restart the system.
In /dev/udev/rules.d not automatically generate the folder 70-persistent-net.rules file.
Solution:
Performed manually / lib / udev / write_net_rules
If the message is:
missing $INTERFACE
Adding variables:
export INTERFACE="eth0"
carried out:
/lib/udev/write_net_rules
If the message is:
missing valid match
Adding variables:
export MATCHADDR="xx:xx:xx:xx:xx:xx" // MAC地址
carried out:
/lib/udev/write_net_rules
In this case /dev/udev/rules.d generates folder 70-persistent-net.rules file.