Fortinet black logo

OpenStack Administration Guide

Setting up networks in OpenStack

Copy Link
Copy Doc ID 6d721014-a934-11ec-9fd1-fa163e15d75b:614281
Download PDF

Setting up networks in OpenStack

From the OpenStack environment command line, enter the following commands to create network-r and network-l:

$ source overcloudrc_tenant01

$ openstack network create network-r

$ openstack subnet create subnet-r --network network-r --subnet-range 172.32.0.0/24 --dns-nameserver 208.91.112.53

$ openstack network create network-l

$ openstack subnet create subnet-l --network network-l --subnet-range 172.33.0.0/24 --dns-nameserver 208.91.112.53

Add the CirrOS instances to network-r and network-l:

$ openstack server create --flavor m1.tiny --image cirros035 --security-group web --nic net-id=network-r cirros-r

$ openstack server create --flavor m1.tiny --image cirros035 --security-group web --nic net-id=network-l cirros-l

To set up the ha-sync network for the HA heartbeat:

From the OpenStack environment command line, enter the following commands to create the HA-sync network to be used for HA heartbeat communication.

$ openstack network create ha-sync

$ openstack subnet create subnet-ha --network ha-sync --subnet-range 169.254.0.0/24 --dns-nameserver 208.91.112.53

To verify the MTU assigned to the ha-sync network:

You can use the OpenStack Horizon Networks view to verify the MTU assigned to the ha-sync network.

Setting up networks in OpenStack

From the OpenStack environment command line, enter the following commands to create network-r and network-l:

$ source overcloudrc_tenant01

$ openstack network create network-r

$ openstack subnet create subnet-r --network network-r --subnet-range 172.32.0.0/24 --dns-nameserver 208.91.112.53

$ openstack network create network-l

$ openstack subnet create subnet-l --network network-l --subnet-range 172.33.0.0/24 --dns-nameserver 208.91.112.53

Add the CirrOS instances to network-r and network-l:

$ openstack server create --flavor m1.tiny --image cirros035 --security-group web --nic net-id=network-r cirros-r

$ openstack server create --flavor m1.tiny --image cirros035 --security-group web --nic net-id=network-l cirros-l

To set up the ha-sync network for the HA heartbeat:

From the OpenStack environment command line, enter the following commands to create the HA-sync network to be used for HA heartbeat communication.

$ openstack network create ha-sync

$ openstack subnet create subnet-ha --network ha-sync --subnet-range 169.254.0.0/24 --dns-nameserver 208.91.112.53

To verify the MTU assigned to the ha-sync network:

You can use the OpenStack Horizon Networks view to verify the MTU assigned to the ha-sync network.