yamlnetwork:
version: 2
ethernets:
eth0:
dhcp4: true
dhcp6: false
addresses:
- XXXX:XXXX:XXXX:XXXX:XXXX:XXXX:XXXX:XXXX/48
nameservers:
addresses:
- 223.5.5.5
- 223.6.6.6
- 2400:3200::1
- 2400:3200:baba::1
routes:
- to: default
via: "XXXX:XXXX:XXXX::1"
on-link: true
bashsudo netplan apply
json{
"ipv6": true,
"fixed-cidr-v6": "2001:db8:1::/64",
"experimental": true,
"ip6tables": true
}
本文作者:菜鸟
本文链接:
版权声明:本博客所有文章除特别声明外,均采用 署名-非商业性使用-相同方式共享 4.0 国际 (CC BY-NC-SA 4.0) 许可协议。转载请注明出处!