I use WiFi for connecting to internet using my Ubuntu 18.04.2. It works fine. But, after some random interval of time, the internet connectivity goes down. The WiFi is still on and the device is connected to it(I also verified this by checking the active client list of my router by logging into the router from another device). After the connectivity goes down, I can't even ping my gateway(Router's IP). If I try to ping my router(IP 192.168.0.1), it shows that destination host is unreachable
.
So, for troubleshooting the issue, I decided to take a look at my ARP table. After running the arp command, I see the following output:
Address HWtype HWaddress Flags Mask Iface
192.168.0.1 (incomplete) wlp13s0
192.168.0.1 is my router's IP address. This is it! the ARP requests are incomplete. This is the problem. But, I want to know exactly why this is happening. I know ARP poisoning is not being performed because, even if I disconnect all other devices and then perform an ARP request after clearing ARP cache, the problem still persists.
Surprisingly, if I turn off the WiFi and then turn it on again, I get my internet access back. This is a "temporary" fix of the issue. After getting my internet access back, if I run ARP request, I get the following response:
Address HWtype HWaddress Flags Mask Iface
192.168.0.1 ether My Router's MAC Addr C wlp13s0
Can someone help me resolving this issue and tell me what next steps should I perform to fix this permanently?
Extra info:
My device uses RTL8723BE for WiFi connectivity and it has a known issue for having poor WiFi reception in Ubuntu. So, I use the rtlwifi_new
driver by Larry Finger as suggested in this answer: https://askubuntu.com/a/722904/925252
ant_sel
parameter to fix antennas? – Pilot6 Mar 03 '19 at 10:00modinfo rtl8723be | grep parm
show? What is your kernel version? – Pilot6 Mar 03 '19 at 10:06parm: swenc:Set to 1 for software crypto (default 0) parm: ips:Set to 0 to not use link power save (default 1) parm: swlps:Set to 1 to use SW control power save (default 0) parm: fwlps:Set to 1 to use FW control power save (default 1) parm: msi:Set to 1 to use MSI interrupts mode (default 0) parm: debug:Set debug level (0-5) (default 0) (int) parm: disable_watchdog:Set to 1 to disable the watchdog (default 0) parm: ant_sel:Set to 1 or 2 to force antenna number (default 0)
– user3752033 Mar 03 '19 at 10:11ant_sel
should work. Try 1 and 2 carefully. – Pilot6 Mar 03 '19 at 10:11Output of
nmcli radio
:WIFI-HW WIFI WWAN-HW WWAN
enabled enabled enabled enabled
and output of
rfkill
:
– user3752033 Mar 04 '19 at 16:42ID TYPE DEVICE SOFT HARD
1 wlan phy0 unblocked unblocked
3 bluetooth hci0 blocked unblocked