Skip to content

Instantly share code, notes, and snippets.

@jjasghar
Last active August 29, 2015 14:10
Show Gist options
  • Save jjasghar/2a093c129c266a9779e6 to your computer and use it in GitHub Desktop.
Save jjasghar/2a093c129c266a9779e6 to your computer and use it in GitHub Desktop.
build your tenant network!
neutron net-create ext-net --shared --router:external=True
neutron subnet-create ext-net --name ext-subnet \
--allocation-pool start=172.16.100.100,end=172.16.100.253 \
--disable-dhcp --gateway 172.16.100.1 172.16.100.0/24
neutron net-create tenant-net
neutron subnet-create tenant-net --name tenant-subnet \
--gateway 192.168.1.1 192.168.1.0/24
neutron router-create tenant-router
neutron router-interface-add tenant-router tenant-subnet
neutron router-gateway-set tenant-router ext-net
@jjasghar
Copy link
Author

neutron net-create ext-net --shared --router:external=True
neutron subnet-create ext-net --name ext-subnet \
  --allocation-pool start=10.0.1.200,end=10.0.1.253 \
  --disable-dhcp --gateway 10.0.1.1 10.0.1.0/24
neutron net-create tenant-net
neutron subnet-create tenant-net --name tenant-subnet \
  --gateway 192.168.1.1 192.168.1.0/24
neutron router-create tenant-router
neutron router-interface-add tenant-router tenant-subnet
neutron router-gateway-set tenant-router ext-net

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment