Debian Install

Hi all

I have no experience in Linux systems and am trying to get Debian 12 on Hyper-V VM configured with a static IP address prior to installing FreePBX. I have followed the instructions provided to install Debian and cannot see any options for configuring a static IP during the installation process. If I type ip a it tells me eth0 is unmanaged but does have an IP address. Can anyone help in regards to telling me how I can set a static IP as it is surprisingly not covered in the instructions on the FreePBX website. I need to set the IP manually in order to ensure the server has an internet connection to be able to run the FreePBX installation script…

Why do you think that should have been covered by Freepbx? :thinking: I ask this because many folks coming into FreePBX mostly have some Linux experience.

On older debian, I used to set static ip by editing /etc/network/interfaces. But it looks like this isn’t available in Debian 12.

Quick ChatGPT query

Create Network Config file

sudo nano /etc/systemd/network/10-static.network

Add

[Match]
Name=eth0

[Network]
Address=192.168.1.100/24
Gateway=192.168.1.1
DNS=8.8.8.8 8.8.4.4

Enable and start systemd-networkd

sudo systemctl enable systemd-networkd
sudo systemctl start systemd-networkd

Restart it
sudo systemctl restart systemd-networkd

Check that new IP is now assigned

sudo ip a

Install FreePBX 17 using the official install script

Hi there

Surely the whole reason for offering an all inclusive ISO in the past was to make the installation process simpler. I am currently looking to upgrade from FreePBX v16 on CentOS. While I respect the fact that they have specific reasons not to offer this option currently with FreePBX I simply assumed the documentation would be broader as surely there would be a lot of people needing to set a static IP so therefore why produce installation instructions which are self explanatory without how to set a static IP if necessary. Anyways I appreciate your response and I am a step forwards, it does not recognise the sudo command but " nano /etc/network/interfaces" on its own allowed me to change these details.

Yeah sudo was assuming that you weren’t running as root. Safe to install it using apt install sudo -y or completely ignore any references to sudo if you are running as root.

But yeah, that should get you set with a static ip

When I run the freepbx install script, looking at the logs I am getting "unable to locate package software-properties-common it then exits the script. Any ideas why this would occur?

apt install software-properties-common -y

Thanks again, all installed and working…

Don’t forget to document the series of steps that worked for you. 100% assure you that you are going to tear down this install (when you mess things up on it) and need a new, clean fresh install

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.