Remove Eth0.bak and redundant network cards from Linux systems __linux

Source: Internet
Author: User
Remove Eth0.bak and redundant network adapters from Linux systems

Deleting redundant ifcfg-eth0.bak in a VM

CentOS a Eth0.bak configuration backup file appears after the system changes the NIC or Nic MAC address

Workaround:

/etc/sysconfig/networking/devices directory, delete Ifcfg-eth0.bak

/etc/sysconfig/networking/profiles/default, remove Ifcfg-eth0.bak

/etc/sysconfig/network-scripts/, remove Ifcfg-eth0.bak

Second, remove the Linux system redundant network card (for example: eth1)

/etc/modprobe.conf, delete alias eth1 XXXX

/etc/sysconfig/networking/devices directory, delete ifcfg-eth1

/etc/sysconfig/networking/profiles/default directory, delete ifcfg-eth1

/etc/sysconfig/network-scripts/directory, delete Ifcfg-eth0.bak

Third, the Detection network Interface (ETH0) is working properly

/etc/modprobe.conf, this file must have: alias Eth0 XXX

/etc/sysconfig/hwconf, the corresponding configuration of eth0 in this file must also be correct

/etc/sysconfig/network-scripts directory, you must have a configuration file for the network interface: Ifcfg-eth0

The configuration is correct in the/etc/sysconfig/network-scripts/ifcfg-eth0 file, for example: Device=eth0

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.