ubuntu22.04添加静态IPv6地址示例
Categories:
Related Post
为什么我在尝试在Ubuntu上安装时会遇到bind: address already in use错误?为什么我在尝试在Ubuntu上安装时会遇到bind: address already in use错误?
https://adguard-dns.io/kb/zh-CN/adguard-home/faq/#bindi […]
或者使用这个格式
sudo cat /etc/netplan/00-installer-config.yaml
# This is the network config written by 'subiquity'
network:
version: 2
renderer: NetworkManager
以上使用NetworkManager管理网络
nmcli device status
sudo nmcli connection modify netplan-ens192 ipv4.addresses 10.8.0.19/16 ipv4.gateway 10.8.0.1 ipv4.dns 192.168.50.2 ipv4.method manual ipv4.dns-search a.v ipv6.addresses feee:8000::19/64 ipv6.gateway feee:8000::1 ipv6.dns feee:5000::5 ipv6.method manual ipv6.dns-search a.v
sudo nmcli connection down netplan-ens192 && sudo nmcli connection up netplan-ens192