Noob question about static IP


#1

Hi all!

Is there any way to setup a static IP on WLAN?

(I mean a way for a noob like me!) :wink:

tnks!


#2

You need to inform yourself in the internet and apply the changes in the webconf.

I would start with changes in the wpa_supplicant (editable through webconf)

iface <your_if_name> inet static
address 192.168.0.20
netmask 255.255.255.0
network 192.168.0.255
gateway 192.168.0.1


#3

tnks! do you mean on browser via IP on the menu System/Wifi/advancedConfig?


#4

exactly…yes


#5

Ok perfect… so last (I hope!) question:
“our_if_name” is, for example, wlan0? or you mean my wifi SSID?


#6

wlan0
the left column value of ifconfig


#7

I also try to set the static ip via editing the wifi conf in System/Wifi/advancedConfig but not work…
with only the SSID information the wifi works fine in dhcp mode …when i put the

iface wlan0 inet static
address 192.168.1.222
netmask 255.255.255.0
network 192.168.0.255 ??? what means??
gateway 192.168.1.1

the wlan not work…


#8

There are tons of tutorial and methods to set a static IP on the rPI, and each one of them works for just two people on the planet :wink:

At the beginning of this tutorial there is the method I used on two rPIs that I installed at work.

At home, I always use reservations on my DHCP server. Way easier…


#9

Thank you @Axeman …i also found some different metods…but needs to edit also other file not only the wpa_supplicant…and not working with the webconf…


#10

ok Axeman… success! after your tutorial I have to… reinstall my .img from scratch! LOL!
Let’s try again (Want to evolve from noob to complete inexperienced…)
:wink:


#11

You have the Midas Touch, @TheBorga. Everything you touch explodes… LOL :smiley: