![route add -net 192.168.19.0/24 dev tun0 到 netplan yaml 1 对 1 映射](https://linux22.com/image/1166020/route%20add%20-net%20192.168.19.0%2F24%20dev%20tun0%20%E5%88%B0%20netplan%20yaml%201%20%E5%AF%B9%201%20%E6%98%A0%E5%B0%84.png)
由于路由添加只是暂时的,我该如何配置
sudo route add-net 192.168.19.0/24 dev tun0
进入 /etc/netplan/50-cloud-init.yaml
答案1
你检查过netplan.io 示例路线信息?这份文档缺少哪一部分,或者您具体遇到了什么问题?
搜寻路线,我看到这个例子:
routes:
- to: 0.0.0.0/0
via: 9.0.0.1
metric: 100
- to: 0.0.0.0/0
via: 10.0.0.1
metric: 100
- to: 0.0.0.0/0
via: 11.0.0.1
metric: 100
/etc/netplan/50-cloud-init.yaml
如果您想要了解更多细节,您必须分享您的信息。