I am using Ubuntu 23.10 and an ethernet connection to my router. However, sometimes during the day, my Internet connection gets "lost" for periods that can reach 1 hour sometimes. I can still access the router admin page, but no any other page on the Internet. The Ethernet icon in my system is still as it is (displaying "Connected"), but I don't really have access to the Internet.
It usually happens every morning at 8:30 AM. Sometimes it happens in the afternoon at 1 PM, and sometimes at 8-10 PM as well.
I have checked with my other devices when this happens, and they can access the Internet just fine. So this is not an issue in my router, but perhaps, my Linux/computer. My ability to access the router admin page proves it is not a physical link issue.
How can I debug such a problem when it happens? I don't even know where to start looking.
user$ ip link show
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: enp8s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP mode DEFAULT group default qlen 1000
link/ether 04:(redacted_for_privacy):42:8a brd ff:ff:ff:ff:ff:ff
Another command:
user$ dig google.com
; <<>> DiG 9.18.18-0ubuntu2.1-Ubuntu <<>> google.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 440
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 65494
;; QUESTION SECTION:
;google.com. IN A
;; ANSWER SECTION:
google.com. 243 IN A 216.58.212.46
;; Query time: 14 msec
;; SERVER: 127.0.0.53#53(127.0.0.53) (UDP)
;; WHEN: Thu Feb 22 21:30:10 +03 2024
;; MSG SIZE rcvd: 55
This is ip add
output:
myusername$ ip add
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: enp8s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
link/ether 04:(redacted_for_privacy):8a brd ff:ff:ff:ff:ff:ff
inet 192.168.1.55/24 brd 192.168.1.255 scope global noprefixroute enp8s0
valid_lft forever preferred_lft forever
127.0.0.1 localhost
127.0.1.1 myhostname