1、查找你要修改ip地址的网卡id
[root@node-1 ~]# neutron port-list
2、允许ip地址为10.10.1.56通过
[root@node-1 ~]# neutron port-update 4e79200f-ac5a-467c-97c7-b4db78d4fe00 --allowed-address-pairs type=dict list=true ip_address=10.10.1.56
3、进入mysql数据库,修改数据
mysql -u root -p
mysql> use neutron;
mysql> select * from ipallocations where port_id='4e79200f-ac5a-467c-97c7-b4db78d4fe00'; 该port_id是之前查找的网卡id
更新port_id为 4e79200f-ac5a-467c-97c7-b4db78d4fe00 的ip地址为10.10.1.56
mysql> update ipallocations set ip_address='10.10.1.56' where port_id=' 4e79200f-ac5a-467c-97c7-b4db78d4fe00';
查看一下port_id为 4e79200f-ac5a-467c-97c7-b4db78d4fe00的地址是否变更了:
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)