Unable to ping anything except localhost despite wired ethernet

All Gurus once were Newbies
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Please stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions prefer the other forums within the support section.
Before you post please read how to get help
Post Reply
bourne_again
Level 1
Level 1
Posts: 6
Joined: Mon Apr 17, 2017 8:07 pm

Unable to ping anything except localhost despite wired ethernet

Post by bourne_again » Sun May 21, 2017 1:01 pm

Hi,

I tried Mint Cinnamon on my secondary box, where it works fantastically well. I fell in love with it so much that I decided to install Mint Cinnamon on my primary box too. My primary box currently is FreeBSD, but I wish to dual-boot Mint Cinnamon 18.1 amd64.

Quite unexpectedly, I am unable to ping the network from Linux install GUI under this box, which has a single wired ethernet interface (Realtek 8111/8168). I am using manual IPv4, with IPv6 disabled.

When I enter the host IP + netmask + gateway/router address, I am able to see a message that the wired profile has been activated. But I am only able to ping the localhost IP (192.168.1.89), not the router IP (192.168.1.1) or any other IP. I just get "Destination host not reachable".

It's fairly damning because I have never had a problem with Linux ethernet earlier. At first I thought this might be a Mint issue, but I get the same syndrome under Manjaro (Arch) too. So Linux is unable to ping the network under this box, whereas FreeBSD works cool.

Can anyone please help me fix the issue ?

Unrelated to this syndrome, there is another Linux problem which haunts me under both my boxes. USB input under Linux works only when the mouse and keyboard are hooked a) into the motherboard directly (not via hub), and b) into USB3 ports (not normal USB ports). This is bearable, but ideally I request things to be fixed such that USB input works through normal USB ports and/or via the hub.

Thanks and Regards
Manish Jain

rene
Level 11
Level 11
Posts: 3722
Joined: Sun Mar 27, 2016 6:58 pm

Re: Unable to ping anything except localhost despite wired ethernet

Post by rene » Mon May 22, 2017 9:31 am

Do you have an incorrect netmask set? Please post/view the output of ip route show.

bourne_again
Level 1
Level 1
Posts: 6
Joined: Mon Apr 17, 2017 8:07 pm

Re: Unable to ping anything except localhost despite wired ethernet

Post by bourne_again » Mon May 22, 2017 12:04 pm

Thanks so much for replying. I have been waiting desperately for help.

I just tried things on my own, just before your message popped up. I have a lot of information that could initiate debugging - although not the output of 'ip route show'.

As things stand, I can make out 2 serious issues with Linux core right now :

1) USB does not work unless using USB3 ports directly on the motherboard (outstanding for at least 1 year now; seen behaviour on both my boxes - this one with Gigabyte AM3 motherboard; and the other with Asus FM2 motherboard),

and now 2) manual IPv4 is iffy - works on my other, secondary box but not on my primary box (with essentially the same settings - only change is a new IP for the localhost) where Linux actually is needed (there is no Windows on the primary box; only FreeBSD 10.3 amd64). This box has 2 SSD's, a Realtek 8111/8168 ethernet chip and an (OpenGL) Sapphire Radeon R5 230 (Caicos) card.

Please stay with me till this issue is closed out. I love Mint Cinnamon, and this box is in need of Linux : - )

The next time I try, I will get you the output of 'ip route show', as well as anything else you might need. Meanwhile, if there is any other info you need, please fill me in.

Here goes what I have. This is output grepped from the setup GUI. As for netmask, I am sure that I always use 255.255.255.0 every time.

I use the following settings :

IP = 192.168.1.<something-new-between-2-and-254>
gateway/router IP = 192.168.1.1 # that is a linux modem; no DHCP
netmask = 255.255.255.0

After applying network settings, I get "Connection activated". But there is no ping to the router.

So I debug :

Code: Select all

