Fortinet black logo

OpenStack Administration Guide

Setting up networks in OpenStack

Copy Link
Copy Doc ID e842eb6e-694a-11ea-9384-00505692583a:434757
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

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