The obvious answer is yes, I suppose, but my VPS provider doesn't seem to agree.
I've just uploaded a Ubuntu 20.04 instance, and the provider is telling me:
IP address: 77.xxx.yyy.zzz/32 Gateway: 10.xxx.yyy.zzz
I can't get this to work - could it work?
They have almost zero instructions, but they have a suggested
/etc/network/interfaces file with this inconsistency. I haven't tried it, because my current image doesn't have
ifupdown installed (I thought it was obsolete), and it would take a couple of hours to prepare and upload a new image, for something which I suspect isn't going to work.
I can get the network I/F up trivially with:
# ip addr add 77.xxx.yyy.zzz/32 dev ens192 # ip link set dev ens192 up
But if I set the gateway as follows I get 'Nexthop has invalid gateway':
# ip route add default via 10.xxx.yyy.zzz