Build a Network with OpenStack Neutron

Hands-On Lab

 

Length

01:30:00

Difficulty

Intermediate

Build a Network with OpenStack Neutron In this live lab, you are tasked with building networks for an OpenStack environment using the OpenStack CLI or Horizon dashboard. The networks should be connected to a router named router1, & floating IPs should be able to be allocated to any VMs connected to Pinenet. Good luck!

What are Hands-On Labs?

Hands-On Labs are scenario-based learning environments where learners can practice without consequences. Don't compromise a system or waste money on expensive downloads. Practice real-world skills without the real-world risk, no assembly required.

  • Create a private network for the admin project named pinenet
openstack network create pinenet
  • create private subnet named pinenet_sub on the subnet 192.168.12.0/24
openstack subnet create pinenet_sub 
--network pinenet --subnet-range 192.168.12.0/24 
  • Create a public network named public on the subnet 10.0.2.0/24
openstack network create --share --external 
    --provider-network-type flat --provider-physical-network extnet public
  • create a public subnet named public_subnet on the subnet 10.0.2.0/24 with the gateway IP 10.0.2.1 & DNS nameserver 1.1.1.1. DHCP should NOT be enabled.
openstack subnet create --network public --subnet-range 10.0.2.0/24 
    --no-dhcp --dns-nameserver 1.1.1.1 --gateway 10.0.2.1 public_subnet
  • create a router named router1
openstack router create router1
  • set public network as router gw
openstack router set --external-gateway public router1
  • add the internal interface to router1
openstack router add subnet router1 pinenet_sub