---
sidebar_label: "Create and manage networks"
sidebar_position: 1
---

<!-- truncate -->

import CodeBlock from '@site/src/components/CodeBloack';
import createnetwork from '@site/static/img/create-network.png';
import subnetnetwork from '@site/static/img/subnet-network.png';



# Create and manage networks

<div className="text">The OpenStack Networking service provides a scalable system for managing the network connectivity within an OpenStack cloud deployment. It can easily and quickly react to changing network needs (for example, creating and assigning new IP addresses).</div>

<div className="text">Networking in OpenStack is complex. This section provides the basic instructions for creating a network and a router. For detailed information about managing networks, refer to the OpenStack Networking Guide.</div>

<div className="head">Create a network</div>

<div className="text"><ol><li>Log in to the dashboard.</li><li>Select the appropriate project from the drop down menu at the top left.</li><li>On the <span className="blue">Project</span> tab, open the <span className="blue">Network</span> tab and click <span className="blue">Networks </span>category.</li><li>Click <span className="blue">Create Network</span>.</li><li>In the <span className="blue">Create Network</span> dialog box, specify the following values.<br/><span className="blue">Network</span> tab<br/><span className="blue">Network Name</span>: Specify a name to identify the network.<br/><span className="blue">Shared</span>: Share the network with other projects. Non admin users are not allowed to set shared option.<br/><span className="blue">Admin State</span>: The state to start the network in.<br/>
<span className="blue">Create Subnet</span>: Select this check box to create a subnet<br/>You do not have to specify a subnet when you create a network, but if you do not specify a subnet, the network can not be attached to an instance.<br/><br/>
<img src={createnetwork} alt="Create Network" /><br/><br/><span className="blue">Subnet</span> tab<br/><span className="blue">Subnet Name</span>: Specify a name for the subnet.<br/><span className="blue">Network Address</span>: Specify the IP address for the subnet.<br/><span className="blue">IP Version</span>: Select IPv4 or IPv6.<br/><span className="blue">Gateway IP</span>: Specify an IP address for a specific gateway. This parameter is optional.<br/><span className="blue">Disable Gateway</span>: Select this check box to disable a gateway IP address.<br/><br/> <img src={subnetnetwork} alt="Subnet Network"/><span className="blue">Subnet Details</span> tab<br/><span className="blue">Enable DHCP</span>: Select this check box to enable DHCP.<br/><span className="blue">Allocation Pools</span>: Specify IP address pools.<br/><span className="blue">DNS Name Servers</span>: Specify a name for the DNS server.<br/>Host Routes: Specify the IP address of host routes.</li><li>Click <span className="blue">Create</span>.<br/>The dashboard shows the network on the <span className="blue">Networks</span> tab.</li></ol></div><br/>

<div className="head">Create a router</div>
<div className="text"><ol><li>Log in to the dashboard.</li><li>Select the appropriate project from the drop down menu at the top left.</li><li>On the <span className="blue">Project</span> tab, open the <span className="blue">Network</span> tab and click <span className="blue">Routers </span>category.</li><li>Click <span className="blue">Create Router</span>.</li><li>In the <span className="blue">Create Router</span> dialog box, specify a name for the router and <span className="blue">External Network</span>, and click <span className="blue">Create Router</span>.<br/>The new router is now displayed in the <span className="blue">Routers</span> tab.</li><li>To connect a private network to the newly created router, perform the following steps:<br/>a. On the <span className="blue">Routers</span> tab, click the name of the router.<br/>b. On the <span className="blue">Router Details</span> page, click the <span className="blue">Interfaces</span> tab, then click <span className="blue">Add Interface</span>.<br/>c. In the <span className="blue">Add Interface</span> dialog box, select a Subnet.<br/>Optionally, in the <span className="blue">Add Interface</span> dialog box, set an <span className="blue">IP Address</span> for the router interface for the selected subnet.<br/>If you choose not to set the <span className="blue">IP Address</span> value, then by default OpenStack Networking uses the first host IP address in the subnet.<br/>The <span className="blue">Router Name</span> and <span className="blue">Router ID</span> fields are automatically updated.</li><li>Click Add Interface.</li></ol></div>
<div className="text">You have successfully created the router. You can view the new topology from the Network Topology tab.</div>



<div className="head">Create a port</div>
<div className="text"><ol><li>Log in to the dashboard.</li><li>Select the appropriate project from the drop-down menu at the top left.</li><li>On the <span className="blue">Project</span> tab, click <span className="blue">Networks</span> category.</li><li>Click on the <span className="blue">Network Name</span> of the network in which the port has to be created.</li><li>Go to the <span className="blue">Ports</span> tab and click <span className="blue">Create Port</span>.</li><li>In the Create Port dialog box, specify the following values.<br/><span className="blue">Name</span>: Specify name to identify the port<br/><span className="blue">Device ID</span>: Device ID attached to the port.<br/><span className="blue">Device Owner</span>: Device owner attached to the port.<br/><span className="blue">Binding Host</span>: The ID of the host where the port is allocated.<br/><span className="blue">Binding VNIC Type</span>: Select the VNIC type that is bound to the neutron port.</li><li>Click <span className="blue">Create Port</span>.<br/>The new port is now displayed in the Ports list.</li></ol></div>

