ubuntu系统的虚机 迁移到大厂的云服务器 后发现 实例内网一直都是原虚机的内网IP,

ubuntu SMC迁移 后发现 实例内网一直都是原虚机的内网IP

ip a能看到现在的ECS内网以及原虚机的内网 但是ifconfig看只有原虚机的内网IP

于是 尝试dhclient eth0重启内网
但是报 file exist类似错误

于是尝试dhclient -r释放当前网口

然后再dhclient eth0就好了
为保证重启依然,建议写进rc.local里面
https://zhuanlan.zhihu.com/p/516834142

其他用法:
分配eth0的IP地址

dhclient eth0

释放IP地址:dhclient -r
Killed old client process

从指定的服务器获取ip地址:dhclient -s 192.168.60.240

停止运行dhclient: dhclient -x
Killed old client process

https://blog.csdn.net/qiu568012180/article/details/127976393
 
 
 
 
posted @ 2022-12-14 19:06  西门一盏灯  阅读(42)  评论(0)    收藏  举报
1