Ubuntu Gets/Has Wrong Private Ip Address
When I Log in via Ssh to My Ubuntu Server (Current Lts 20.04), I Get a Greeting Message with the Eth0 Private Ip. I Now Needed to Change My Ips in My Home...
When I log in via SSH to my Ubuntu server (current LTS 20.04), I get a greeting message with the eth0 private IP.
I now needed to change my IPs in my home network from the default 192.168.178.0/24 to 192.168.222.0/24
In the greeting message it still says
eth0 192.168.178.30
eth0 192.168.222.20
It can't have both IPs???
Reboot won't do anything.
I have ufw installed, but ufw reload won't do anything.
I also have OpenVPN and PiHole installed. It seems that something needs to be reconfigured, but I don't know which software still wants to connect via 192.168.178.30
1 Answer
I did what netbat said:
sudo grep -l -R "192.168.178.30" /etc/*
this showed me 3 conf-files (and a db file). I changed the respective conf-files so with nano (didn't care about the db-file). In one file (/etc/dhcp/dhcpd.conf) I also needed to change the routers IP address.
Now with a reboot, the wrong IP address is gone!