Building a Network in Neutron

Length: 00:08:39

Lesson Summary:

OpenStack Neutron allows users to create and attach interface devices managed by other OpenStack services to virtual networks. Plugins can be implemented to accommodate different networking equipment and software, providing flexibility to OpenStack architecture and deployment.

View Neutron architecture diagram.

To create a public Neutron network in your environment, use the following steps:

  1. Source the keystonerc_admin file (found in the home directory of your packstack user):
    $ source keystonerc_admin
    
  • Create a network:
    $ openstack network create --share --external \
    --provider-network-type flat \
    --provider-physical-network extnet public
    
  • Create a subnet attached to the public network created in the previous step. Optionally, you can set a subnet range with the --subnet-range start=$beginning_ip, end=$ending_ip flag. The --dns-nameserver for your network can be any public DNS provider you prefer or just your network gateway:
    $ openstack subnet create --network public --subnet-range 192.168.1.0/24 \
    --allocation-pool start=192.168.1.25,end=192.168.1.125 \
    --dns-nameserver 1.1.1.1 --gateway 192.168.1.1 public_subnet
    
  • Create a router:
    $ openstack router create router1
    
  • Set the public network as your router gateway to enable external networking:
    $ openstack router set --external-gateway public router1
    


This lesson is only available to Linux Academy members.

Sign Up To View This Lesson
Or Log In

Looking For Team Training?

Learn More