Setting up a private network
The MCS platform allows you to create and configure private networks in the project, identical to local networks.
By default, only ext-net is available in a new project, this is an external network common to all projects. Ext-net is not a private network.
MCS control panel
Networks management in MCS personal account is carried out on the "Networks" page of the "Virtual Networks" service.
To create a network, click "Create" in the top menu of the page. A window for configuring the parameters of a new network will appear:
The following parameters must be configured:
|Network name||Entering an arbitrary name for the created network.|
|Access to the Internet||Connecting the network to the router. Without setting this parameter, VPN, SNAT, routing between networks will not work. The network will be unavailable for deploying PaaS entities.|
|Router||Selecting a router for network connection.|
|Enable DHCP||Selecting an item enables the DHCP server on the network.|
|Zone||Entering a private DNS zone.|
|Private DNS||Setting the item enables the private DNS service.|
Then you need to configure the parameters of the created subnet:
|Subnet name||Enter an arbitrary subnet name.|
|Subnet address||Entering addressing in CIDR format. Cannot be changed after subnetting.|
|Gateway address||Enter the network gateway address.|
|DHCP IP pool||Configuring the range of addresses issued to the client via DHCP|
|Static routes||Entering static routes. Adding static routes to the client's network is required when using VPNaaS.|
After completing the settings, click "Add network".
To change the parameters of an existing network, select the "Edit network" option in the context menu on the network list page. It is possible to add new subnets, change the router, enable or disable DHCP / DNS, and change the addressing.
Project networks can be managed in the OpenStack client:
$ openstack network create <network name>
$ openstack subnet create --network <network name> --dns-nameserver <DNS address> --gateway <gateway address> --subnet-range <subnet address> <name>
Creating a router:
$ openstack router create <name>
Connecting the router to an external network:
$ openstack router set --external-gateway ext-net <router ID>
Subnetting to the router:
$ openstack router add subnet <router ID> <subnet ID>
Getting a list of networks:
$ openstack network list