Clone centos and SET network connection

Source: Internet
Author: User

Whether it is hyper-V or VMWare,ClonedCentosLinux network cannot be connected

Ifconfig cannot see eth0. the following error occurs when you restart the NIC:
Bringing up interface eth0: Device eth0 does not seem to be present, delaying initialization. [failed]

650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M01/4D/0F/wKioL1RKBuygTSmdAACmDG3wito419.jpg "Title =" 2582814213314966622.jpg" alt = "wkiol1rkbuygtsmdaacmdg3wito419.jpg"/>


Solution:

First, open/etc/udev/rules. d/70-persistent-net.rules, as shown in the following example:

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

650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M00/4D/0F/wKioL1RKBiaiQrk3AAFO8LJ2gTg389.jpg "Title =" qq20151124154820.jpg "alt =" wkiol1rkbiaiqrk3aafo8lj2gtg389.jpg "/>

# This file was automatically generated by the/lib/udev/write_net_rules
# Program, run by the persistent-net-generator.rules rules file.
#
# You can modify it, as long as you keep each rule on a single
# Line, and change only the value of the name = key.
# Net device ()
Subsystem = "Net", Action = "add", drivers = "? * ", ATTR {address} =" 00: 15: 5D: EE: 4d: 03 ", ATTR {type} =" 1 ", kernel = "ETH *", name = "eth0"
# Net device ()
Subsystem = "Net", Action = "add", drivers = "? * ", ATTR {address} =" 00: 15: 5D: EE: 4d: 04 ", ATTR {type} =" 1 ", kernel = "ETH *", name = "eth1"

Record the MAC address of the eth1 NIC: 00: 15: 5D: EE: 4d: 04

Next, open the/etc/sysconfig/network-scripts/ifcfg-eth0

VI/etc/sysconfig/network-scripts/ifcfg-eth0

Change device = "eth0" to device = "eth1 ",
Change hwaddr = "00: 15: 5D: EE: 4d: 03" to the MAC address hwaddr = "00: 15: 5D: EE: 4d: 04"

Finally, restart the network.

Service Network restart

650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M00/4D/0E/wKiom1RKBgOi-6ylAAImSn-JPBo621.jpg "Title =" qq20151124155121.jpg "alt =" wKiom1RKBgOi-6ylAAImSn-JPBo621.jpg "/>

This article from the "more unfamiliar" blog, please be sure to keep this source http://vingwei.blog.51cto.com/5706568/1567603

Clone centos and SET network connection

Related Article

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.