'how to configure static routes via specific interface in netplan
I need to configure static routes via interface rather than gatewayIP, is it possible? say we have to use "via: IP" in netplan like:
routes:
- to: 10.100.0.0/16
via: 192.168.200.1
metric: 100
but in ip route cli command, it doesn't have to specify via gateway IP, like:
sudo ip route add 10.100.0.0/16 dev enp0s25
The question is , how to do it in netplan?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
