[Openstack] [openstack] [neutron] how to config one l3 agent for each l3 router?

Ageeleshwar Kandavelu Ageeleshwar.Kandavelu at csscorp.com
Wed Mar 5 14:36:29 UTC 2014


Hi,
This was interesting so lets work it out this way. Lets do it for vlan mode first and then apply the logic for gre.

Lets have two hosts that run l3-agent (nethost1, nethost2)

nethost1 configurations

In '/etc/neutron/plugins/openvswitch/ovs_neutron_plugin.ini'
network_vlan_ranges = Intnet1:100:200,Extnet1
bridge_mappings = Intnet1:br-eth1,Extnet1:br-ex

In '/etc/neutron/l3-agent.ini'
gateway_external_network_id=Extnet1

nethost2 configurations

In '/etc/neutron/plugins/openvswitch/ovs_neutron_plugin.ini'
network_vlan_ranges = Intnet1:100:200,Extnet2
bridge_mappings = Intnet1:br-eth1,Extnet2:br-ex


In '/etc/neutron/l3-agent.ini'
gateway_external_network_id=Extnet2

Summary

Now there are two l3 agents
Each one running on two different nodes
Each one configured to use two different external networks (Extnet1 and Extnet2)

Now you can create two external networks in neutron
neutron net-create --name External_Network_One --provider:physical_network Extnet1 --provider:network_type flat --router:external True --shared True

neutron net-create --name External_Network_Two --provider:physical_network Extnet2 --provider:network_type flat --router:external True --shared True

Then go on and create a subnet in each of the external networks

Now you can connect your subnet1 to one of the two external subnets with a router and start using. All your traffic will go through that router/l3-agent/external_network.
If you connect your subnet to the other external subnet then it will use a different route.

In GRE mode you need not specify network_vlan_ranges and the rest of the configurations should be the same.
I do not have a set up until next week so can not try this out myself. Good luck if you want to go ahead.
Do get back for any issues.

Thank you,
Ageeleshwar K
http://www.csscorp.com/common/email-disclaimer.php
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20140305/619c8d8b/attachment.html>


More information about the Openstack mailing list