All we need is an easy explanation of the problem, so here it is.
I got 127.0.1.1
with this command
ip -f inet -o addr show eth0 | cut -d' ' -f 7 | cut -d/ -f 1
I got Device "eth0" does not exist
So what do you suggest to fix it? or should I continue to use the ip 127.0.1.1?
How to solve :
I know you bored from this bug, So we are here to help you! Take a deep breath and look at the explanation of your problem. We have many solutions to this problem, But we recommend you to use the first method because it is tested & true method that will 100% work for you.
Ubuntu generally renames the network devices. You can list them all with
ip a. The first device with be the
loopback, which is usually
127.0.0.1. The second device is often (but not always) the one that is used for external communications and will look something like
Note: Use and implement method 1 because this method fully tested our system.
Thank you 🙂