Stap 6: /etc/network/interfaces
Beeltenis: resultaten van de lopende iperf3 voor 100 intervallen met "iface eth0 inet dhcp" (blauw), en dan weer met "# iface eth0 inet dhcp" (rood). De x-as is Mbps en de y-as is de telling van de metingen in dat bandbreedte.
/etc/network/interfaces
Elke parameter in het /etc/network/interfaces bestand werd gemeten.
Dit bestand moet juiste of wifi werkt niet.
inloggen in de raspberry pi en run de opdracht:
$ sudo nano /etc/network/interfaces
Het bestand te bewerken:
# interfaces(5) file used by ifup(8) and ifdown(8) # Please note that this file is written to be used with dhcpd # For static IP, consult /etc/dhcpcd.conf and 'man dhcpcd.conf' # Include files from /etc/network/interfaces.d: # source-directory /etc/network/interfaces.d # Commented parameters were used in measurements # All comments can be removed # Replace spades (♣) and text enclosed in ♣replace-this♣ with actual value # loopback interface # loopback is used for tools to talk to themselves on the RPi auto lo iface lo inet loopback # ethernet interface # leave ethernet interface - may be needed for cable connection in the future iface eth0 inet dhcp # Wireless adapter # Use only one group of settings at a time - either RT5370 or WiPi # RT5370 settings: auto wlan0 allow-hotplug wlan0 iface wlan0 inet dhcp # Use wpa-ssid and wpa-psk OR wpa_supplicant, but not both # wpa-ssid "♣your-ssid♣" # wpa-psk "♣your-pass-phrase♣" # Use wpa-conf instead of wpa-roam # Using wpa-roam without correct wpa_roam.conf causes issues # For example, on reboot wpa-roam can default to IPv6 and wifi stops wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf # # Turning power management off reduces dropped packets wireless-power off # WiPi settings: # auto wlan0 # iface wlan0 inet dhcp # wpa-ssid "♣your-ssid♣" # wpa-psk "♣your-pass-phrase♣" # default interface # iface default inet dhcp
CTRL-o te schrijven bestand
ENTER om te bevestigen schrijven
CTRL-x om af te sluiten nano editor