Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # First you need to create the external bridge interface
- osvs-vsctl add-br br-ext
- # Then you'll want to edit /etc/network/interfaces and change your external interface in there to be br-ext. The
- 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.
- # Associate the external interface with the bridge
- ovs-vsctl br-set-external-id br-ex bridge-id br-ext
- ovs-vsctl add-port br-ext eth0
- # Create the subnet for floating IPs
- ## Get your tenant-id
- keystone tenant list
- ## Create subnet for floating ips
- quantum net-create --tenant-id $put_id_of_service_tenant ext_net --router:external=True
- 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
- ## 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
- ## Edit /etc/quantum/l3_agent.ini and set this variable
- external_network_bridge = br-ext
- ## Restart l3-agent
- service quantum-l3-agent restart
- ## Associate external network with your existing router
- quantum router-gateway-set $put_router_proj_one_id_here $put_id_of_ext_net_here
- ## You should now be able to associate floating IP addresses with your instances
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement