我试图在Netplan中复制相当于
ip -6 r a 2605:6400:1:fed5::1 dev eth0没有“通过”地址。我试过:
routes:
- to: "2605:6400:1:fed5::1"
on-link: true但不幸的是,netplan出现了一个错误。
Error in network definition //etc/netplan/01-netcfg.yaml line 13 column 8: unicast route must include both a 'to' and 'via' IP我应该使用假的via地址吗?似乎netplan甚至没有后置钩子,所以我无法解决这个问题。
发布于 2019-05-08 12:25:45
在netplan >= 0.40的版本中,您可以使用:
eth0:
routes:
- to: "2605:6400:1:fed5::1"
scope: link在旧版本中,您可以使用"::“catch:
eth0:
routes:
- to: "2605:6400:1:fed5::1"
via: "::"
on-link: truehttps://serverfault.com/questions/966369
复制相似问题