haughian24
Posts: 5
Joined: Fri Mar 09, 2018 10:46 am

Pi Static Wlan0 problems

Wed Mar 14, 2018 9:04 pm

Happy Pi Day!!

I am having a issue with setting up the pi with a static Ip.
i apologise for how many times this may have been covered.

I am using a Raspberry Pi 3 im using the latest Raspbian Stretch.

The Lan network at work uses Ip addresses 163.157.122.x ...... For this example computer "A" is 163.157.122.50 with a GW 163.157.122.1



I have thrown in a router to act as a AP and set it Static to a non used IP 163.157.122.100 with the gateway 163.157.122.1.

Without the AP connected i can ping all the computers in the network no problem.

Once the AP is connected i can connected my laptop to the AP and still ping all computers on the network.

But if i connect the pi and i have tried various methods of setting the Wlan0 to static i cant seem to ping either the outside computers still on the network and they cant find the pi either. all set with ip addresses of 163.157.122.x...... i think its a gateway problem....
i dont know what or how to set the right gateway on the pi. do i set it to the AP ip or the lan networks? and how do i do it?

with the AP set to dynamic and the pi set to dynamic i can ping to other computers on the LAN but cant ping the pi as it then defaults to 192.x.x.x ...

sorry if the terminolgy is wrong as you can see im not very good at this..

Thank You

SurferTim
Posts: 1769
Joined: Sat Sep 14, 2013 9:27 am
Location: Miramar Beach, Florida

Re: Pi Static Wlan0 problems

Fri Mar 16, 2018 11:34 am

haughian24 wrote: with the AP set to dynamic and the pi set to dynamic i can ping to other computers on the LAN but cant ping the pi as it then defaults to 192.x.x.x ...
You have a network problem. The IP does not default to 192.x.x.x. If it is dynamic (dhcp), then the RPi is being issued those network settings by a dhcp server.
haughian24 wrote: The Lan network at work uses Ip addresses 163.157.122.x ...... For this example computer "A" is 163.157.122.50 with a GW 163.157.122.1

I have thrown in a router to act as a AP and set it Static to a non used IP 163.157.122.100 with the gateway 163.157.122.1.

Without the AP connected i can ping all the computers in the network no problem.
Sounds like your router is the problem.

Return to “Networking and servers”