Does anyone know how to set up a static IP address for SuiteCRM 7 on Ubuntu 22.04, running on a virtual machine in VMWare Fusion 12.2.1?
I have tried going through multiple instructions without any luck.
I’ve configured the static IP address on the VM itself using various methods including the ones below:
I’ve updated my SuiteCRM config.php file to point to the new IP address, and I’ve tried assigning the static IP within the VMWare Fusion settings (using various methods there as well including the following): https://kb.vmware.com/s/article/80793
I’ve also tried setting it through the VMWare GUI within the Network Adapter menu. Nothing I have tried has worked though. Any suggestions or help would be greatly appreciated!
Apart from any SuiteCRM issues, I didn’t understand whether your IP setting was successful in Ubuntu or not? If you type ip addr do you see the correct static address?
This is Ubuntu Server, and no… when I type ip addr , it shows the address that it seems to be getting via DHCP, but I’m not sure why.
At one point, (I believe it was after following the CLI instructions here: How to Configure Static IP Address on Ubuntu 22.04 – TecAdmin ), it was showing two IP addresses tied the the same interface but I didn’t think that was possible. It was showing the same DHCP address that SuiteCRM is loading on, and showing the correct static IP that I set. It showed two lines under “ens33” that began with “inet [ip_address]”
I’m no expert in netplan Ubuntu network settings (and this is really not a SuiteCRM issue!)
but have a look at this
I once had that double-ip address problem and it was transient, related to me messing around with configs… I solved it with a simple reboot… and perhaps a network restart would have been enough.
Thanks so much for the very helpful information! I did a few reboots after making changes, but it still showed the double IP addresses. The strange thing is that I didn’t have the configuration files that most instructional documents refer to for configuring it. At first, I wasn’t sure if this was a VM issue, or an issue with SuiteCRM not loading on the preferred address. The document you have shared though was still great, and helped me to realize that there was a second config file that the system was pulling the DHCP address from (I didn’t realize it was set there). I ended up removing that file, and everything is looking great and working as expected!