Note about Debian Nic settings

Source: Internet
Author: User
For more information about Debian Nic settings, see Linux Release Technology-Debian. Author: lpfrx

When I was doing a Debian system migration experiment, after the migration, the network adapter would not be able to start up. After I entered the terminal and executed ifconfig-a, the original eth0 was gone, instead of eth1, why is it like this? But google has found a solution and changed eth1 back to eth0:

The Debian network setting file is/etc/network/interfaces. My original file is:

Auto lo

Iface lo inet

# Allow-hotplug eth0

Auto eth0
Iface eth0 inet static
Address 192.168.0.100
Netmask 255.255.255.0
Gateway 192.168.0.1

However, after the migration system is restarted, the NIC does not work. It must be modified:

/Etc/udev/rules. d/z25_persistent-net.rules

SUBSYSTEM = "net", DRIVERS = "? * ", ATTRS {address} =" 00: 0c: 29: 15: 3a: 48 ", NAME =" eth0 ″
# PCI device 0x1022: 0x2000 (pcnet32)
SUBSYSTEM = "net", DRIVERS = "? * ", ATTRS {address} =" 00: 0c: 29: 15: 3a: 52 ", NAME =" eth1 ″

I commented out the above eth0 and changed eth1 to eth0. In this way, after saving and restarting, everything will be normal:

# SUBSYSTEM = "net", DRIVERS = "? * ", ATTRS {address} =" 00: 0c: 29: 15: 3a: 48 ", NAME =" eth0 ″
# PCI device 0x1022: 0x2000 (pcnet32)
SUBSYSTEM = "net", DRIVERS = "? * ", ATTRS {address} =" 00: 0c: 29: 15: 3a: 52 ", NAME =" eth0 ″

In the past, debian had many network settings to be modified. In centos, you can use the setup command to use the graphical interface inside to make a good choice.
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.