I am trying to do a hotspot with my raspberry pi 3 (Raspbian 9.3). I follow this tutorial : https://null-byte.wonderhowto.com/how-to/turn-your-raspberry-pi-into-wireless-hotspot-0180133/

I use hostapd and dnsmasq. I have a problem on step 3 when I need to set a static ip to wlan0.

$ sudo ifup wlan0
Error: inet prefix is expected rather than "192.168.197,1/".
ifup: failed to bring up wlan0

My /etc/network/interface is

source-directory /etc/network/interfaces.d

auto lo
iface lo inet loopback

auto eth0
allow-hotplug eth0
iface eth0 inet dhcp

allow-hotplug wlan0
iface wlan0 inet static
    address 192.168.197,1
  • What OS version are you running? – MatsK Feb 24 '18 at 8:31
  • I'm using Raspbian 9 – A.Mas Feb 24 '18 at 11:06
  • 2
    I hope you only have a typo in your example... There should not be a comma in the address of the wlan. – Uwe Plonus Feb 26 '18 at 19:15

To me it looks to be due to typo in address 192.168.197,1 (should be .1).

  • That's an answer. The correct one, I think, since the typo is repeated in the output of the error. – goldilocks Feb 26 '18 at 19:33

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.