50-cloud-init.yaml just like below.
network: ethernets: eth1: addresses: [192.168.0.100/24] routes: - to: 192.168.1.100/32 via: 192.168.0.1 metric: 100 version: 2
And I saved it and executed
sudo netplan apply, then I got this error:
/etc/netplan/50-cloud-init.yaml:21:11: Error in network definition: expected mapping (check indentation) - to: 192.168.1.100/32 ^
How can I fix it?
Thank you guys!