Created
February 12, 2017 21:47
-
-
Save nikolay-kapustin/d922170e821c2612329235791bc53b44 to your computer and use it in GitHub Desktop.
Raspberry Pi 3: Resolve eth0 interface naming issue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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