📜  netplan static ip - 任何代码示例

📅  最后修改于: 2022-03-11 14:55:12.888000             🧑  作者: Mango

代码示例1
# This file describes the network interfaces available on your system
# For more information, see netplan(5).
network:
  version: 2
  renderer: networkd
  ethernets:
    enp0s3:
     dhcp4: no
     addresses: [192.168.1.222/24]
     gateway4: 192.168.1.1
     nameservers:
       addresses: [8.8.8.8,8.8.4.4]