Disable Ethernet CID naming (ifnames)

VIRGO77

Cadet
Joined
Feb 28, 2023
Messages
7
Hi!
I'm a new user of TrueNAS (I'm on Scale Edition), and I'm a bit annoyed by the actual names of my NICs.
Actually, I got names like 'enx000ec6b9360e' which is not really easy to check which one is this NIC as I got a lot of NICs.
Is there a way to get rid of this annoying naming? Like eth0, or ensxxx?

I tried to disable this by modding GRUB, and adding this line:
GRUB_CMDLINE_LINUX="net.ifnames=0 biosdevname=0"
No luck

I read this Forum Topic, and tried the solution in the last post. No luck.

So, maybe a tunable variable? I tried to add a tunable "net.ifnames" but TrueNAS says that this variable is not present in the kernel.

Thanks a lot :)

V.
 

Samuel Tai

Never underestimate your own stupidity
Moderator
Joined
Apr 24, 2020
Messages
5,399

VIRGO77

Cadet
Joined
Feb 28, 2023
Messages
7
Wouahouh, thanks a lot! it works great :)
If I change my mind, is there a way to revert back?
 

Samuel Tai

Never underestimate your own stupidity
Moderator
Joined
Apr 24, 2020
Messages
5,399
If I change my mind, is there a way to revert back?

Just repeat the command with an empty string for the kernel_extra_options and reboot.
 

VIRGO77

Cadet
Joined
Feb 28, 2023
Messages
7
ah yes, I was thinking about this. Thanks a lot :)
have a good day
 
Top