TIP: Click on subject to list as thread! ANSI
echo: rberrypi
to: ROBH
from: CHRIS ELVIDGE
date: 2018-05-05 17:14:00
subject: Re: Wrong IP address on P

On 05/05/2018 15:47, RobH wrote:
> I have finished setting up a pi zero w for a project, and now need to
> access it by ssh.
> I couldn't and after connecting a monitor and keyboard, doing 'ifconfig'
>   returns eth0:
> inet 169.254.156.44  netmask 255.255.0.0 broadcast 169.254.255.255.
>
> Is there is anywhere the IP address can be changed to 192.168.0.any
> other IP number.
>
> I have rebooted my router and the Pi Zero several times, but no change.

I don't have a PiZeroW to check this, but:

Is eth0 the wlan interface? If wlan0 is the wlan interface, change eth0
to wlan0 in interfaces stanza below. Is your router a dhcp server on
wifi using PSK?

/etc/network/interfaces should contain a stanza like:

auto eth0
iface eth0 inet dhcp
         wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf

and /etc/wpa_supplicant/wpa_supplicant.conf should contain

ctrl_interface=/var/run/wpa_supplicant

network={
         ssid="YourNetworkName"
         key_mgmt=WPA-PSK
         psk="YourNetworkPassword"
}

When done, run 'ifup eth0' (no quotes) or reboot.

HIH

--

Chris Elvidge, England

--- SoupGate-Win32 v1.05
* Origin: Agency HUB, Dunedin - New Zealand | FidoUsenet Gateway (3:770/3)

SOURCE: echomail via QWK@docsplace.org

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.