Nic settings for Linux systems and nic settings for linux systems

Source: Internet
Author: User

Nic settings for Linux systems and nic settings for linux systems

After cloning a virtual machine, it is found that the MAC address of the clone machine is the same as that of the cloned machine. Next I will introduce how to configure the NIC in linux, my linux is CentOS release 6.9 (Final)

1. edit/etc/udev/rules as the root user. d/70-persistent-net.rules file, find the network adapter with the duplicate mac address and delete it (eth0 here), remember the mac address of the new network adapter eth1, which will be used later, save and exit

# Vi/etc/udev/rules. d/70-persistent-net.rules

2. edit/etc/sysconfig/network-scripts/ifcfg-eth0 and change the HWADDR address to the newly generated mac address 00: 50: 56: 36: 16: 72 in step 1.

# Vi/etc/sysconfig/network-scripts/ifcfg-eth0

3. restart the system to make the previous modification take effect.

# Reboot

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.