Solution to "NIC eth0, unknown port"

Source: Internet
Author: User
Tags custom name
Nic eth0. if the service network restart is not recognized for a port, this prompt is sometimes returned (Serivce Network Status reads the ETC/sysconfig/network-script/ifcfg-* file)

Shutting down loopback interface: [OK]
Bringing up loopback interface: [OK]
Bringing up interface eth0: Error: no suitable device found: no device found for connection 'System eth0 '.
[Failed]
Use ifconfig eth0 up to prompt eth0: Unknown interface: no such device

When the network is started, it will go to the configuration file/etc/udev/rules. d/70-persistent-net.rules to read the relevant information, such:

# PCI device 0x8086: 0x100e (e1000) (custom name provided by external tool)
Subsystem = "Net", Action = "add", drivers = "? * ", ATTR {address} =" 08: 00: 27: 25: D3: 1C ", ATTR {type} =" 1 ", kernel = "ETH *", name = "eth0"

# PCI device 0x8086: 0x100e (e1000)
Subsystem = "Net", Action = "add", drivers = "? * ", ATTR {address} =" 08: 00: 27: 37: 20: 1E ", ATTR {type} =" 1 ", kernel = "ETH *", name = "eth1"

Indicates that two NICs, eth0 and eth1, are set in the setup network settings. The system will automatically read the corresponding files from the network adapter.

ETC/sysconfig/network-script/ifcfg-eth0 and ETC/sysconfig/network-script/ifcfg-eth1

If the physical address of the eth0 file Nic does not match that of the Computer Nic, the start error message is displayed. You can copy the information in eth1 to eth0, eth0 can be used to find the matched Nic device.

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.