I'm trying to setup a static IP address on my WIFI that can access Internet.
this my file
interface wlan0 static ip_address=192.168.1.200/24 static routers=192.168.1.1 static domain_name_servers=192.168.1.1
This is my file
This is the result of my command,
Kernel IP routing table Destination Gateway Genmask Flags MSS Window irtt Iface 0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 wlan0 192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 wlan0
I can connect through SSH to my pi, once the IP address has been changed.
However, when doing a
sudo ping google.com, this is what I have
ping: unknown host google.com
ping 188.8.131.52 I get
(184.108.40.206) 56(84) bytes of data. From 192.168.1.200 icmp_seq=1 Destination Host Unreachable
When I leave it set to DHCP then everything works.
Any ideas on what am I missing?