Created
November 17, 2015 16:02
-
-
Save jriguera/4b41728c6f6c2514b614 to your computer and use it in GitHub Desktop.
Defining external networks on OpenStack
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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