This is a question about IP routing on the 3CX

Status
Not open for further replies.

StuartHurst

Forum User
Joined
Dec 9, 2019
Messages
4
Reaction score
0
Hi
I have a 3CX running - it runs fine apart from this little nuance.
how do I get a couple of routes to be added during boot up? I have to run them manually if the server gets restarted.

I've tried different solutions such as route up in the interfaces file, such as
route add -net 192.168.1.0/24 gw 10.0.0.6 dev ens32 or
up route add -net 192.168.1.0/24 gw 10.0.0.6 dev ens32

The only way I can get this to work is to run once the server is started.

any idea's anyone please?
 
What OS are you using.

Google will be your friend, just search for add static route os (replacing os with your operating system)
 
Its the default 3cx appliance download - hence the 3cx question.
 
anyway - you've pointed me to stuff that I've already looked at - thanks :)
 
Still not a 3CX question. It's just the OS with a script to auto-download 3CX. Routing is an OS function which 3CX doesn't handle. You say you've already looked at it. Does that mean you followed the steps and it didn't work or you found it after your initial post?
 
I had already tried doing this - and yes, it is an OS question. Anyway - thanks as I said, for responding
 
Your original post states to commands, never of which match the examples in that page. Just to confirm, you edited /etc/network/interfaces and added the block in the example (changed for your route of course)?

Code:
### static routing for eth0 that connects to the VLAN ###
        post-up route add -net 10.0.0.0 netmask 255.0.0.0 gw 10.9.38.65
        pre-down route del -net 10.0.0.0 netmask 255.0.0.0 gw 10.9.38.65
 
Status
Not open for further replies.

Forum statistics

Threads
111,940
Messages
589,850
Members
164,830
Latest member
business@brightwaylogisti