Syntax Incorrect in "How to install a PBX system in 2024 with VitalPBX 4.0"

Hi, I’ve just been following this guide and in section 1, section 6, it instructs me to…

"
Change this block of text.

#The primary network interface
allow-hotplug eth0
iface eth0 inet dchp

To this.

#The primary network interface
allow-hotplug eth0
iface eth0 inet static address 192.168.1.200
netmask 255.255.255.0
gateway 192.168.1.1
"

I think this might be an old syntax for doing this. As I couldn’t get it to work until I changed it to

"

The primary network interface

allow-hotplug eth0
iface eth0 inet static
address 192.168.1.200/24
gateway 192.168.1.1
"
I know it changed to permit CIDR notation a while back but I’m unclear if this in mandated now.

If I’m wrong, so be it!

Thanks for the reply. However, the aim of section 6 of the guide is to change from a dhcp address to a static IP. It then instructs you on how to do this i.e.

allow-hotplug eth0
iface eth0 inet static address 192.168.1.200
netmask 255.255.255.0
gateway 192.168.1.1
"

But it doesn’t work. Unless you use this syntax.

allow-hotplug eth0
iface eth0 inet static
address 192.168.1.200/24
gateway 192.168.1.1

Which is fine but the except the documentation appears to be wrong.

Tom

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