Virtual machine Cloning settings fixed IP eth0 No service network restart failed

Source: Internet
Author: User

The preface is important:

1) If you seem to have a lot of Internet settings fixed IP data, still no success;

2) If your virtual machine is cloned, if you restart the network error: Bringing up interface Eth0:Error:No suitable device found:no device found for connection ' Syste M eth0 '.

3) If you don't have eth0, then you're probably in the right place.
Resolution: 1) Set up a fixed ip,2) cloned virtual machine Restart Network Service restart error

Steps:

1. Ifconfig-a View your network configuration information, you find no eth0

eth2 Link encap:ethernet HWaddr 00:0c:29:76:85:48
inet addr:192.168.137.100 bcast:192.168.137.255 mask:255.255.255.0
Inet6 addr:fe80::20c:29ff:fe76:8548/64 Scope:link
Up broadcast RUNNING multicast mtu:1500 metric:1
RX packets:9 errors:0 dropped:0 overruns:0 frame:0
TX packets:74 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:2798 (2.7 KiB) TX bytes:5724 (5.5 KiB)

eth3 Link encap:ethernet HWaddr 00:0c:29:76:85:3e
Inet6 addr:fe80::20c:29ff:fe76:853e/64 Scope:link
Up broadcast RUNNING multicast mtu:1500 metric:1
RX packets:688 errors:0 dropped:0 overruns:0 frame:0
TX packets:407 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:215826 (210.7 KiB) TX bytes:137610 (134.3 KiB)

2.Cat/etc/udev/rules.d/70-persistent-net.rules here contains some information about your ifcfg-eth* file, which displays the following information

subsystem== "NET", action== "Add", drivers== "? *", attr{address}== "00:0c:29:b4:00:4f", attr{type}== "1", kernel== "eth*", Name="Eth0 "

# PCI Device 0x8086:0x100f (e1000)

subsystem== "NET", action== "Add", drivers== "? *", attr{address}== "00:0c:29:b4:00:59", attr{type}== "1", kernel== "eth*", Name="eth1 "

# PCI Device 0x8086:0x100f (e1000)

subsystem== "NET", action== "Add", drivers== "? *", attr{address}== "00:0c:29:76:85:48", attr{type}== "1", kernel== "eth*", Name="Eth2 "

# PCI Device 0x8086:0x100f (e1000)

subsystem== "NET", action== "Add", drivers== "? *", attr{address}== "00:0c:29:76:85:3e", attr{type}== "1", kernel== "eth*", Name="Eth3 "

3.vim/etc/sysconfig/network-scripts

Then ll-a command to see the eth* * Number represents the number, because it is cloned, so there are Eth0,vim Ifcfg-eth0, if you know the meaning of Ifcfg-eth0 content to check, online full street, the content of Vim opened as follows

device= "eth0" needs to be changed
bootproto= "Static"
ipaddr=192.168.137.100
netmask=255.255.255.0
hwaddr= "00:0c:29:76:85:48" here for the above attr{address} need to change
ipv6init= "No"
nm_controlled= "Yes"
onboot= "Yes"
type= "Ethernet"
#UUID = "3d52ccab-7580-4c0c-8758-3c04e739b0a0"
Because you only eth2, so need to change eth0 to eth2, copy eth0 file to get eth2, under the same path CP ifcfg-eth0 ifcfg-eth2, edit ifcfg-eth2, eth0 to Eth2,hwaddr the basis for the content:

Cat/etc/udev/rules.d/70-persistent-net.rules

After saving the modified Content service network Restart, you should find no error, all the way to the OK prompt, restart the virtual machine discovery to see the IP discovery succeeded.

Note: can have not write the wrong command, time is too hasty, no check, please understanding, understanding meaning is the key, QQ 1195748675 I Q

Virtual machine Cloning settings fixed IP eth0 No service network restart failed

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.