Controller — Network

Create Provider

  1. [root@controller ~]# openstack network create provider --share --external --provider-network-type flat --provider-physical-network provide

Create Provider Sub-Net

  1. [root@controller ~]# openstack subnet create --network provider --allocation-pool start=9.1.1.50,end=9.1.1.90 --dns-nameserver 8.8.8.8 --gateway 9.1.1.1 --subnet-range 9.1.1.0/24 provider-sub

Create Private Network

  1. [root@controller ~]# openstack network create private --provider-network-type vxlan --share --interna

Create Private Sub-Net

  1. [root@controller ~]# openstack subnet create --network private --gateway 192.168.1.1 --subnet-range 192.168.1.0/24 private-subnet

Create Private-Office Network

  1. [root@controller ~]# openstack network create private-office --provider-network-type vxlan --share --internal

Create Private-Office Sub-Net

  1. [root@controller ~]# openstack subnet create --network private-office --gateway 192.168.2.1 --subnet-range 192.168.2.0/24 office-net

Create Private-Sale Network

  1. [root@controller ~]# openstack network create private-sale --provider-network-type vxlan --share --internal

Create Private-Sale Sub-Net

  1. [root@controller ~]# openstack subnet create --network private-sale --gateway 192.168.3.1 --subnet-range 192.168.3.0/24 sale-net

Create Private-Technology Network

  1. [root@controller ~]# openstack network create private-technology --provider-network-type vxlan --share --internal

Create Private-Technology Sub-Net

  1. [root@controller ~]# openstack subnet create --network private-technology --gateway 192.168.4.1 --subnet-range 192.168.4.0/24 technology-net

List Network

  1. [root@controller ~]# openstack network list

Create Provider Router

  1. [root@controller ~]# openstack router create route

Set External-Gateway

  1. [root@controller ~]# openstack router set --external-gateway provider router

Add Route Interface

  1. [root@controller ~]# openstack router add subnet router private-subnet

List Network Agent

  1. [root@controller ~]# openstack network agent list

Leave a Reply

Your email address will not be published. Required fields are marked *