Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
raspberry-udk_ss2016:interfaces [2016/06/25 10:07] admin |
raspberry-udk_ss2016:interfaces [2018/06/20 15:36] (current) admin |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | # | + | ===== Static IP Address ===== |
+ | Find your gateway: | ||
+ | $ netstat -r -n | ||
+ | Find you IP address: | ||
+ | $ ip addr | ||
+ | For giving the Raspberry Pi a static IP address. Open the interfaces file: | ||
+ | $ sudo nano / | ||
+ | And change the file to: | ||
+ | # interfaces(5) file used by ifup(8) and ifdown(8) | ||
+ | |||
# Please note that this file is written to be used with dhcpcd | # Please note that this file is written to be used with dhcpcd | ||
# For static IP, consult / | # For static IP, consult / | ||
+ | |||
# Include files from / | # Include files from / | ||
| | ||
+ | |||
auto lo | auto lo | ||
iface lo inet loopback | iface lo inet loopback | ||
+ | |||
# Ethernet | # Ethernet | ||
- | auto etho | + | auto eth0 |
allow-hotplug eth0 | allow-hotplug eth0 | ||
iface eth0 inet static | iface eth0 inet static | ||
- | | + | |
| | ||
| | ||
+ | |||
| | ||
iface wlan0 inet manual | iface wlan0 inet manual | ||
wpa-conf / | wpa-conf / | ||
+ | |||
| | ||
iface wlan1 inet manual | iface wlan1 inet manual | ||
wpa-conf / | wpa-conf / | ||
+ | Disable the DHCP-Client: | ||
+ | $ sudo service dhcpcd stop | ||
+ | $ sudo systemctl disable dhcpcd | ||
+ | |||
+ | Reboot:\\ | ||
+ | $ sudo reboot |