Created
April 13, 2015 21:15
-
-
Save danehans/b8c0a720fceb2931fd52 to your computer and use it in GitHub Desktop.
kolla neutron
This file contains hidden or 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
## Non Provider Option | |
neutron net-create public225 --router:external True --provider:physical_network physnet225 --provider:network_type flat | |
neutron subnet-create --name 225-subnet --disable-dhcp --allocation-pool start=192.168.225.150,end=192.168.225.250 public225 192.168.225.0/24 --gateway 192.168.225.1 --dns_nameservers list=true 192.168.26.186 | |
neutron net-create demo-net --provider:network_type vxlan --provider:segmentation_id 10 | |
neutron subnet-create demo-net --name demo-subnet --gateway 10.10.10.1 10.10.10.0/24 | |
neutron router-create demo-router | |
neutron router-interface-add demo-router demo-subnet | |
neutron router-gateway-set demo-router public225 | |
# Sec Group COnfig | |
neutron security-group-rule-create default --direction ingress --ethertype IPv4 --protocol icmp --remote-ip-prefix 0.0.0.0/0 | |
neutron security-group-rule-create default --direction ingress --ethertype IPv4 --protocol tcp --port-range-min 22 --port-range-max 22 --remote-ip-prefix 0.0.0.0/0 | |
# Create a keypair | |
nova keypair-add --pub-key id_rsa.pub <key_name> | |
# Launch a Nova VM | |
nova boot --flavor m1.tiny --image cirros --nic net-id= | |
nova boot --flavor m1.tiny --image cirros --key-name danehans-kp --nic net-id= |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment