# Eth0 no longer default name with Raspbian Stretch (Debian version 9)

**URL:** <https://discourse.pi-hole.net/t/eth0-no-longer-default-name-with-raspbian-stretch-debian-version-9/4528>\
**Category:** General\
**Created:** [August 18, 2017, 1:30pm UTC](https://discourse.pi-hole.net/t/eth0-no-longer-default-name-with-raspbian-stretch-debian-version-9/4528 "2017-08-18T13:30:04Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![jpgpi250](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/jpgpi250/32/286_2.png) [@jpgpi250](https://discourse.pi-hole.net/u/jpgpi250)\
**Post date:** [August 18, 2017, 1:30pm UTC](https://discourse.pi-hole.net/t/eth0-no-longer-default-name-with-raspbian-stretch-debian-version-9/4528/1 "2017-08-18T13:30:04Z")

</div>

I've just installed raspian stretch lite (image 2017-08-16 [here](https://www.raspberrypi.org/downloads/raspbian/)) and found the ethernet adapter name is now base on the **Mac address** , no longer **eth0** by default.

Since **/etc/dnsmasq.d/01-pihole.conf** references **eth0** as the interface, following changes are required, reference [here](https://raspberrypi.stackexchange.com/questions/43560/raspberry-pi-3-eth0-wrongfully-named-enx):

`sudo nano /lib/udev/rules.d/73-usb-net-by-mac.rules`

You should find a line that reads:  
`IMPORT{builtin}="net_id", NAME="$env{ID_NET_NAME_MAC}"`

Replace this line with:  
`IMPORT{builtin}="net_id", NAME="eth0"`

To prevent any future updates from overwriting this change:  
`sudo cp /lib/udev/rules.d/73-usb-net-by-mac.rules /etc/udev/rules.d/`

Reboot to activate the change.

---

<div class="post-metadata">

**Author:** ![Tntdruid](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/tntdruid/32/773_2.png) [@Tntdruid](https://discourse.pi-hole.net/u/Tntdruid)\
**Post date:** [August 18, 2017, 1:41pm UTC](https://discourse.pi-hole.net/t/eth0-no-longer-default-name-with-raspbian-stretch-debian-version-9/4528/2 "2017-08-18T13:41:31Z")

</div>

why did they mess whit that?

---

<div class="post-metadata">

**Author:** ![jpgpi250](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/jpgpi250/32/286_2.png) [@jpgpi250](https://discourse.pi-hole.net/u/jpgpi250)\
**Post date:** [August 18, 2017, 2:16pm UTC](https://discourse.pi-hole.net/t/eth0-no-longer-default-name-with-raspbian-stretch-debian-version-9/4528/3 "2017-08-18T14:16:56Z")

</div>

explained [here](https://wiki.debian.org/NetworkConfiguration#Predictable_Network_Interface_Names) (Predictable Network Interface Names)

---

<div class="post-metadata">

**Author:** ![deHakkelaar](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/dehakkelaar/32/674_2.png) [@deHakkelaar](https://discourse.pi-hole.net/u/deHakkelaar)\
**Post date:** [August 19, 2017, 2:46pm UTC](https://discourse.pi-hole.net/t/eth0-no-longer-default-name-with-raspbian-stretch-debian-version-9/4528/4 "2017-08-19T14:46:58Z")

</div>

Yeah this "Predictable Network Interface Names" is just bullocks.  
I can predict ethX but not the MAC based names.  
Always need to look them up and typing them over is just dreadfull when you dont have network/SSH (prone to make mistakes).

---

<div class="post-metadata">

**Author:** ![sprocket](https://discourse-cdn.pi-hole.net/letter_avatar_proxy/v4/letter/s/bcef8e/32.png) [@sprocket](https://discourse.pi-hole.net/u/sprocket)\
**Post date:** [August 19, 2017, 4:56pm UTC](https://discourse.pi-hole.net/t/eth0-no-longer-default-name-with-raspbian-stretch-debian-version-9/4528/5 "2017-08-19T16:56:59Z")

</div>

I just hit this myself. Your description how to fix was the simplest I could find after looking in a number of places. And it worked.

Thanks for the tip!

---

<div class="post-metadata">

**Author:** ![jpgpi250](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/jpgpi250/32/286_2.png) [@jpgpi250](https://discourse.pi-hole.net/u/jpgpi250)\
**Post date:** [September 9, 2017, 9:07am UTC](https://discourse.pi-hole.net/t/eth0-no-longer-default-name-with-raspbian-stretch-debian-version-9/4528/6 "2017-09-09T09:07:37Z")

</div>

This feature has been disabled in the september 2017 release of raspbian ([release notes](http://downloads.raspberrypi.org/raspbian/release_notes.txt)).
