Ubuntu基础

来自牛奶河Wiki
阿奔讨论 | 贡献2023年2月12日 (日) 15:32的版本 (创建页面,内容为“ ===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.1…”)
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)
跳到导航 跳到搜索


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