Edit: The VM was moved from one hyper-v to another. In the first hyper-v it had a different IP, Mask and Gateway, and it worked. Then I moved it to the new hyper-v and changed the network details. I used a static MAC address also provided by the cloud provider.
I have assigned them info to
However network is unreachable.
Is there any posibiliy to let ubuntu allow different subnet for the gateway?
Edit to provide the 50-cloud-init.yaml config file:
network: version: 2 renderer: networkd ethernets: eth0: dhcp: no addresses: - IP/MASK gateway4: GATEWAY_IP nameservers: addresses: [126.96.36.199, 188.8.131.52]
It's strange that route -s doesn't output any route at all:
Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface