Skip to content

Instantly share code, notes, and snippets.

@wasmum
Created June 29, 2016 21:00
Show Gist options
  • Select an option

  • Save wasmum/736b9bc82dff99fe57755d3672678c65 to your computer and use it in GitHub Desktop.

Select an option

Save wasmum/736b9bc82dff99fe57755d3672678c65 to your computer and use it in GitHub Desktop.
l3_agent.ini
external_network_bridge =
add ports:
ovs-vsctl add-port br-ex bond0.101
ovs-vsctl add-port br-ex bond0.102
ml2plugin
[ml2_type_flat]
flat_networks = external,ex101,ex102
ovs plugin, unless you use centos and plugin.ini is a symlink to ml2plugin
[ovs]
bridge_mappings = external:br-ex,ex101:br-ex,ex102:br-ex
add networks:
neutron net-create ex101-net --router:external True --provider:physical_network ex101 --provider:network_type flat
create subnet
neutron subnet-create <netword-id> --name ex101-subnet \
--allocation-pool start=10.11.11.2,end=10.11.11.14 \
--disable-dhcp --gateway 10.11.11.1 10.11.11.0/28
add networks:
neutron net-create ex102-net --router:external True --provider:physical_network ex102 --provider:network_type flat
create subnet
neutron subnet-create <netword-id> --name ex102-subnet \
--allocation-pool start=10.10.10.2,end=10.10.11.14 \
--disable-dhcp --gateway 10.10.10.1 10.10.11.0/28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment