Differences

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

Link to this comparison view

Next revision
Previous revision
raspberry-udk_ss2016:interfaces [2016/06/25 10:05]
admin created
raspberry-udk_ss2016:interfaces [2018/06/20 15:36] (current)
admin
Line 1: Line 1:
-interfaces(5) file used by ifup(8) and ifdown(8)+===== 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 /etc/network/interfaces 
 +And change the file to:
  
-# Please note that this file is written to be used with dhcpcd +   # interfaces(5) file used by ifup(8) and ifdown(8) 
-# For static IP, consult /etc/dhcpcd.conf and 'man dhcpcd.conf' +    
- +   # Please note that this file is written to be used with dhcpcd 
-# Include files from /etc/network/interfaces.d: +   # For static IP, consult /etc/dhcpcd.conf and 'man dhcpcd.conf' 
-source-directory /etc/network/interfaces.d +    
- +   # Include files from /etc/network/interfaces.d: 
-auto lo +   source-directory /etc/network/interfaces.d 
-iface lo inet loopback +    
- +   auto lo 
-# Ethernet +   iface lo inet loopback 
-  auto etho +    
-  allow-hotplug eth0 +   # Ethernet 
-  iface eth0 inet static +    auto eth0 
-    address ???.???.???.??? +    allow-hotplug eth0 
-    netmask 255.255.255.0 +    iface eth0 inet static 
-    gateway 194.95.203.1 +     address ???.???.???.??? 
- +     netmask 255.255.255.0 
-allow-hotplug wlan0 +     gateway 194.95.203.1 
-iface wlan0 inet manual+    
 +   allow-hotplug wlan0 
 +   iface wlan0 inet manual
     wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf     wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
- +    
-allow-hotplug wlan1 +   allow-hotplug wlan1 
-iface wlan1 inet manual+   iface wlan1 inet manual
     wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf     wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
  
 +Disable the DHCP-Client:    
 +  $ sudo service dhcpcd stop 
 +  $ sudo systemctl disable dhcpcd  
 +   
 +Reboot:\\ 
 +  $ sudo reboot