I have google cloud instance with static IP assigned to it. However my /etc/network/interfaces contains only eth0 interface with auto dhcp ip assign.
I need to run some services that I need to bind to the public static IP, but I cannot do that since that IP is not defined on the interface.
I came up with something like:
auto eth0
iface eth0 inet dhcp
auto eth0:0
iface eth0:0 inet static
address MyStaticIP
netmask ?????????
gateway ?????????
But this cant work without netmask and gateway but I have no idea what those should be since there is nothing about it in google documentation.
Can anyone help ?