[SOLVED] Wired connection not working, WiFi works fine!
Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
We clearly see that my enp4s0 (eth0) interface doesn't have an IP address. If I replug my ethernet cable I'll have a temporary IPv6 address for a while then it'll disappear, here is an example :
$ cat /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
source /etc/network/interfaces.d/*
# The loopback network interface
auto lo
iface lo inet loopback
I tried to add in the /etc/network/interfaces file those lines :
auto enp4s0
allow-hotplug enp4s0
iface enp4s0 inet dhcp
and enable in /etc/NetworkManager/NetworkManager.conf file the "managed" field but still not working. (Of course I restarted the services).
I also tried "sudo dhclient -v enp4s0", here is the output :
Quote:
$ sudo dhclient -v enp4s0
Internet Systems Consortium DHCP Client 4.3.5
Copyright 2004-2016 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/
Listening on LPF/enp4s0/50:46:5d:46:c2:ce
Sending on LPF/enp4s0/50:46:5d:46:c2:ce
Sending on Socket/fallback
DHCPDISCOVER on enp4s0 to 255.255.255.255 port 67 interval 6
DHCPDISCOVER on enp4s0 to 255.255.255.255 port 67 interval 9
DHCPDISCOVER on enp4s0 to 255.255.255.255 port 67 interval 8
DHCPDISCOVER on enp4s0 to 255.255.255.255 port 67 interval 14
DHCPDISCOVER on enp4s0 to 255.255.255.255 port 67 interval 17
DHCPDISCOVER on enp4s0 to 255.255.255.255 port 67 interval 7
No DHCPOFFERS received.
No working leases in persistent database - sleeping.
I also noticed on the output of ifconfig a new line :
Like frankbell said, I tried a different port and it worked. The weird thing is that it stopped working after an update, this is why I thought it has something to do with it.
Rule N°1: always try easy things first.
Thank you all for the support.
Last edited by Skipper3121; 11-15-2018 at 05:23 AM.
The weird thing is that it stopped working after an update, this is why I thought it has something to do with it.
something like this has happened to me so many times!
imo it can't be sheer coincidence; there's usually some connection; maybe a scenario like this: i had a big cleanup day, and while in the midst of that i decided to also "clean up" (upgrade) my system. then i finished my cleanup, and moved the computer a little, pulling the cable a little, and the flaky connection gave up the ghost...
problem is, as a linux user one never thinks of a connection like that. always looking inside the system first.
one should write a treatise on linux user psychology.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.