多个inte6的问题"/>
解决在VM中克隆openEule22.03服务器后出现多个inte6的问题
通过VMware vSphere 克隆了一台服务器已做他用,但修改完配置后,在ifconfig查看信息的时候发现出现了两个inte6的地址,其中一个为被克隆服务器的,另一个是新生成的。
克隆的新服务器查看:
原始服务器查看(被克隆的)
虽然目前我没用到IPV6 ,应该没什么影响。但多少算是个问题 ,还是要处理掉的。
查找了论坛帖子(.php?t=74461)想来应该是通用的处理方式。他是这么说的:
随做了如下方式来解决:
将模板OS中的/etc/machine-id文件移走备份,并重新生成
#查看当前此文件信息
[root@localhost ~]# ll /etc/machine-id
-r--r--r--. 1 root root 33 6月 16 16:09 /etc/machine-id
[root@localhost ~]# more /etc/machine-id
9d5ace5e1e714ee2bf8d830de29e7bc5#我移走它做好备份
[root@localhost ~]# mkdir /baks
[root@localhost ~]# cp /etc/machine-id /baks/
[root@localhost ~]# rm -f /etc/machine-id
[root@localhost ~]# ll /etc/machine-id
ls: 无法访问 '/etc/machine-id': 没有那个文件或目录#重新创建这个文件
[root@localhost ~]# systemd-machine-id-setup
Initializing machine ID from random generator.
[root@localhost ~]# ll /etc/machine-id
-r--r--r--. 1 root root 33 7月 29 13:16 /etc/machine-id
[root@localhost ~]# more /etc/machine-id
4c8d90b2c5294743bf93d6b0408b2293
[root@localhost ~]#
我尝试使用命令重启网卡,但以往的不可用,此系统应该是要参考centos8的操作命令吧,网络查找的更多的是让reboot,我也就不那么费神去查了(此后有时间再说明下此命令),偷懒下直接reboot
再次查看,已显示正常
以上,小小总结,方便他人,细致的原理我就不细究了和阐述了,基本原则:可用可行就好。
更多推荐
解决在VM中克隆openEule22.03服务器后出现多个inte6的问题
发布评论