PC Won't connect to Internet but networking OK <Solved>

Questions about Wi-Fi and other network devices, file sharing, firewalls, connection sharing etc
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
User avatar
lsemmens
Level 11
Level 11
Posts: 3951
Joined: Wed Sep 10, 2014 9:07 pm
Location: Rural South Australia

PC Won't connect to Internet but networking OK <Solved>

Post by lsemmens »

My office PC has decided it does not want to connect to the internet. I connects to the rest of my home network fine and I can share files. but, all I get with Firefox ins a We're having trouble finding.... for any site (Server not found). If I try to check for updates I get a "Failed to fetch......" error. It connects via WiFi and I've turned WiFi off and back on again.
Spec is

Code: Select all

System:    Host: DebbiePC Kernel: 4.15.0-29-generic x86_64 (64 bit gcc: 5.4.0)
           Desktop: Cinnamon 3.6.7 (Gtk 3.18.9-1ubuntu3.3)
           Distro: Linux Mint 18.3 Sylvia
Machine:   System: Acer product: Veriton 5900Pro v: R03-A3
           Mobo: Acer model: FQ965M v: MP
           Bios: Phoenix v: R03-A3 date: 06/13/2007
CPU:       Dual core Intel 2140 (-MCP-) cache: 1024 KB
           flags: (lm nx sse sse2 sse3 ssse3) bmips: 6383
           clock speeds: max: 1600 MHz 1: 1196 MHz 2: 1197 MHz
Graphics:  Card: Advanced Micro Devices [AMD/ATI] Redwood PRO [Radeon HD 5550/5570/5630/6510/6610/7570]
           bus-ID: 01:00.0
           Display Server: X.Org 1.18.4 drivers: ati,radeon (unloaded: fbdev,vesa)
           Resolution: 1920x1080@60.00hz, 1360x768@60.02hz
           GLX Renderer: AMD REDWOOD (DRM 2.50.0 / 4.15.0-29-generic, LLVM 6.0.0)
           GLX Version: 3.0 Mesa 18.0.5 Direct Rendering: Yes
Audio:     Card-1 Intel 82801H (ICH8 Family) HD Audio Controller
           driver: snd_hda_intel bus-ID: 00:1b.0
           Card-2 Advanced Micro Devices [AMD/ATI] Redwood HDMI Audio [Radeon HD 5000 Series]
           driver: snd_hda_intel bus-ID: 01:00.1
           Sound: Advanced Linux Sound Architecture v: k4.15.0-29-generic
Network:   Card-1: Intel 82566DM Gigabit Network Connection
           driver: e1000e v: 3.2.6-k port: f900 bus-ID: 00:19.0
           IF: enp0s25 state: down mac: <filter>
           Card-2: Qualcomm Atheros AR922X Wireless Network Adapter
           driver: ath9k bus-ID: 03:02.0
           IF: wlp3s2 state: up mac: <filter>
Drives:    HDD Total Size: 80.0GB (14.7% used)
           ID-1: /dev/sda model: ST380817AS size: 80.0GB
           Optical: /dev/sr0 model: HL-DT-ST DVDRAM GSA-H62N
           rev: CL00 dev-links: cdrom,cdrw,dvd,dvdrw
           Features: speed: 48x multisession: yes
           audio: yes dvd: yes rw: cd-r,cd-rw,dvd-r,dvd-ram state: running
Partition: ID-1: / size: 70G used: 7.2G (11%) fs: ext4 dev: /dev/sda1
           ID-2: swap-1 size: 4.22GB used: 0.00GB (0%) fs: swap dev: /dev/sda5
RAID:      No RAID devices: /proc/mdstat, md_mod kernel module present
Sensors:   System Temperatures: cpu: 60.0C mobo: N/A gpu: 63.5
           Fan Speeds (in rpm): cpu: N/A
Info:      Processes: 168 Uptime: 2:35 Memory: 639.1/3879.9MB
           Init: systemd runlevel: 5 Gcc sys: 5.4.0
           Client: Shell (bash 4.3.481) inxi: 2.2.35 
leigh@DebbiePC ~ $ 
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Fully mint Household
Out of my mind - please leave a message
ajgringo619

Re: PC Won't connect to Internet but networking OK

Post by ajgringo619 »

Can you post the results of nmcli device show?
User avatar
lsemmens
Level 11
Level 11
Posts: 3951
Joined: Wed Sep 10, 2014 9:07 pm
Location: Rural South Australia

Re: PC Won't connect to Internet but networking OK

Post by lsemmens »

Here 'tis, thanks

Code: Select all

