cat /etc/netplan/01-netcfg.yaml
# This file describes the network interfaces available on your system
# For more information, see netplan(5).
network:
version: 2
renderer: networkd
ethernets:
ens33:
dhcp4: no
addresses : [192.168.41.201/24]
gateway4 : 192.168.41.2
nameservers :
addresses : [192.168.41.2]
``
单网卡静态IP地址
最新推荐文章于 2024-09-05 20:57:11 发布