Just created new private network with default settings. Added new sandbox server to this private network and nothing. Private network doesn't work.
Then added to /etc/network/interfaces.d/50-cloud-init.cfg
auto ens4
iface ens4 inet static
address 192.168.0.2
netmask 255.255.255.0
network 192.168.0.0
gateway 192.168.0.1
dns-nameservers 8.8.8.8
After this - server can't reach public network. Can't ping 8.8.8.8. Can't reach server with public network via ssh, only vnc is working. All links are UP. Only thing I can do - ping another server in private network which is not accessible with public network too.
This problem persist at least year. I tried that earlier, and there was same problem approximately every second reboot. Some times configuration did work, some times didn't. Now configuration doesn't work 100% of time (consistency between reboots is a good thing of course).
How to configure properly private network? Every tutorial/documentation site shows tons of screenshots with UI which has 3 buttons 'how to create vrack and private network', but most important part 'server configuration' is skipped…
Anyone?
This problem persist at least year. I tried that earlier, and there was same problem approximately every second reboot. Some times configuration did work, some times didn't. Now configuration doesn't work 100% of time (consistency between reboots is a good thing of course).
I'm not a network expert but I can tell you that on my instances I have 2 network interfaces, one connected to the Internet with a public IP address (that can be reached from outside) and another one connected to private network with a private IP address (that is only reachable from the private network).
Thus I haven't configured any gateway in my private network but it seems odd that your configuration worked half the times. Did you get in touch with the OVH support?
To reach the public network from your private network, have you tried to run a traceroute (to find out where the packets get stuck)?
Great!!! After removing gateway section from configuration - everything works like a charm. Thanks for the tip!