Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Quantum Hands-On Lab.pdf


Published on


  • Be the first to comment

Quantum Hands-On Lab.pdf

  1. 1. Quantum Hands On! Aaron Rosen Dan Wendlandt Salvatore Orlando Somik Behera Team Openstack @ Vmware
  2. 2. Overview of tutorial● Quantum OpenvSwitch plugin● Overlapping IP● Shared Networks● L3 Routing● Floating IP● Whats going on behind the scene
  3. 3. Topology
  4. 4. Network Node HV1 HV2 Controller GW: External Internet Data External Client Management
  5. 5. Overlapping Tenant Network● source ~/user_demo_one● quantum net-create net1-user-one● quantum subnet-create net1-user-one● nova boot --image cirros --flavor 1 --nic net-id=<net1-user-one-id> vm1-user-one● nova boot --image cirros --flavor 1 --nic net-id=<net1-user-one-id> vm2-user-one● source ~/user_demo_two● quantum net-create net1-user-two● quantum subnet-create net1-user-two● nova boot --image cirros --flavor 1 --nic net-id=<net1-user-two> vm1-user-two● nova boot --image cirros --flavor 1 --nic net-id=<net1-user-two> vm2-user-two
  6. 6. L3 Routing● source ~/admin_user● # create two private networks we want to route between● quantum net-create privnet1● quantum subnet-create --name priv1subnet priv1-● quantum net-create privnet2● quantum subnet-create --name priv2 priv2● # create a router● quantum router-create router1● # connect router to the two private subnets● quantum router-interface-add router1 priv1subnet● # note port list adds a port with .1 address to subnet● nova boot --image cirros --flavor 1 --nic net-id=<privnet1-id> vm-privnet1● nova boot --image cirros --flavor 1 --nic net-id=<privnet2-id> vm-privnet2● # login to horizon to confirm route pinging
  7. 7. Floating IP● # create external network● quantum net-create ext_net -- --router:external=True● quantum subnet-create ext_net -- --enable_dhcp=False● # connect router to the upstream external network● quantum router-gateway-set router1 ext_net● # create some floating ips out of this external network● quantum floatingip-create ext_net --port_id $VM2_PORT_ID● quantum floatingip-disassociate <floating_ip_id>