mint@mint ~ $ /etc/init.d/networking restart
[ ok ] Restarting networking (via systemctl): networking.service.
mint@mint ~ $ ifconfig -a
enp3s0    Link encap:Ethernet  HWaddr 40:8d:5c:86:fa:18  
          inet addr:192.168.1.86  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::428d:5cff:fe86:fa18/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:101 errors:0 dropped:0 overruns:0 frame:0
          TX packets:33 errors:0 dropped:846 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:9560 (9.5 KB)  TX bytes:3399 (3.3 KB)

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:1914 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1914 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1 
          RX bytes:211345 (211.3 KB)  TX bytes:211345 (211.3 KB)

mint@mint ~ $ arping -D -c 3 -I enp3s0 192.168.1.1
ARPING 192.168.1.1 from 0.0.0.0 enp3s0
Sent 3 probes (3 broadcast(s))
Received 0 response(s)
mint@mint ~ $ echo $?
0

Code: Select all

mint@mint ~ $ tracepath 192.168.1.1
 1?: [LOCALHOST]                                         pmtu 1500
 1:  192.168.1.86                                        717.246ms !H
 1:  192.168.1.86                                        2996.542ms !H
     Resume: pmtu 1500 
mint@mint ~ $ ping 192.168.1.1
PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data.
From 192.168.1.86 icmp_seq=1 Destination Host Unreachable
From 192.168.1.86 icmp_seq=2 Destination Host Unreachable
From 192.168.1.86 icmp_seq=3 Destination Host Unreachable
From 192.168.1.86 icmp_seq=4 Destination Host Unreachable
From 192.168.1.86 icmp_seq=5 Destination Host Unreachable
From 192.168.1.86 icmp_seq=6 Destination Host Unreachable
^C
--- 192.168.1.1 ping statistics ---
8 packets transmitted, 0 received, +6 errors, 100% packet loss, time 7039ms
pipe 3
mint@mint ~ $ ping 192.168.1.86
PING 192.168.1.86 (192.168.1.86) 56(84) bytes of data.
64 bytes from 192.168.1.86: icmp_seq=1 ttl=64 time=0.043 ms
64 bytes from 192.168.1.86: icmp_seq=2 ttl=64 time=0.056 ms
^C
--- 192.168.1.86 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 999ms
rtt min/avg/max/mdev = 0.043/0.049/0.056/0.009 ms

Code: Select all

# lscpi 
00:00.0 Host bridge: Advanced Micro Devices, Inc. [AMD/ATI] RD890 PCI to PCI bridge (external gfx0 port B) (rev 02)
00:02.0 PCI bridge: Advanced Micro Devices, Inc. [AMD/ATI] RD890 PCI to PCI bridge (PCI express gpp port B)
00:04.0 PCI bridge: Advanced Micro Devices, Inc. [AMD/ATI] RD890 PCI to PCI bridge (PCI express gpp port D)
00:09.0 PCI bridge: Advanced Micro Devices, Inc. [AMD/ATI] RD890 PCI to PCI bridge (PCI express gpp port H)
00:0a.0 PCI bridge: Advanced Micro Devices, Inc. [AMD/ATI] RD890 PCI to PCI bridge (external gfx1 port A)
00:11.0 SATA controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 SATA Controller [AHCI mode] (rev 40)
00:12.0 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB OHCI0 Controller
00:12.2 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB EHCI Controller
00:13.0 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB OHCI0 Controller
00:13.2 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB EHCI Controller
00:14.0 SMBus: Advanced Micro Devices, Inc. [AMD/ATI] SBx00 SMBus Controller (rev 42)
00:14.1 IDE interface: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 IDE Controller (rev 40)
00:14.2 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] SBx00 Azalia (Intel HDA) (rev 40)
00:14.3 ISA bridge: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 LPC host controller (rev 40)
00:14.4 PCI bridge: Advanced Micro Devices, Inc. [AMD/ATI] SBx00 PCI to PCI Bridge (rev 40)
00:14.5 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB OHCI2 Controller
00:16.0 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB OHCI0 Controller
00:16.2 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB EHCI Controller
00:18.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 10h Processor HyperTransport Configuration
00:18.1 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 10h Processor Address Map
00:18.2 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 10h Processor DRAM Controller
00:18.3 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 10h Processor Miscellaneous Control
00:18.4 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 10h Processor Link Control
01:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Caicos [Radeon HD 6450/7450/8450 / R5 230 OEM]
01:00.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Caicos HDMI Audio [Radeon HD 6400 Series]
02:00.0 USB controller: VIA Technologies, Inc. VL805 USB 3.0 Host Controller (rev 01)
03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 0c)
04:00.0 PCI bridge: ASMedia Technology Inc. ASM1083/1085 PCIe to PCI Bridge (rev 04)
05:00.0 Multimedia audio controller: C-Media Electronics Inc CMI8738/CMI8768 PCI Audio (rev 10)
05:00.1 Communication controller: C-Media Electronics Inc CM8738 (rev 20)
Last edited by WharfRat on Mon May 22, 2017 3:26 pm, edited 1 time in total.
Reason: Added code tag to clean it up