GENERAL.DEVICE:                         wlp3s2
GENERAL.TYPE:                           wifi
GENERAL.HWADDR:                         A0:F3:C1:69:E2:CF
GENERAL.MTU:                            0
GENERAL.STATE:                          100 (connected)
GENERAL.CONNECTION:                     Auto Office
GENERAL.CON-PATH:                       /org/freedesktop/NetworkManager/ActiveConnection/1
IP4.ADDRESS[1]:                         192.168.1.2/24
IP4.GATEWAY:                            
IP4.ROUTE[1]:                           dst = 169.254.0.0/16, nh = 0.0.0.0, mt = 1000
IP6.ADDRESS[1]:                         fe80::94a9:10d9:b96b:81c6/64
IP6.GATEWAY:                            

GENERAL.DEVICE:                         enp0s25
GENERAL.TYPE:                           ethernet
GENERAL.HWADDR:                         00:1C:25:24:74:52
GENERAL.MTU:                            1500
GENERAL.STATE:                          20 (unavailable)
GENERAL.CONNECTION:                     --
GENERAL.CON-PATH:                       --
WIRED-PROPERTIES.CARRIER:               off

GENERAL.DEVICE:                         lo
GENERAL.TYPE:                           loopback
GENERAL.HWADDR:                         00:00:00:00:00:00
GENERAL.MTU:                            65536
GENERAL.STATE:                          10 (unmanaged)
GENERAL.CONNECTION:                     --
GENERAL.CON-PATH:                       --
IP4.ADDRESS[1]:                         127.0.0.1/8
IP4.GATEWAY:                            
IP6.ADDRESS[1]:                         ::1/128
IP6.GATEWAY:                            
Fully mint Household
Out of my mind - please leave a message
ajgringo619

Re: PC Won't connect to Internet but networking OK

Post by ajgringo619 »

I'm not seeing any DNS or default gateway settings. I would open Network Manager and check to see what's wrong. Here's the same command on my system:

Code: Select all

GENERAL.DEVICE:                         enp5s0
GENERAL.TYPE:                           ethernet
GENERAL.HWADDR:                         FC:AA:14:2E:44:0D
GENERAL.MTU:                            1500
GENERAL.STATE:                          100 (connected)
GENERAL.CONNECTION:                     Wired connection 1
GENERAL.CON-PATH:                       /org/freedesktop/NetworkManager/ActiveConnection/6
WIRED-PROPERTIES.CARRIER:               on
IP4.ADDRESS[1]:                         192.168.0.22/24
IP4.GATEWAY:                            192.168.0.1
IP4.ROUTE[1]:                           dst = 192.168.0.0/24, nh = 0.0.0.0, mt = 100
IP4.ROUTE[2]:                           dst = 169.254.0.0/16, nh = 0.0.0.0, mt = 1000
IP4.ROUTE[3]:                           dst = 0.0.0.0/0, nh = 192.168.0.1, mt = 100
IP4.DNS[1]:                             208.67.222.222
IP4.DNS[2]:                             208.67.220.220
IP6.GATEWAY:                            --

GENERAL.DEVICE:                         54:09:55:A9:66:48
GENERAL.TYPE:                           bt
GENERAL.HWADDR:                         54:09:55:A9:66:48
GENERAL.MTU:                            0
GENERAL.STATE:                          30 (disconnected)
GENERAL.CONNECTION:                     --
GENERAL.CON-PATH:                       --

GENERAL.DEVICE:                         lo
GENERAL.TYPE:                           loopback
GENERAL.HWADDR:                         00:00:00:00:00:00
GENERAL.MTU:                            65536
GENERAL.STATE:                          10 (unmanaged)
GENERAL.CONNECTION:                     --
GENERAL.CON-PATH:                       --
IP4.ADDRESS[1]:                         127.0.0.1/8
IP4.GATEWAY:                            --
IP6.GATEWAY:                            --
Last edited by ajgringo619 on Thu Nov 01, 2018 12:32 am, edited 1 time in total.
User avatar
trytip
Level 14
Level 14
Posts: 5367
Joined: Tue Jul 05, 2016 1:20 pm

Re: PC Won't connect to Internet but networking OK

Post by trytip »

any output for nslookup linuxmint.com
Image
User avatar
lsemmens
Level 11
Level 11
Posts: 3951
Joined: Wed Sep 10, 2014 9:07 pm
Location: Rural South Australia

Re: PC Won't connect to Internet but networking OK

Post by lsemmens »

Connection timeout.
Fully mint Household
Out of my mind - please leave a message
User avatar
trytip
Level 14
Level 14
Posts: 5367
Joined: Tue Jul 05, 2016 1:20 pm

Re: PC Won't connect to Internet but networking OK

Post by trytip »

