How to Change Network Interface Name from eth0 to ens33 on Debian?

0
8
Asked By TechVoyager77 On

I'm working on a Debian installation running on VMware, and I'd like to switch my network interface name from "eth0" back to the more standardized "ens33." Previously, I managed to set it to "eth0" by using the kernel parameters `biosdevname=0` and `net.ifnames=0`. However, I've now removed those parameters from `/etc/default/grub`, regenerated `grub.cfg`, and rebuilt initrd, but the interface still shows up as "eth0." I don't see any references to "eth0" in `/boot` or `/etc`. What steps can I take to make sure my NIC is recognized as "ens33" without resorting to creating an udev rule? Thanks!

2 Answers

Answered By NetworkNinja99 On

Have you tried using `ifrename`? It can help in renaming your interfaces based on driver rules instead of relying on the default naming scheme.

Answered By LinuxWizard42 On

I faced a similar issue, but I managed to partially solve it. There was a file named `/etc/systemd/network/00no-altname.link` that was affecting the interface name. After removing that file, my interface changed to **ens192**.

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.