Linux solution device eth0 does not seem to be present

Source: Internet
Author: User

Clone the system, restart the network card, error!

The cloned system, first of all its physical address is the same, so make a physical address to Mr. The first step is to delete the/etc/udev/rules.d/70-persistent-net.rules file#rm-rf/etc/udev/rules.d/70-persistent-net.rulesStep Two: Restart the system#rebootwhere is the generated physical address stored?
in here:[Email protected] ~]# cat/etc/udev/rules.d/70-persistent-net.rulesthis time is not enough, need to modify the IP address and MAC address in the network IP configuration file and 70-persistent-net.rulesmac consistent, modify the device name, also must be consistent:


[email protected] rules.d]# cat 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:3d:bd:b4", attr{type}== "1", kernel== "eth*", name= "eth1"
[Email protected] rules.d]# Vi/etc/sysconfig/network-scripts/ifcfg-eth0

Step three: Edit MAC Address

[email protected]Linux ~]# vi/etc/sysconfig/network-scripts/ifcfg-eth0

device= "eth1"
bootproto= "Static"
hwaddr= " 00:0c:29:3d:bd:b4 "
nm_controlled= "yes"
onboot= "yes"
type= "Ethernet"
uuid= " C3eedb2c-5894-4a7e-8f3e-8575667d44b3 "
ipaddr= 192.168.10.32
prefix=24
gateway=192.168.10.2
dns1=8.8.8.8

Fourth step: Restart the NIC

#service Network Restart

Linux solution device eth0 does not seem to be present

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.