This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Pages: [1]
1
Installation and Upgrades / Configuration for OVH (gateway reachable only after adding explicit route to it)
« on: May 14, 2011, 06:31:15 pm »
I have a Zentyal VM hosted on OVH. With OVH, the IP assigned to the VM is typically completely unrelated to the actual network segment.
What it means is that for example with an IP 12.23.34.45 you will have a netmask of 255.255.255.255 and a gateway like 56.67.78.254.
The only way to configure this gateway is of course to let the route to it known by an explicit route of the kind route add 56.67.78.254 dev ethX.
The typical configuration file looks then like this:
iface eth0 inet static
address 12.23.34.45
netmask 255.255.255.255
broadcast 12.23.34.45
post-up route add 56.67.78.254 dev eth0
post-up route add default gw 56.67.78.254
post-down route del 56.67.78.254 dev eth0
post-down route del default gw 56.67.78.254
I found no way of configuring this in Zentyal, the only option seems to have a /etc/ebox/hooks/network.postsetconf hook that overwrite the generated /etc/network/interfaces with the correct /etc/network/interfaces file.
I found a previous topic in the forums with someone having the same problem but no other solution different from mine:
http://forum.zentyal.org/index.php?topic=5607.0
Someone has a neater solution in mind?
Thank you.
What it means is that for example with an IP 12.23.34.45 you will have a netmask of 255.255.255.255 and a gateway like 56.67.78.254.
The only way to configure this gateway is of course to let the route to it known by an explicit route of the kind route add 56.67.78.254 dev ethX.
The typical configuration file looks then like this:
iface eth0 inet static
address 12.23.34.45
netmask 255.255.255.255
broadcast 12.23.34.45
post-up route add 56.67.78.254 dev eth0
post-up route add default gw 56.67.78.254
post-down route del 56.67.78.254 dev eth0
post-down route del default gw 56.67.78.254
I found no way of configuring this in Zentyal, the only option seems to have a /etc/ebox/hooks/network.postsetconf hook that overwrite the generated /etc/network/interfaces with the correct /etc/network/interfaces file.
I found a previous topic in the forums with someone having the same problem but no other solution different from mine:
http://forum.zentyal.org/index.php?topic=5607.0
Someone has a neater solution in mind?
Thank you.
Pages: [1]