Advertisement
Guest User

Untitled

a guest
Apr 12th, 2013
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.46 KB | None | 0 0
  1. # First you need to create the external bridge interface
  2. osvs-vsctl add-br br-ext
  3.  
  4. # Then you'll want to edit /etc/network/interfaces and change your external interface in there to be br-ext. The
  5. bridge interface needs to have the IP address associated with it. Once you associate the ethernet interface with the bridge it will no longer work.
  6.  
  7. # Associate the external interface with the bridge
  8.  
  9. ovs-vsctl br-set-external-id br-ex bridge-id br-ext
  10. ovs-vsctl add-port br-ext eth0
  11.  
  12. # Create the subnet for floating IPs
  13.  
  14. ## Get your tenant-id
  15.  
  16. keystone tenant list
  17.  
  18. ## Create subnet for floating ips
  19.  
  20. quantum net-create --tenant-id $put_id_of_service_tenant ext_net --router:external=True
  21. quantum subnet-create --tenant-id $put_id_of_service_tenant --allocation-pool start=$floating_range_start,end=$floating_range_end --gateway $external_Gateway ext_net $external_address_range/cidr --enable_dhcp=False
  22.  
  23. ## Example: quantub subnet-create -tenant-id [tenant-id] --allocation-pool start=192.16.1.100,end=192.168.1.200 --gateway 192.168.1.1 ext_net 192.168.1.0/24 --enable_dhcp=False
  24.  
  25.  
  26.  
  27. ## Edit /etc/quantum/l3_agent.ini and set this variable
  28.  
  29. external_network_bridge = br-ext
  30.  
  31. ## Restart l3-agent
  32.  
  33. service quantum-l3-agent restart
  34.  
  35. ## Associate external network with your existing router
  36.  
  37. quantum router-gateway-set $put_router_proj_one_id_here $put_id_of_ext_net_here
  38.  
  39. ## You should now be able to associate floating IP addresses with your instances
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement