openstack 虚拟机新增指定的ip地址
获得 tenant id
keystone tenant-list | grep DEV
获得 network 信息
neutron net-list
创建新的 port
neutron port-create --tenant-id 00f77483830d48e5aafba5880f5c437d --fixed-ip subnet_id=a42781d8-07fd-4744-8409-0b1b40750a71,ip_address=10.198.193.94 9106aee4-2dc0-4a6d-a789-10c53e2b88c1
创建vm 时指定对应的port 方法
nova boot --flavor b2c_allinone --image Centos7_Generic_1503 --security_group default --nic port-id=c71cf80c-d26c-4337-bad1-e7ac419613b1 violalu-sh-qa-web-e5jhn.sh.vclound.com
查询实例详细信息
nova show 8cf12579-85ee-41f4-ab9f-55a608c5640b
查看被添加vm的网卡状态
nova interface-list test
## 将新创建的port attach到该vm上,可以查看此时新添加的网卡状态:
```bash
nova interface-attach --port-id 2460f040-4077-4c26-8b03-c2ba449718c8 test
nova interface-list test