rene
Level 11
Level 11
Posts: 3722
Joined: Sun Mar 27, 2016 6:58 pm

Re: Unable to ping anything except localhost despite wired ethernet

Post by rene » Mon May 22, 2017 3:20 pm

Your initial report seemed consistent with having set a 255.255.255.255 netmask (perhaps as a result of netmask syntax differences with FreeBSD) but this does not seem to be the case then. ip route show might still reveal something but I then doubt it; when I just now experimented a bit bad default route assignments easily resulted in "Network Unreachable" error messages but your "Destination Host Unreachable" I have up to now only been able to reproduce by yanking out the cable. That is, I would for now concentrate on the banal. You said thing work(ed) with FreeBSD but is that the case when you boot into it now or was it the case just before you tripped over the cable?

As to your USB issue by the way: I'm typing this on a wireless keyboard with USB receiver plugged into a USB2 hub connected to a USB2 port. A powered hub but that is the only issue that comes to mind: the hub not supplying enough power for all connected devices. For that one it seems things also work(ed) in FreeBSD, but that would really make very little sense...

User avatar
WharfRat
Level 21
Level 21
Posts: 13084
Joined: Thu Apr 07, 2011 8:15 pm

Re: Unable to ping anything except localhost despite wired ethernet

Post by WharfRat » Mon May 22, 2017 3:53 pm

From these results

Code: Select all

mint@mint ~ $ tracepath 192.168.1.1
 1?: [LOCALHOST]                                         pmtu 1500
 1:  192.168.1.86                                        717.246ms !H
 1:  192.168.1.86                                        2996.542ms !H
     Resume: pmtu 1500 
it would appear that the packets are not leaving the box or it's getting kicked back or the router address is 192.168.1.86 :?

Is the router setup correctly :?:
ImageImage

bourne_again
Level 1
Level 1
Posts: 6
Joined: Mon Apr 17, 2017 8:07 pm

Re: Unable to ping anything except localhost despite wired ethernet

Post by bourne_again » Wed May 31, 2017 6:01 am

Hi,

If anyone is following this issue, I tried installing Mint again today. I get the same problem : I am unable to ping my router (192.168.1.1) using manual IPv4, despite getting the message that the connection was activated. I have the output of 'ip route show' (pasted at bottom of this post).

Can someone please help me debug the issue ? I love Mint Cinnamon, and this box needs a Linux installation. Since FreeBSD works like a charm (and Windows XP used to work well till I moved from normal SATA hard disk to SSD), this has to be a Linux-specific issue. If anybody can provide me the guidelines and commands, I can help drill down the issue.

Thanks for following up
Manish Jain

Outputs :

mint@mint /tmp $ ifconfig -a
enp3s0 Link encap:Ethernet HWaddr 40:8d:5c:86:fa:18
inet addr:192.168.1.196 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::79ad:70b5:7c4c:ec1d/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:34 errors:0 dropped:0 overruns:0 frame:0
TX packets:18 errors:0 dropped:376 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:2898 (2.8 KB) TX bytes:1525 (1.5 KB)

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:660 errors:0 dropped:0 overruns:0 frame:0
TX packets:660 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1
RX bytes:52247 (52.2 KB) TX bytes:52247 (52.2 KB)

mint@mint /tmp $ ip route show
default via 192.168.1.1 dev enp3s0 proto static metric 100
169.254.0.0/16 dev enp3s0 scope link metric 1000
192.168.1.0/24 dev enp3s0 proto kernel scope link src 192.168.1.196 metric 100

