On 05/05/18 17:58, RobH wrote:
> On 05/05/18 16:13, mm0fmf wrote:
>> On 05/05/2018 15:56, mm0fmf wrote:
>>> 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.
>>>
>>> You have much bigger problems if your IP starts 169.254.x.x.
>>>
>>> Is your Pi meant to connect to a Wifi router and be allocated an IP
>>> address by DHCP? Because it isn't happening.
>>>
>>> Perhaps you can detail how your Pi will be using the Wifi connection in
>>> your project and people can then give you the relevant help to configure
>>> it.
>>>
>>> Also, Google link-local IPV3 address or ev169.254en just 169.254 to
>>> read more
>>> about why you have this IP address.
>>>
>>>
>> If only I could type or proof-read... link-local IPV4 address.
>
> Sorry, I should have been more clearer. The Pi Zero w is connected by a
> ethernet cable via a usb / ethernet adapter.
>
> I have power cycled the router as well shutting the Pi Zero down and
> starting again as it were, but the problem still remains.
>
The it is not set up for DHCP
I susopect that normal debian behaviour is contrelloed by the file
/etc/network/interfaces
This is from my server on a static IP address:
auto lo
iface lo inet loopback
iface etho inet static
address 192.168.0.100
netmask 255.255.255.0
gateway 192.168.0.254
broadcast 192.168.0.255
network 192.168.0.0
dns-nameservers 127.0.1.1 192.168.0.254
--
"Socialist governments traditionally do make a financial mess. They
always run out of other people's money. It's quite a characteristic of them"
Margaret Thatcher
--- SoupGate-Win32 v1.05
* Origin: Agency HUB, Dunedin - New Zealand | FidoUsenet Gateway (3:770/3)
|