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.1…”) |
无编辑摘要 |
||
第9行: | 第9行: | ||
ens33: | ens33: | ||
addresses: [192.168.47.10/24] | addresses: [192.168.47.10/24] | ||
routes: | |||
- to: default | |||
via: 192.168.47.2 | |||
nameservers: | nameservers: | ||
addresses: [192.168.47. | addresses: [192.168.47.2] | ||
version: 2 | version: 2 | ||
2023年2月12日 (日) 16:30的版本
static IP
## /etc/netplan/00-installer-config.yaml ## netplan apply network: ethernets: ens33: addresses: [192.168.47.10/24] routes: - to: default via: 192.168.47.2 nameservers: addresses: [192.168.47.2] 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