VMware克隆虚拟机后修改UUID、MAC地址、IP和主机名
https://blog.csdn.net/weixin_44657888/article/details/130679813
--------------------------------------------------------设置静态ip cat /etc/sysconfig/network-scripts/ifcfg-ens33 TYPE="Ethernet" PROXY_METHOD="none" BROWSER_ONLY="no" BOOTPROTO="static" DEFROUTE="yes" IPV4_FAILURE_FATAL="no" IPV6INIT="yes" IPV6_AUTOCONF="yes" IPV6_DEFROUTE="yes" IPV6_FAILURE_FATAL="no" IPV6_ADDR_GEN_MODE="stable-privacy" NAME="ens33" UUID="3bad8056-79a0-4ddc-97c7-b62b27eb01d4" DEVICE="ens33" ONBOOT="yes" ###新增 #ip地址 IPADDR="192.168.226.130" #子网掩码 NETMASK="255.255.255.0" #网关 GATEWAY="192.168.226.2" #DNS DNS1="192.168.226.2" ------------------------------------设置host cat /proc/sys/kernel/hostname hostname hostnamectl set-hostname node1 ####注意修改完成需要重启网络生效### systemctl restart network
标签:UUID,IP,虚拟机,192.168,主机名,IPV6,yes From: https://www.cnblogs.com/tonggc1668/p/17469250.html