Lubuntu 16.04 - no internet on the new ISP "Gateway/Cable modem/coax" connection
It is Lubuntu mini.iso with no desktop environment, only fvwm, so please, I can use only the terminal. I don't have any network manager installed.
There are two different routers: On the sim router the wired internet connection works for the Lubuntu device. Immediately as I change the Ethernet cable from the above SIM router, to the other provider(router) which has only tv cable/coax connection through only a cable model(Gateway), there is no more internet connection. With the same network cable/router port(from the second tv cable/coax/Gateway ISP) the internet works on Windows 7 and 10. From what I could see for the two different routers/connections the IPs are dynamically. Tell me please what logs do you need from the working and no-working connections, in order to see the differences... Thank you. |
Thank you for your replies...
Working internet connection: Code:
~$ ifconfig -a Code:
~$ ifconfig -a There are two different routers: One is connected to the internet through a sim card - one ISP (Linux has internet) The second ISP is connected to the internet through a coaxial/tv cable/Gateway/Modem cable. (no internet on Linux for this one) No configurations have been changed to any of the two routers or any machines Linux/Windows 7/Windows 10. Only change the same cable for all the 3 difference devices from a router to another. Windows 10 and Windows 7 have internet connection on both routers. Linux has internet only on the first SIM router. For the non working internet connection to the link led from the router where is the Linux Ethernet cabled plugged, only the orange led one blinks, but for the other internet working devices connected via Ethernet cable to the same router, blinks also the green led on the router. Working internet connection: Code:
~$ ping google.com Code:
~$ ping google.com |
If I understand what you have then I'd first say that the major battle is over. Your nic is supported and it is getting a dhcp address.
The second part may be to log into the router/modem for more info. Use dig or nslookup for dns resolution. Not sure how you determined that internet isn't working so tell us. |
Thank you jefro,
Could this help you plese? For the non working internet connection to the link led from the router where is the Linux Ethernet cabled plugged, only the orange led one blinks, but for the other internet working devices connected via Ethernet cable to the same router, blinks also the green led on the router. Working internet connection: Code:
~$ ping google.com Code:
~$ ping google.com |
I would guess the cable router LAN subnet is different then the DSL router 192.168.8.0 versus typically 192.168.1.0 unless you manually changed them. By just switching the cable from one router to the other it can not communicate with anything. Try restarting the network.
sudo systcmctl restart networking If you switch the cable back you need to rerun the command. Restarting the computer after switching the cable will also automatically configure the computer for that router. |
I run
Code:
dhcpcd eth0 I restarted the device to see if it will still work but when Linux loaded after restart it appeared in the console: Code:
Failed to start LSB: IPV4 DHCP client with IPV4ALL support. After starting Linux with the non-working internet in, I also tried Code:
dhcpcd eth0 Code:
eth0: waiting for carrier I have just(nothing less or more) only moved the cable from the non-internet connection router to the internet working connection router Code:
dhcpcd eth0 Unplug the working internet connection and plug in to the non-internet connection, but surprise, now I am posting from the non-working internet connection which it seams that now is working because of the Code:
dhcpcd eth0 Regards. Thank you. |
As soon as "waiting for carrier" without touching anything else, I unplugged only the head on the network cable from the Linux machine, insert it in the Windows 7 machine, disable the wireless at all from the Windows machine, enable LAN, and internet is working... This could mean that the router/cable/port of the router work properly?
I will try also to reset the router... Could it be any other configurations of Linux, considering that the internet works after I use Code:
dhcpcd eth0 |
Instead of moving wires all over, maybe power down linux completely then attach to some modem and boot. Then use diag tools to see what is going on.
|
The only way the internet was working IN THE NON-INTERNET WORKING ROUTER (the same network cable/the same router port, everything the same like when it doesn't work) was
Code:
dhcpcd eht0 But if I will restart the machine, no internet until I will not repeat the before steps. I've also reset for a few times the router, restarted it (unplug from the electricity for at least 30 second) tried to reconnect the Linux machine to the non-internet-router with another cable router and also to another port router, but still not working, until I will not do the step from the beginning. The same Ethernet cable and router port from the non-internet router provide internet instantly when is plugged into another Windows 7 and Windows 10 machines, without to change anything in Windows or in the fresh/new/from scratch reset router. Code:
uname -a Code:
lsb_release -a https://paste.debian.net/hidden/8226e135/ All the following commands are outputed with the internet working(connected to the usually non-internet router, until I will not do the steps from the beginning of this replay) Code:
lshw -C network *-network DISABLED Code:
more /etc/resolv.conf Code:
route The var/log/kern.log it was to big to paste anywhere, and I don't know why I could not upload the file to any file hosting site, or on Google drive, or elsewhere. The file has only 2.1M. I've also tried to copy it/rename it, but it is not possible to upload it anywhere. even here on the forum as an File Attachment. Maybe because of the file content. Sincerely, |
Considering the before post, when I was connected on the internet through the regularly/usually non-working-internet router, but this time, before restart the internet was working on it(the reason for the working internet connection you can see at the beginning of the before post)
I only restarted the machine, without to touch anything else, router, cable or anything else. Immediately after restart: Code:
~$ ping google.com Code:
~$ ping 8.8.8.8 Code:
~$ sudo dhcpcd eth0 Code:
ping 192.168.110.1 Code:
:~$ dmesg |grep eth[0-9] Code:
:~$ sudo lshw -C network Code:
:~$ ifconfig -a Code:
:~$ more /etc/resolv.conf Code:
:~$ route |
Internet working connection on the regularly non-internet working router:
Code:
:~$ ethtool eth0 Code:
:~$ ethtool eth0 Code:
:~$ ethtool eth0 |
It seams that these two commands resolve the problem:
Code:
sudo ethtool -s eth0 autoneg off speed 100 duplex full Code:
sudo dhcpcd eth0 It seams that in adding them in /etc/rc.local doesn't have any effect. Still at he boot there are these 3 issues: Code:
[FAILED] Failed to start LSB: IPV4 DHCP client with IPV4LL support The last error it appears always only when the internet connection is not recognized, but never when the internet connection works from the beginning immediately after restart, without to use any commands in order to start the internet. |
It seams that the final result, in order to have internet access automatically after reboot/shutdown/sleep with no more manual commands:
/etc/network/interfaces Code:
# This file describes the network interfaces available on your system Code:
#!/bin/sh -e |
All times are GMT -5. The time now is 01:56 PM. |