In order to provide instances with external connectivity, a Neutron router must be connected to a provider network eligible for use as an external network.
Using the openstack network create command, create a provider network in the admin project with the following attributes:
- Name: GATEWAY_NET
- Type: VLAN
- Segmentation ID: 30
- Physical Network: physnet1
- External: True
The following screenshot displays the resulting output of the openstack network create command:
Using the openstack subnet create command, create a subnet with the following attributes:
- Name: GATEWAY_SUBNET
- Network: 10.30.0.0
- Subnet Mask: 255.255.255.0
- Gateway: 10.30.0.1
- DHCP: Disabled
- Allocation Pool: 10.30.0.100 - 10.30.0.254
The following screenshot displays the resulting output of the openstack subnet create command: