修改表
UPDATE vm_instance SET private_ip_address ='10.168.8.88' WHERE instance_name = 'i-2-71-VM';
UPDATE nics AS n,vm_instance AS v SET n.ip4_address ='10.168.8.88' WHERE n.instance_id
= v.id
AND v.instance_name
='i-2-71-VM';
重新启动VM,要stop,在start
修改表
UPDATE vm_instance SET private_ip_address ='10.168.8.88' WHERE instance_name = 'i-2-71-VM';
UPDATE nics AS n,vm_instance AS v SET n.ip4_address ='10.168.8.88' WHERE n.instance_id
= v.id
AND v.instance_name
='i-2-71-VM';
重新启动VM,要stop,在start
本文标题:自定义VM-IP
本文链接:https://www.haomeiwen.com/subject/niyubctx.html
网友评论