创建 Provider network类型的网络(Queens版命令)

Create the provider network
On the controller node, source the admin credentials to gain access to admin-only CLI commands:


$ . admin-openrc
Create the network:


$ openstack network create  --share --external \
  --provider-physical-network provider \
  --provider-network-type flat provider



Create a subnet on the network:


$ openstack subnet create --network provider \
  --allocation-pool start=START_IP_ADDRESS,end=END_IP_ADDRESS \
  --dns-nameserver DNS_RESOLVER --gateway PROVIDER_NETWORK_GATEWAY \
  --subnet-range PROVIDER_NETWORK_CIDR provider

openstack subnet create --network provider \
  --allocation-pool start=203.0.113.101,end=203.0.113.250 \
  --dns-nameserver 8.8.4.4 --gateway 203.0.113.1 \
  --subnet-range 203.0.113.0/24 provider

猜你喜欢

转载自blog.csdn.net/openeis/article/details/80233996