Page 2 of 2

Re: Change DietPi Wi-Fi Settings Editing the SDcard on a PC

Posted: Wed Oct 11, 2017 3:59 pm
by k-plan
dianakev wrote:

Code: Select all

    #/etc/network/interfaces
    #Please use DietPi-Config to modify network settings.

    # Local
    auto lo
    iface lo inet loopback

    # Ethernet
    #allow-hotplug eth0
    iface eth0 inet dhcp
    address 192.168.0.100
    netmask 255.255.255.0
    gateway 192.168.0.1
    #dns-nameservers 8.8.8.8 8.8.4.4

    # Wifi
    #allow-hotplug wlan0
    iface wlan0 inet dhcp
    address 192.168.0.100
    netmask 255.255.255.0
    gateway 192.168.0.1
    wireless-essid FuzonWifi
    wireless-key abcde12345
    wireless-mode Managed
    wireless-power off
    wpa-ssid FuzonWifi
    wpa-psk abcde12345
    #dns-nameservers 8.8.8.8 8.8.4.4   

btw why it stated dhcp while we want to set it as static?

Code: Select all

    iface wlan0 inet dhcp
    address 192.168.0.100
Answer:

- duplicate ip addresses

and

Code: Select all

#/etc/network/interfaces
    #Please use DietPi-Config to modify network settings.