looks like you have no DNS resolve.
systemd-resolve --status | grep "DNS Servers:"
Image
User avatar
lsemmens
Level 11
Level 11
Posts: 3951
Joined: Wed Sep 10, 2014 9:07 pm
Location: Rural South Australia

Re: PC Won't connect to Internet but networking OK

Post by lsemmens »

I get an "unrecognised option '--status'" message
Fully mint Household
Out of my mind - please leave a message
User avatar
lsemmens
Level 11
Level 11
Posts: 3951
Joined: Wed Sep 10, 2014 9:07 pm
Location: Rural South Australia

Re: PC Won't connect to Internet but networking OK

Post by lsemmens »

I just realised that it may not be worth persevering with this, If my auction plans go as I hope tomorrow, I'll be re-building this machine in a week or so anyway. Of course, if not, then I'll have to get it working.
Fully mint Household
Out of my mind - please leave a message
redlined

Re: PC Won't connect to Internet but networking OK

Post by redlined »

lsemmens wrote: Thu Nov 01, 2018 12:22 am Here 'tis, thanks

Code: Select all

GENERAL.DEVICE:                         wlp3s2
GENERAL.TYPE:                           wifi
GENERAL.HWADDR:                         A0:F3:C1:69:E2:CF
GENERAL.MTU:                            0
GENERAL.STATE:                          100 (connected)
GENERAL.CONNECTION:                     Auto Office
GENERAL.CON-PATH:                       /org/freedesktop/NetworkManager/ActiveConnection/1
IP4.ADDRESS[1]:                         192.168.1.2/24
IP4.GATEWAY:                            
IP4.ROUTE[1]:                           dst = 169.254.0.0/16, nh = 0.0.0.0, mt = 1000
IP6.ADDRESS[1]:                         fe80::94a9:10d9:b96b:81c6/64
IP6.GATEWAY:                            
with no gateway, in this case one as DHCP server, is telling your wifi adapter who it is (and how to operate on network) so nothing is going anywhere but to 169.254.x.x which is non-routable.

Check your wifi adapter setting in NM for IPv4&6 tab, method: "automatic (DHCP)" or use DHCP for address only and manual DNS (try 1.1.1.1, 8.8.8.8, 9.9.9.9 for cloudflare, google and quad9 public DNS servers, respectively) or go full static address and DNS.

It does appear that you have a static setting for address 192.168.1.2 which tells me you are on a private network (behind a router, etc) and as long as your DHCP server hasn't assigned that x.x.x.2 address to another then it should let you through...except you have no gateway (router/DHCP server) assigning DNS to help get you anywhere. once wifi adapter knows where the gateway is then the rest should get sorted..

Your options are to either go full DHCP assigned (address and DNS), DHCP assigned address and manual DNS, or static (manual both) and ensure DHCP server is ok with your choice. This need be done for both IPv4 tab and IPv6 tab in NM to get both IPv4&6 routing. If the wifi adapter will not do the automagic thing then I would look at something interfering with DHCP server packets- perhaps the static 192.168.2.1 address conflicts with another already having it so DHCP server (gateway) ignores it, otherwise I'd look for a firewall on computer or somewhere in lan/router/switch is blocking.

Hope this helps! (insert my "ima linux newbie" warning here:)
User avatar
lsemmens
Level 11
Level 11
Posts: 3951
Joined: Wed Sep 10, 2014 9:07 pm
Location: Rural South Australia

Re: PC Won't connect to Internet but networking OK

Post by lsemmens »

I'm currently using other computers on the same network, in fact the one I am typing this on is a "new" one on the network, so I doubt that the issue is router based. I was hoping to upgrade my server and then trickle down the components from that to this machine. Did not happen, so I shall have to fix it. When I get five minutes, I shall upgrade it to Mint 19 as it is the only machine on the network that is not running Mint 19. FWIW Firewall in the machine is turned off. I'd have considered that assigning the same address to two machines would affect access to the entire network by both of those machines. I can address the local network with no issues.

I shall spend a bit more on this machine sometime in the next week. For now I must get two "new" laptops working in Mint. 'Nutha thread coming up, ;D
Fully mint Household
Out of my mind - please leave a message
User avatar
lsemmens
Level 11
Level 11
Posts: 3951
Joined: Wed Sep 10, 2014 9:07 pm
Location: Rural South Australia

Re: PC Won't connect to Internet but networking OK <Solved>

Post by lsemmens »

Turned out there may have been an address conflict as I reset the address to automatic and disabled IPv6 (again) and it all started. Disconnected and then re-connected to wifi and all works as intended. Since then I've upgraded that machine to LM19 so all of my machines are on the same page. :P
Fully mint Household
Out of my mind - please leave a message
Locked

Return to “Networking”