Basically zentyal calls the /etc/ebox/hooks/network.postsetconf script just before staring. In that script you need to copy your custom network settings to the /etc/network/interfaces file. Here's how do do it (assuming you have not installed zentyal yet):
Copy your custom interfaces file that is currently being implemented:
cp /etc/network/interfaces /etc/network/interfaces.copy
Install zentyal components as you require.
create /etc/ebox/hooks/network.postsetconf script:
nano /etc/ebox/hooks/network.postsetconf
Paste the following:
#!/bin/sh
if grep "/sbin/ifenslave" /etc/network/interfaces >/dev/null; then
exit 0
fi
cp /etc/network/interfaces.copy /etc/network/interfaces
exit 0
make the script executable:
chmod +x /etc/ebox/hooks/network.postsetconf
reboot and make sure it all works