---
sidebar_label: 'Create an networks'
sidebar_position: 2
---

<!-- truncate -->
import CodeBlock from '@site/src/components/CodeBloack';

# 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).<br/><br/>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 <span style={{textDecoration:'underline', color:'blue'}}>OpenStack Networking Guide.</span></div> <br/>

<span style={{fontSize: '34px', fontFamily:'open sans'}}>Create a network</span><br/>

<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 style={{ color: 'blue' }}>Project tab </span>, open the <span style={{ color: 'blue' }}> Network tab </span> and click<span style={{ color: 'blue' }}> Network</span> category.</li><li>Click <span style={{ color: 'blue' }}>Create Network.</span>.</li><li>In the <span style={{ color: 'blue' }}> Create Network </span> dialog box, specify the following values.</li></ol> </div>

<div className="text" style={{ color: 'blue' , marginLeft:'30px'}}> Network tab</div>

<div className="text"><span style={{ color: 'blue' , marginLeft:'30px', }}>Network Name</span>: Specify a name to identify the network.</div>
<div className="text"><span style={{ color: 'blue' , marginLeft:'30px'}}>Shared</span>:  Share the network with other projects. Non admin users are not allowed to set shared option.</div>
<div className="text"><span style={{ color: 'blue' , marginLeft:'30px'}}>Admin State</span>:   The state to start the network in.</div>
<div className="text"><span style={{ color: 'blue' , marginLeft:'30px'}}>Create Subnet</span>:   Select this check box to create a subnet</div>
<div className="text"><span style={{ marginLeft:'30px'}}>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.</span></div>

<div className="text" style={{ color: 'blue' , marginLeft:'30px'}}>Subnet tab</div>

<div className="text"><span style={{ color: 'blue' , marginLeft:'30px', }}>Subnet Name</span>: Specify a name for the subnet.</div>
<div className="text"><span style={{ color: 'blue' , marginLeft:'30px', }}>Network Address</span>: Specify the IP address for the subnet.</div>
<div className="text"><span style={{ color: 'blue' , marginLeft:'30px', }}>IP Version</span>: Select IPv4 or IPv6.</div>
<div className="text"><span style={{ color: 'blue' , marginLeft:'30px', }}>Gateway IP</span>: Specify an IP address for a specific gateway. This parameter is optional.</div>
<div className="text"><span style={{ color: 'blue' , marginLeft:'30px', }}>Disable Gateway</span>: Select this check box to disable a gateway IP address.</div>

<div className="text"><span style={{ color: 'blue' , marginLeft:'30px', }}>Subnet Details tab</span>  </div>
<div className="text"><span  className="blue"style={{ marginLeft:'30px', }}>Enable DHCP</span>: Select this check box to enable DHCP.  </div>
<div className="text"><span  className="blue"style={{ marginLeft:'30px', }}>Allocation Pools</span>: Specify IP address pools.</div>
<div className="text"><span  className="blue"style={{ marginLeft:'30px', }}>DNS Name Servers</span>: Specify a name for the DNS server.</div>
<div className="text"><span  className="blue"style={{ marginLeft:'30px', }}>Host Routes</span>: Specify the IP address of host routes.</div>
<div className="text"><span style={{ marginLeft:'30px', }}>6.Click </span><span  className="blue">Create</span>.<br/>
The dashboard shows the network on the <span  className="blue">Networks tab</span>.</div><br/>

<span style={{fontSize: '34px', fontFamily:'open sans'}}>Create a router</span><br/>

<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 tab</span>, open the <span className="blue">Network tab</span> 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 tab</span>.</li><li>Routers tab.
To connect a private network to the newly created router, perform the following steps:<br/>
a. On the <span className="blue">Routers tab</span>, click the name of the router.<br/>
b. On the <span className="blue">Router Details</span> page, click the <span className="blue">Interfaces tab</span>, then click <span className="blue"> Add Interface</span>.<br/>
c. In the <span className="blue"> Add Interface</span> dialog box, select a <span className="blue">Subnet</span>.</li>
<span style={{ marginLeft:'20px', }}>&bull; 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.</span><br/>
<span style={{ marginLeft:'20px', }}>&bull; 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.</span><br/>
<span style={{ marginLeft:'20px', }}>&bull; The <span className="blue"> Router Name </span> and <span className="blue"> Router ID</span> fields are automatically updated.</span><li>Click <span className="blue">Add Interface</span>.</li>You have successfully created the router. You can view the new topology from the Network Topology tab.</ol></div>



<span style={{fontSize: '34px', fontFamily:'open sans'}}>Create a port</span><br/>

<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 tab</span>, 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 tab</span> and click <span className="blue">Create Port</span>.</li><li>In the <span className="blue">Create Port </span> dialog box, specify the following values.</li><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.<br/><li>Click <span className="blue">Create Port</span>.</li>The new port is now displayed in the <span className="blue">Ports </span>list.</ol> </div>



