How to rename the centos7 Nic and how to replace the NIC

Source: Internet
Author: User

There are three steps to rename the network adapter to centos5 on behalf of the classic style eth0:

1, VIM/etc/sysconfig/grub, find grub_cmdline_linux, there is a vconsole. font = latarcyrheb-sun16, empty cells, and net. ifnames = 0 biosdevname = 0 save and exit;

Grub2-mkconfig-O/boot/grub2/grub. cfg

3. After restarting the system, run ip A and find that it is a classic eth0 style;

After the NIC is changed, it cannot be started because there is no corresponding configuration file. just create a/etc/sysconfig/network-scripts file. Assume that your Nic is eth0, start this network card in two steps:

1, VIM/etc/sysconfig/network-scripts/ifcfg-eth0, there are the following items is enough

Type = Ethernet

Bootproto = static

Name = eth0

Onboot = Yes

Ipaddr = 192.168.44.250

Netmask = 255.0.0.0

Device = eth0

Dns1 = 8.8.4.4

Gateway = 192.168.1.1

IP mask and DNS self-Thinking

2. IFUP eth0 is found to have been completed.

How to rename the centos7 Nic and how to replace the NIC

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.