ubuntu24.04配置IPV6
ubuntu配置IPV6
- 配置文件
配置文件
cd /etc/netplan/
vim 50-cloud-init.yaml
配置项
addresses:
- 192.168.201.138/21
- FC01:AAAA:0:200::1:15/64
nameservers:
addresses:
- 202.99.224.68
- 222.74.1.200
- 240c::6666
- 2400:da00::6666
search: []
routes:
- to: default
via: 192.168.200.1
- to: default
via: FC01:AAAA:0000:0200:0000:0000:0000:0001
#配置生效
#保存退出
:wq
netplan apply
ip -6 addr show ens32