- 去掉 UUID 和 HWADDR
vi /etc/sysconfig/network-scripts/ifcfg-eth0
- 修改主机名
vi /etc/sysconfig/network
HOSTNAME=hadoop1
- 删除Linux物理地址绑定的文件(该文件会在操作系统重启并生成物理地址以后将物理地址绑定到IP上);
rm -rf /etc/udev/rules.d/70-persistent-net.rules
- 重启
shutdown -r now
2023-01-25 20:23:38
vi /etc/sysconfig/network-scripts/ifcfg-eth0
vi /etc/sysconfig/network
HOSTNAME=hadoop1
rm -rf /etc/udev/rules.d/70-persistent-net.rules
shutdown -r now