ARTICLE DETAIL

资讯详情

深耕网站建设与运营推广的一线实战洞察。

ubuntu2204系统ip地址配置

ubuntu2204系统ip地址配置

进入/etc/netplan目录编辑yaml文件,如00-installer-config.yaml

image

 

编辑如下内容:

network:version: 2renderer: networkdethernets:ens33: # 替换为你的网卡名称dhcp4: falseaddresses:- 203.0.113.10/24 # 替换为你的公网IP和子网掩码gateway4: 203.0.113.1 # 替换为你的网关地址nameservers:addresses:- 8.8.8.8 # Google DNS- 8.8.4.4 # Google DNS备用

  

image

 

返回列表