Created
December 26, 2015 11:39
-
-
Save Gadgetoid/319ecf8e3c5d3660e298 to your computer and use it in GitHub Desktop.
Static IP raspbian jessie USB gadget
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
# In /etc/network/interfaces | |
iface usb0 inet static | |
dns-nameservers 8.8.8.8 8.8.4.4 | |
address 10.0.16.16 | |
netmask 255.255.0.0 | |
gateway 10.0.16.32 | |
# In /etc/dhcpcd.conf | |
denyinterfaces usb0 | |
I'm not sure if the "dns-nameservers" line actually works, I've been having trouble with /etc/resolv.conf being trounced. |
Any particular reason for the sudo BRANCH=next rpi-update
? rpi-update is pretty much sidelined except for some extreme hardware voodoo.
It was necessary at the time, but now definitely not! I use this gist mostly for my own reference, but it's definitely worth noting that I think rpi-update
should burn in the fire of a billion suns. It's a great convenience tool if you understand what it does, but otherwise it's a bit of a support nightmare :D
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Edit /etc/dhcpcd.conf and add:
Edit /boot/cmdline.txt and add to the end of the line: