一、RHEL系统编辑配置文件/etc/sysconfig/network-scripts/ifcfg-ens160添加mac地址MACADDR=b4:05:5d:e5:1f:de重启网卡ifdown ens160 && ifup ens160二、Ubuntu系统编辑配置文件vim /etc/netplan/00-installer-config.yaml配置mac地址# This is the network config written by 'subiquity' network: version: 2 ethernets: ens160: macaddress: 00:11:22:33:44:55 addresses: - 192.168.1.181/24 nameservers: addresses: - 223.5.5.5 search: [] routes: - to: default via: 192.168.1.254重启网卡netplan try