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.
#ethernet suddenly stopped working
51 messages · Page 1 of 1 (latest)
Try giving the network manager a restart sudo service network-manager restart
I tried sudo systemctl restart NetworkManager already many times but makes no difference
how would I do that?
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
what does the 24 stand for?
it now says connected (externally) for my device but I can't actually use the internet
ok
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
i added the 86.96 one
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
I get
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?
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
managed to add the default gateway with ip route add default via <IP>
internet still not working though :/