The standard maximum length for a wired ethernet connection is 100 meters, so 20 feet is well within range.
Have you tried reseating the cable jacks or replacing the cable with another known-good cable? It's probably not the cable, but it's easy to test and, if it is the cable, mucking about in software won't do any good.
Beyond that, in order to offer suggestions to you, specific data is required. It would help to know the output of the following commands:
Code:
# cat /etc/*release*
# lspci | grep net
# ip addr (or ifconfig -a)
# ping google.com
# ping 8.8.8.8 <---that's Google. I arbitrarily picked it because it's always up.
# traceroute 8.8.8.8
You can consult the man page (
man [command name]) in the terminal to learn more about each one. Depending on the distro, you may have to run some of the commands as root.
Post the output of those commands here, being sure to
surround it with "code" tags, which become available when you click the "Go Advanced" button at the bottom of the "compose post" window.