解决在VM中克隆openEule22.03服务器后出现多个inte6的问题

编程入门 行业动态 更新时间:2024-10-23 06:17:48

解决在VM中克隆openEule22.03服务器后出现<a href=https://www.elefans.com/category/jswz/34/1771377.html style=多个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的问题

本文发布于:2024-03-05 05:10:02,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1711388.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:多个   服务器   VM

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!