rene
Level 11
Level 11
Posts: 3722
Joined: Sun Mar 27, 2016 6:58 pm

Re: Unable to ping anything except localhost despite wired ethernet

Post by rene » Wed May 31, 2017 6:37 am

As WharfRat noted, your tracepath output seems weird. Also wondering why you have a 169.254 route configured rather than just 192.168.1 -- but let's first get a very particular issue out of the way since it does seem your specific NIC may have issues on 16.04. Does it help any if you

Code: Select all

sudo apt-get install r8168-dkms
and reboot?

[EDIT] Not likely, without network connectivity and/or from the Live system. Can you give that system temporary internet connectivity with for example a USB Wi-Fi dongle? If that's an issue, the in fact likely easiest first test is trying with Mint 17.3; I'm not finding the same trouble reports from Ubuntu 14.04...

bourne_again
Level 1
Level 1
Posts: 6
Joined: Mon Apr 17, 2017 8:07 pm

Re: Unable to ping anything except localhost despite wired ethernet

Post by bourne_again » Wed May 31, 2017 8:35 am

Hi,

Thanks for replying.

I doubt whether I could do anything meaningful without internet access. As for installing anything manually, that appears out of the question from setup GUI. BTW, I am using Mint 18.1 (which I think is the newest release).

If there is a .deb file for r8168-dkms available, I could download it from FreeBSD and use it during Linux setup. Other than that, I am really struggling for ideas how to get Mint up and running : - (

Manish Jain

rene
Level 11
Level 11
Posts: 3722
Joined: Sun Mar 27, 2016 6:58 pm

Re: Unable to ping anything except localhost despite wired ethernet

Post by rene » Wed May 31, 2017 8:40 am

As said, trying with Mint 17.3 is a good first test if you haven't installed anything yet anyway: https://www.linuxmint.com/release.php?id=26. Note, not random suggestion: is expected to be useful as a test at least (and although not so much advised, you could also upgrade to 18 from 17.3).

bourne_again
Level 1
Level 1
Posts: 6
Joined: Mon Apr 17, 2017 8:07 pm

Re: Unable to ping anything except localhost despite wired ethernet

Post by bourne_again » Wed May 31, 2017 11:26 am

I cracked it !! : - )

Since every Linux distro was having problems, I decided to play around with my BIOS settings. (I disable UEFI; pure legacy BIOS).

I found a disabled setting : EHCI handoff.

Further, there was a setting for IOMMU controller which was disabled. I remember from my experiments on my second box that Linux, for some reason, needs the IOMMU enabled.

I enabled that too. And when I booted Linux installer, presto ! everything works : - )

Now my USB works perfectly (not just as USB3 exclusively), and I have internet access too. I do hope my ado will be someone else's salvation - if anyone has problems pinging the network, try enabling IOMMU (and perhaps EHCI handoff too).

Thanks for following up. I look to be part of the Mint community in the coming days.
Manish Jain

rene
Level 11
Level 11
Posts: 3722
Joined: Sun Mar 27, 2016 6:58 pm

Re: Unable to ping anything except localhost despite wired ethernet

Post by rene » Wed May 31, 2017 12:14 pm

Now that you mention it, yes, IOMMU trouble was known on that generation of AMD chipset. Would've never thought of it though. Welcome :)

User avatar
WharfRat
Level 21
Level 21
Posts: 13084
Joined: Thu Apr 07, 2011 8:15 pm

Re: Unable to ping anything except localhost despite wired ethernet

Post by WharfRat » Wed May 31, 2017 12:53 pm

bourne_again wrote:I cracked it !! : - )

Since every Linux distro was having problems, I decided to play around with my BIOS settings. (I disable UEFI; pure legacy BIOS).
It's good to hear that you solved your problem. The BIOS settings have gotten more confusing, especially since the introduction of UEFI.

Who would have thought to look at those settings for a network problem, but then again your output - especially from traceroute - didn't make any sense at all.

Good luck and enjoy :wink:
ImageImage

Post Reply

Return to “Newbie Questions”