I can connected to a Wi-Fi network, but not able to access the internet. I can access internet through mobile with same Wi-Fi network. Checked the router settings and there aren't any misconfigurations.
I have tried following solutions but they do not work:
- Restart the CentOS-7 machine
- Restart the router
- Changed nameserver IP address from gateway address to
8.8.8.8in/etc/resolv.conffile and tried to ping8.8.8.8. But ping fails after 5 to 10 packets received.
Any idea why it can't connect to the internet?
Also checked the /etc/resov.conf file, it shows the correct gateway address.