[SOLVED] Changing Ip address?

Joseph Chrzempiec

Well-Known Member
Jun 9, 2016
142
8
58
46
Hello I need help big time. My ISP changed my modem and router on me. The address use to be 192.168.x.x now it is a 172.168.x.x internal address. Everything i found online to change the ip address didn't work for me. And i can not get to one of my VM because i use it as a Backup for my files.

Can someone please Tell me Step by step on how i can change the internal IP address from 192.168.x.x to 172.168.x.x please? I'm using proxmox 6.2.


Joseph
 
The address is defined in /etc/hosts

But 172.168.xx is not an internal address, 172.16.xx is. Are you sure about the change?
 
I just need the steps on how to change the Ip address so i can gain access to my server and Vm's. Please help me?


Joseph
 
If you already lost remote access to the server you should probably connect through a management interface (if present) or connect a monitor and keyboard.
Since you didn't mention how your network setup looks like it's hard to describe exact steps.
 
I just need the steps on how to change the Ip address so i can gain access to my server and Vm's. Please help me?
changing the IP-address of a PVE node usually needs to happen in the following places:
* /etc/network/interfaces
* /etc/hosts #(to adapt the hostname line to point to the new IP)

Things to check after changing the IP (for this example the changed IP is 172.16.1.25 and the default gateway 172.16.1.1):
* ping -c1 172.16.1.25
* ping -c1 172.16.1.1
* ping -c1 $(uname -n)

if these 3 commands work you should be able to access the Web interface

I hope this helps!
 
Hello I change all that and I’m getting 100% lost when to try to ping something. I’m not sure what is the next step?

Joseph
 
Hold on one second let me correct my self. It does work. The problem is this server has two Ethernet connections I had it in the wrong one. I was able to ping everything with no problem and see the web login. Thank you very much.


Joseph
 
Done and Again thank you for the help. It made it a lot less painful. I been trying to figure this out. Search and searching online but everything then failing.

joseph
 
  • Like
Reactions: Stoiko Ivanov