Debian 9 system to modify the default network card to eth0

  • 2020-06-07 05:58:32
  • OfStack


Debian 9 finally officially, the first time to upgrade yourself in VPS, 1 small problems, no network, the network become a ens3 after screening, and the system default network adapter configuration (/ etc/network/interfaces) is eth0, this article mainly introduced about Debian 9 change the default card for eth0 related content, to below 1 look at the details:

There are two options

One is to simply change eth0 in the network card configuration file to ens3, and then ifup ens3 can restore the network. The other way is to change ens3 back to the eth0 we are used to. Here is how to change it to eth0.

Method of operation

nano /etc/default/grub

To find the


Modified to

GRUB_CMDLINE_LINUX="net.ifnames=0 biosdevname=0"

Rebuild the grub boot configuration file

grub-mkconfig -o /boot/grub/grub.cfg

Finally restart to restore the default network card as eth0, the operation is over.


Related articles: