LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   No Internet Access (https://www.linuxquestions.org/questions/linux-newbie-8/no-internet-access-4175717542/)

elgrandeperro 10-09-2022 01:33 AM

You aren't getting a default route. If you use static file configuration then the default route is missing. If you use dhcp/automatic network configuration and a network manager, you might be overriding the route dhcp is giving you.

File configuration usually has a gateway entry. Network manager has an option to accept or change the default route given back by dhcp.

So that is the question, how are you configuring network parameters?

slackguy2 10-09-2022 03:06 AM

* you haven't mentioned which linux distro - they each have custom hacks making whatever works on source install (or each other) not workable. If you are in a big distro it probably "works their way or no way at all" so seek their instruction - and note they ban people who say it isn't working.

* you haven't mentioned wpa-supplicant.conf

even if you can ping your (wifi enabled cable modem i assume) ...

you have to choose a network choice (in detected list), provide a (modem pin) , provide a password

It's a very typical question "i can ping my wifi modem but get nowhere" if you haven't yet logged in.

Obviously there are thousands of internet documents describing the above i shouldn't repeat here.

allend 10-09-2022 10:06 AM

This looks like a misconfiguration issue.
The Archer C8 User Guide has an FAQ section with:
Quote:

Q5. What can I do if I cannot access the Internet even though the
configuration is finished?
that provides a test link.
The MX Linux Users Manual has Section 3.4 Network. It appears that the router is likely working correctly, but the gateway address is not being assigned. Right-click the Network Manager applet > Edit Connections to open up a Settings box. Check the WiFi connection settings, especially that the IPv4 Settings tab has Method: Automatic (DHCP) set.

rstuff 10-12-2022 02:42 PM

Network Manager Settings
 
4 Attachment(s)
Network manager screenshots attached.

allend 10-12-2022 05:22 PM

Those NetworkManager settings seem to be correct, except that I also see boxes for Rate and Transmission power on my WiFi tab.
What is the wifi device in your G50-45? It should appear in the output of '/sbin/lspci | grep -i Network'.

rstuff 10-12-2022 07:39 PM

Wifi Device
 
Found it in /bin
Quote:

a@apc:~$ /bin/lspci | grep -i Network
03:00.0 Network controller: Intel Corporation Wireless 7260 (rev 73)

michaelk 10-12-2022 07:52 PM

Try adding a gateway, use the actual LAN IP address for your router

Code:

sudo route add default gw 192.168.1.xxx wlan0

elgrandeperro 10-12-2022 09:25 PM

You can put the route in the ipv4 config, but you should not have to do that. Under Additional Static Routes, add
0.0.0.0 0.0.0.0 192.168.1.1

and hit add. This should add the default route (0.0.0.0) to the route table, type ip route to see it.

But once again, you will have to remember this when you change your network configuraton.

rstuff 10-13-2022 01:28 AM

Adding routes.
 
1 Attachment(s)
When I tried to add the route from the terminal I got:

Quote:

$ sudo route add default gw 192.168.1.1 wlan0
[sudo] password for kuser:
SIOCADDRT: Network is unreachable
When I tried adding the route through the network manager the address, (0.0.0.0), was in red and the save button greyed out.

Thank you for your help and your patience.

allend 10-13-2022 07:11 AM

Some basic checks:
Does 'nmcli device status' show your wireless device is connected?
If so, does /etc/resolv.conf look something like
Code:

# Generated by NetworkManager
search Domain PCName.Domain
nameserver 192.168.1.1

Does 'dig -x 192.168.1.1' show something like Router.Domain?
Does 'dig @192.168.1.1 www.google.com' return a valid record?

elgrandeperro 10-13-2022 10:14 AM

Just ping 192.168.1.1 and do a nmci. By your previous debugging, it seems like the interface should work but not being to set the route seems to indicate that it is not. Reboot to clear the ifconfig counters and restart all networking. Something is very strange.

rstuff 10-13-2022 11:59 AM

Running the "sudo route add default gw 192.168.1.1 wlan0" right after booting up fixed the problem. Before I had tethered to my phone and untethered but never rebooted so the network must have remembered. Will I have to make this command run at startup all the time or should I try adding it into the network manager GUI? Thank you for everyones help and patience.

michaelk 10-13-2022 04:59 PM

Normally network manager and the dhcp client should create the route but I am not exactly sure what is not working at the moment. It works as expected when connected to the phone so there must be something not configured correctly.


All times are GMT -5. The time now is 11:58 PM.