Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
raspberry-udk_ss2016:interfaces [2016/06/25 10:06]
admin
raspberry-udk_ss2016:interfaces [2016/10/15 17:21]
admin
Line 1: Line 1:
-# interfaces(5) file used by ifup(8) and ifdown(8) +===== Static IP Address ===== 
- +Find your gateway: 
-# Please note that this file is written to be used with dhcpcd +  $ netstat -r -n 
-For static IP, consult /etc/dhcpcd.conf and 'man dhcpcd.conf' +Find you IP address: 
- +  $ ip addr 
-# Include files from /etc/network/interfaces.d+For ginving the Raspberry Pi a static IP addressOpen the interfaces file
-source-directory /etc/network/interfaces.d +  $ sudo nano /etc/network/interfaces 
- +And change the file to:
-auto lo +
-iface lo inet loopback +
- +
-# Ethernet +
- auto etho +
- allow-hotplug eth0 +
- iface eth0 inet static +
- address ???.???.???.??? +
- netmask 255.255.255.0 +
- gateway 194.95.203.1 +
- +
-allow-hotplug wlan0 +
-iface wlan0 inet manual +
- wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf +
- +
-allow-hotplug wlan1 +
-iface wlan1 inet manual +
- wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf+
  
 +   # interfaces(5) file used by ifup(8) and ifdown(8)
 +   
 +   # Please note that this file is written to be used with dhcpcd
 +   # For static IP, consult /etc/dhcpcd.conf and 'man dhcpcd.conf'
 +   
 +   # Include files from /etc/network/interfaces.d:
 +   source-directory /etc/network/interfaces.d
 +   
 +   auto lo
 +   iface lo inet loopback
 +   
 +   # Ethernet
 +    auto eth0
 +    allow-hotplug eth0
 +    iface eth0 inet static
 +     address ???.???.???.???
 +     netmask 255.255.255.0
 +     gateway 194.95.203.1
 +   
 +   allow-hotplug wlan0
 +   iface wlan0 inet manual
 +    wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
 +   
 +   allow-hotplug wlan1
 +   iface wlan1 inet manual
 +    wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
  
 +Disable the DHCP-Client:   
 +  $ sudo service dhcpcd stop
 +  $ sudo systemctl disable dhcpcd 
 +  
 +Reboot:\\
 +  $ sudo reboot