Skip to content

Instantly share code, notes, and snippets.

@jriguera
Created November 17, 2015 16:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jriguera/4b41728c6f6c2514b614 to your computer and use it in GitHub Desktop.
Save jriguera/4b41728c6f6c2514b614 to your computer and use it in GitHub Desktop.
Defining external networks on OpenStack
# Load the admin credentials
. /root/openrc
# Creating the external network type VLAN with VLAND ID == 300 (Online_dev).
# The name of the provider physical_network "ext" is mapped to a physical
# device on the ML2 configuration file of each network node
neutron net-create \
--provider:network_type vlan \
--provider:physical_network ext \
--router:external \
--provider:segmentation_id 300 \
online_dev
# Define the IP range for floating IPs available on that network, the gateway,
# DNS nameservers and CIDR, and no DHCP (in this case)
neutron subnet-create \
--allocation-pool start=10.100.10.151,end=10.100.10.200 \
--ip-version 4 \
--gateway 10.100.10.1 \
--disable-dhcp \
--dns-nameserver 8.8.8.8 \
--name online_dev-subnet \
online_dev 10.100.10.0/24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment