Creating Different Neutron Network Types
The following commands are examples of creating several different network types.
Create Shared Provider Networks
Flat Network
openstack --os-cloud default network create --share \
--availability-zone-hint az1 \
--external \
--provider-network-type flat \
--provider-physical-network physnet1 \
flat
Flat Subnet
openstack --os-cloud default subnet create --subnet-range 172.16.24.0/22 \
--gateway 172.16.24.2 \
--dns-nameserver 172.16.24.2 \
--allocation-pool start=172.16.25.150,end=172.16.25.200 \
--dhcp \
--network flat \
flat_subnet
VLAN Network
openstack --os-cloud default network create --share \
--availability-zone-hint az1 \
--external \
--provider-segment 404 \
--provider-network-type vlan \
--provider-physical-network physnet1 \
vlan404
VLAN Subnet
openstack --os-cloud default subnet create --subnet-range 10.10.10.0/23 \
--gateway 10.10.10.1 \
--dns-nameserver 10.10.10.1 \
--allocation-pool start=10.10.11.10,end=10.10.11.254 \
--dhcp \
--network vlan404 \
vlan404_subnet