Centos VMware post-clone network configuration

Source: Internet
Author: User

The first step: the production of new network card address, start the system.

The second step: Modify the hostname (note: Here according to personal needs, do not modify the line, here I am used to build a cluster, modify the hostname to make a distinction) Execute command: Vi/etc/sysconfig/network Modify the value of hostname hostname Step three: Execute command: vi/etc/ Udev/rules.d/70-persistent-net.rules Note: ① comment out the first network card driver Red label Place ② or delete the configuration information, Red label Place # PCI device 0x1022:0x2000 (Pcnet32)
subsystem== "NET", action== "Add", drivers== "? *", attr{address}== "00:0c:29:95:4a:d3", attr{type}== "1", kernel== " eth* ", name=" eth0 "Fourth step: Execute command: vi/etc/sysconfig/network-scripts/ifcfg-eth0hwaddr value modification Sing Woo second step note 00:50:56:2e:4e:70 modification
Device=eth0
Hwaddr=00:50:56:2e:4e:70
Type=ethernet
uuid=ad391919-c736-4d3d-b24d-1d78427e7c6e
Onboot=yes
Nm_controlled=yes
Bootproto=static
Ipaddr=192.168.8.111
netmask=255.255.255.0
gateway=192.168.8.1
dns1=4.4.4.4
dns2=8.8.8.8
Fifth step: Restart the machine, the configuration is OK.

Centos VMware post-clone network configuration

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.