#ethernet suddenly stopped working

51 messages · Page 1 of 1 (latest)

boreal bison
#

So I have an ethernet cable that works fine, but suddenly it stopped working while I was using my laptop. I know the cable works as I tried it on another windows and linux machine which gave no problems. When I try to connect to it with nmcli dev connect enp5s0f3u1u4 I get: Error: Connection activation failed: IP configuration could not be reserved (no available address, timeout, etc.).. I tried whatever I could find online like installing dhcpcd (which I didnt have before) and starting the service, but nothing worked. Been having this for a few days now.

errant grail
#

Try giving the network manager a restart sudo service network-manager restart

boreal bison
#

I tried sudo systemctl restart NetworkManager already many times but makes no difference

errant grail
#

oki thank you for letting me know

#

have you tried manually assigning an ip

boreal bison
#

how would I do that?

errant grail
#

sudo systemctl stop NetworkManager
first stop the service

heres an example of using the ip addr add command to assign an IP address to the Ethernet interface:

sudo ip addr add 192.168.1.100/24 dev enp5s0f3u1u4

#

make sure the address you assign fits your subnet mask and stuff

boreal bison
#

what does the 24 stand for?

errant grail
#

The /24 denotes the subnet mask.

boreal bison
#

it now says connected (externally) for my device but I can't actually use the internet

errant grail
#

ok

boreal bison
errant grail
#

can you

#

do a ip route show

#

make sure you have a default gateway

boreal bison
#

oh wait it seems i made a mistake when adding

#

i thought adding again would overwrite the first one

#

1 sec let me remove it

errant grail
#

.ix

#

one second

#

what ip did you just set

boreal bison
#

i added the 86.96 one

errant grail
#

you dont have a default gateway

#

that is why you cant connet to the internet

#

you can only connect to other devices on your network not out side

#

I know the command to add a default gate way is this ip route add but im not sure what your default gateway is, usally its the ip of your router (you can figure this out through other machines on windows you can use ipconfig /all)
here is an example of the command
sudo ip route add default gw 192.168.1.1 dev enp5s0f3ulu4

boreal bison
errant grail
#

ip route add default gw <gateway_ip_address> dev <interface_name>

#

weird

#

did you get the default gateway from another device conntected to your network?

boreal bison
#

yes

#

i think maybe the ip i added was wrong tho, it wont let me delete it for some reason though 1 sec

#

oh no that should be right actually

errant grail
#

weird

#

lets hope someone who is more familiar with networking can read this

boreal bison
#

I hope so

#

thanks a lot though I appreciate it

boreal bison
#

managed to add the default gateway with ip route add default via <IP>

#

internet still not working though :/

errant grail
#

yea im not sure then

#

super confusing

boreal bison
#

I had a dream you suddenly came back here with the golden solution to make it work

#

today I randomly tried to nmcli dev connect to it

#

and it works

#

not sure what happened been doing that exact same thing for days

#

but thanks 🙏

errant grail
#

weird! im glad it got fixed tho

#

... solved