You get a bonus - 1 coin for daily activity. Now you have 1 coin

Replacing a network card in Debian and Ubuntu

Practice



Debian (and Ubuntu, as its descendant) permanently binds the ethX network interface to the corresponding network card's MAC address, so after replacing a network card or its MAC (for example, in the case of a virtual machine interface) in Debian, it happens that the corresponding ethX disappears. For example, when you replace the first network card, eth0 will disappear. Even if only one network card remains in the computer - it will no longer be eth0, but eth1, eth2, etc.

If there were two network cards and you replaced the second one, then instead of eth0 and eth1 you'll get eth0 and eth2.

Fixing this is simple: after replacing the network card, you need to boot up and go to the file /etc/udev/rules.d/70-persistent-net.rules , where you find and remove the card that is no longer there, and change the eth name for the newly installed card.
created: 2017-05-10
updated: 2026-03-10
1486



Was this answer useful?
Choose a quick rating so we can improve the next answer for you.
How satisfied are you?


Comments

To leave a comment

If you have any suggestion, idea, thanks or comment, feel free to write. We really value feedback and are glad to hear your opinion.
To reply

Lectures and tutorial on "Computer networks"

Terms: Computer networks