No internet connection

Issues related to configuring your network
Post Reply
jakiiki
Posts: 2
Joined: 2018/03/19 17:01:04

No internet connection

Post by jakiiki » 2018/03/19 17:14:22

I am newbie to a Linux and I converted a box that had Windows 10 to CentOS 7. With Windows, I had a Wireless USB adapter and the machine connected with no issues to Windows. When I converted the box to CentOS, I found I couldn't get the Linux drivers for the USB wireless adapter to compile.

So I bought an Wifi to ethernet adaptor IOGEAR GWU637 Ethernet-2-WiFi Universal Wireless Adapter
(https://www.amazon.ca/dp/B018YPWORE/ref ... _emaildp_1). The adapter connects to your wifi, and has an ethernet port which I use to connect to my CentOS7 box

I had configured the wifi-to-ethernet adapter to work a Windows laptop(Ethernet Port; no drivers needed). On CentOS, I can ping the adapter but I have no connection to the internet. The network settings for the adapter are: 192.168.1.254/255.255.255.0 and the settings for the CentOS are 192.168.1.253/255.255.255.0

I can't figure out how to get it to connect to the internet. Any help will be appreciated.

jakiiki
Posts: 2
Joined: 2018/03/19 17:01:04

Re: No internet connection

Post by jakiiki » 2018/03/20 01:34:07

I was able to solve the problem. I plugged the adaptor on a Windows machine, run ipconfig and then so that the Default Gateway IP was 192.168.0.1. So I plugged the adapter back to the CentOS box, and changed the default gateway to 192.168.0.1 and changed static ip to 192.168.0.253. I also disabled IPV6 by running systctl -w net.ipv6.conf.all.disable_ipv6=1 and sysctl -w net.ipv6.conf.default.disable_ipv6=1.
I turned off and on the wired connection and voila, I was able to connect to the internet.

Hope that helps someone.

Post Reply