In linux, the interface sequence and appearance sequence of the multi-interface (NIC) system are matched.

Source: Internet
Author: User
In linux, the interface sequence and appearance sequence of the multi-interface (NIC) system are matched-Linux general technology-Linux technology and application information. For details, see the following. When we install linux on a host with multiple NICs (interfaces), we are often confused by the NIC sequence (eth0. .. ethn. Sometimes the configuration file eth0 corresponds to an interface in the middle of the actual appearance of the device!

In fact, linux configures IP addresses alphabetically by the physical IP address (mac address) of the NIC (Interface) when installing the system. All generated configuration files are stored in the/etc/sysconfig/network-scripts/directory. File Name: ifcfg-ethN.

This file contains the interface alias, interface physical address, and interface IP address.

First, confirm the mac address of each interface in the appearance sequence. (Insert the network cable and run ifup ethx and ifdown ethx. If the green light (data light) flashes, the mac in the ifcfg-ethx file is the mac of the current physical interface) then adjust the configuration file name and content of the configuration file. In this way, you can gradually adjust the interface configuration file and Appearance Order to the order corresponding.
Related Article

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.