Web lists-archives.com

Re: How to rename my wired connection from 'eno1' to 'eth0'?




Sharon Kimble wrote:
...
> Due to a hard-drive failure I've had to install Debian 9 and I've got a
> peculiar problem.
>
> My wired connection is showing as 'eno1' instead of the unexpected
> 'eth0', which means that my 'vnstat' is failing to record my network
> traffic. So how do I change its name please? I've googled but haven't
> found any workable solution for the problem.

  find the MAC address for the device and adjust:
/etc/udev/rules.d/70-persistent-net.rules to fit.

e.g.

SUBSYSTEM=="net", DRIVERS=="?*", ATTR{address}=="01:02:03:04:05:06", NAME="eth0"


  songbird