Skip to content

Instantly share code, notes, and snippets.

@nikolay-kapustin
Created February 12, 2017 21:47
Show Gist options
  • Save nikolay-kapustin/d922170e821c2612329235791bc53b44 to your computer and use it in GitHub Desktop.
Save nikolay-kapustin/d922170e821c2612329235791bc53b44 to your computer and use it in GitHub Desktop.
Raspberry Pi 3: Resolve eth0 interface naming issue
#!/bin/bash
# This script fix issue for unexpected not appearing the eth0 interface on the Raspberry Pi 3.
# The script is fixing the name of ethernet interface to 'eth0' persistently.
cd /etc/udev/rules.d/
touch 70-persistent-net.rules
echo 'SUBSYSTEM=="net", ACTION=="add", DRIVERS=="smsc95xx", ATTR{address}=="*", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"' >> 70-persistent-net.rules
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment