Ubuntu基础
跳到导航
跳到搜索
static IP
## /etc/netplan/00-installer-config.yaml ## netplan apply network: ethernets: ens33: addresses: [192.168.47.10/24] nameservers: addresses: [192.168.47.1] version: 2 ## Default dhcp # This is the network config written by 'subiquity' network: ethernets: ens33: dhcp4: true version: 2
dns
## /etc/systemd/resolved.conf ## systemctl restart systemd-resolved DNS=8.8.8.8 114.114.114.114