Centos7/redhat7 the method of changing the NIC name to the ETH style

Source: Internet
Author: User
Centos7/redhat7 the method of changing the NIC name to the ETH style

Method/Step

  1. 1

    Edit/etc/sysconfig/grub Find the "Grub_cmdline_linux" line

  2. 2

    In front of RHGB, add net.ifnames=0 biosdevname=0

  3. 3

    On the open terminal and then execute the Grub2-mkconfig-o/boot/grub2/grub.cfg

  4. 4

    Use the command to switch to the/etc/sysconfig/network-scripts/NIC directory,

  5. 5

    I have two network card information, the two files that start with Ifcfg-eno are ifcfg-eth0/ifcfg-eth1 (Parameters Name=eth0 and eth1 in this file)

  6. 6 view is a file with 70-persistent-net.rules, if you have it removed, command reboot restart
  7. 7 After restarting, check that the NIC has changed successfully display:

Centos7/redhat7 the method of changing the NIC name to the ETH style

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.