Linux server's network card clutter problem

Source: Internet
Author: User
Tags modify linux

Linux will check the hardware information of the network card when it is started, and find that the MAC address and other information do not match the configuration file, add new configuration information in the configuration file. When you replace the NIC or the system is used on another machine, the NIC number is not started from eth0 or used

Ifconfig-a view when there are some unused network card information, network card number confusion will cause some directly using the network card number of applications can not function correctly, fix the problem can be deleted by deleting the profile, so that the system at startup to rebuild the solution:

Rm/etc/udev/rules.d/70-persistent-net.rules

If you are not too troublesome, you can also manually modify the contents of the configuration file, some of the following:

# PCI Device 0x1039:0x0191 (sis190)

subsystem== "NET", action== "Add", drivers== "? *", attr{address}== "00:12:15:3c:7b:56", attr{dev_id}== "0x0", Attr{type} = = "1", kernel== "eth*", name= "eth0"

The main is to modify the Name field, such as eth0 change to eth1, and then restart it.

More Wonderful content: http://www.bianceng.cnhttp://www.bianceng.cn/OS/Linux/

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.