1. 程式人生 > >FusionSphere openstack 檢視所有虛機埠並且新增浮動ip

FusionSphere openstack 檢視所有虛機埠並且新增浮動ip

檢視所有虛機埠(網絡卡)

neutron port-list  --all  

給虛機設定浮動ip

neutron port-update a0e1a401-2cbc-44e2-b991-e5f89ff78929(網絡卡id) --allowed-address-pair --allowed-address-pair ip_address=172.24.109.200,mac_address=fa:16:3e:a4:61:39

給虛機設定多個浮動ip

neutron port-update  dfd79ce0-c2e2-45bd-96c3-bf464b978328  --allowed-address-pairs type=dict list=true mac_address=fa:16:3e:61:60:52,ip_address=172.24.109.209  mac_address=fa:16:3e:61:60:52,ip_address=172.24.109.208