Score:0

Home PC keeps disconneting from internet

gt flag

I have two routers at home.
The 'main' one is connected to internet (92.168.1.1), has Wi-Fi and my desktop PC (192.168.1.10) is connected to it via ethernet cable.
Since the Wi-Fi signal is weak in my living room, I had second router (TP-Link Archer-C6 - 192.168.1.5) in the 'Access Point' mode. This means it is connected to the main router via cable and it just 'extends' the wifi (has wifi network with the same name/password). I had my NAS, TV, soundbar and Alexa connected to this second router. My phone and tablet is connected to my wifi and it changes the router dynamically based on the room i'm in. See the picture.
I have a problem with my computer though. Sometimes (I don't know the exact condition under which this happens) my computer lost access to the internet. For example I open a web page but after 5 seconds I'm disconnected. If I reconnect my network interface I got the connection again, but only for few seconds.
I'm not sure what can be the issue, but I think it might be that the second router DHCP interferes with the main router. But everything connected to the second router via cable (TV, NAS) has access to the internet and also my phone connected to the main router is capable of accessing external pages.
I haven't found anything interesting in my log files (Ubuntu 18.04). Here is the output of some commands during the time the connection is lost

root:~# ifconfig enp7s0; ip r; ping 192.168.1.1 -c 1 -W 1; arp -n; ping -c 1 -w 1 192.168.1.5 
enp7s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500 
        inet 192.168.1.10  netmask 255.255.255.0  broadcast 192.168.1.255 
        inet6 fe80::fe4f:aced:12a0:9d12  prefixlen 64  scopeid 0x20<link> 
        ether b4:2e:99:3f:29:30  txqueuelen 1000  (Ethernet) 
        RX packets 938782  bytes 1168780050 (1.1 GB) 
        RX errors 0  dropped 0  overruns 0  frame 0 
        TX packets 454949  bytes 67960742 (67.9 MB) 
        TX errors 49  dropped 0 overruns 0  carrier 0  collisions 0 
 
default via 192.168.1.1 dev enp7s0 proto dhcp metric 100  
169.254.0.0/16 dev enp7s0 scope link metric 1000  
192.168.1.0/24 dev enp7s0 proto kernel scope link src 192.168.1.10 metric 100  
PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data. 
 
--- 192.168.1.1 ping statistics --- 
1 packets transmitted, 0 received, 100% packet loss, time 0ms 
 
Address                  HWtype  HWaddress           Flags Mask            Iface 
192.168.1.1              ether   d8:7d:7f:b3:16:78   C                     enp7s0 
192.168.1.3              ether   00:11:32:b3:57:42   C                     enp7s0 
192.168.1.5              ether   cc:32:e5:78:0b:06   C                     enp7s0 
PING 192.168.1.5 (192.168.1.5) 56(84) bytes of data. 
64 bytes from 192.168.1.5: icmp_seq=1 ttl=64 time=0.346 ms 
 
--- 192.168.1.5 ping statistics --- 
1 packets transmitted, 1 received, 0% packet loss, time 0ms 
rtt min/avg/max/mdev = 0.346/0.346/0.346/0.000 ms

lan network

Please note that there is not much to set up on the second router while it's in the Access Point mode.
I can also ping both routers from NAS (ping 192.168.1.1 works fine) Do you have any idea what could be the problem? Or how can I get more information? Thanks

user535733 avatar
cn flag
Intermittent networking failure of one device on the network? Check the seating of the network cable at both ends. Better yet, try a different cable. They can fail invisibly.
chili555 avatar
cn flag
Does the problem persist if you set the home PC to a static IP address far outside the DHCP pool in the manin router; 192.168.1.150, for example?
Nmath avatar
ng flag
I believe this is probably a problem with how you set up your network and not anything to do with Ubuntu. You can't just set up a second wifi router with the same network ID and password as the other. "Mesh" routers are good at this task when set up properly. Some other (older) routers can also be set up to extend a wireless network but in my experience the technical implementation is so ham-fisted that the performance is generally pretty bad.
heynnema avatar
ru flag
You're only having a problem on 192.168.1.10, correct? On that machine, show me `sudo lshw -C network`. Also, the two routers are connected via LAN ports, correct?
Score:0
gt flag

ok, so I've tried to set up static IP address and during that I've noticed that my other phone's IP is interferring with my PC. I reassigned that and it's solved now.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.