Openstack – CREATE A NETWORK AND SUBNET VIA THE CLI

SUMMARY

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).

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 Cloud Administrator Guide.

CREATE A NETWORK AND SUBNET VIA THE CLI

  1. Create Network:

2) Create a Subnet:

The subnet-create command has the following positional and optional parameters:

  • The name or ID of the network to which the subnet belongs.
  • In this example, net1 is a positional argument that specifies the network name.
  • The CIDR of the subnet.
  • In this example, 192.168.2.0/24 is a positional argument that specifies the CIDR.
  • The subnet name, which is optional.
  • In this example, –name subnet1 specifies the name of the subnet.

For information and examples on more advanced use of neutron’s subnet subcommand, see the Cloud Administrator Guide.

CREATE A ROUTER VIA THE CLI

  1. Create a Router:

  1. Link the router to the external provider network:

 

Link the router to the subnet:

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s