<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style id="owaParaStyle" type="text/css">P {margin-top:0;margin-bottom:0;}</style>
</head>
<body ocsi="0" fpstyle="1">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">Hi,<br>
This was interesting so lets work it out this way. Lets do it for vlan mode first and then apply the logic for gre.<br>
<br>
Lets have two hosts that run l3-agent (nethost1, nethost2)<br>
<b><br>
<u>nethost1 configurations</u></b><br>
<br>
In '/etc/neutron/plugins/openvswitch/ovs_neutron_plugin.ini'<br>
network_vlan_ranges = Intnet1:100:200,Extnet1<br>
bridge_mappings = Intnet1:br-eth1,Extnet1:br-ex<br>
<br>
In '/etc/neutron/l3-agent.ini'<br>
gateway_external_network_id=Extnet1<br>
<br>
<u><b>nethost2 configurations</b></u><br>
<br>
In '/etc/neutron/plugins/openvswitch/ovs_neutron_plugin.ini'<br>
network_vlan_ranges = Intnet1:100:200,Extnet2<br>
bridge_mappings = Intnet1:br-eth1,Extnet2:br-ex<br>
<br>
<br>
In '/etc/neutron/l3-agent.ini'<br>
gateway_external_network_id=Extnet2<br>
<br>
<u><b>Summary</b></u><br>
<br>
Now there are two l3 agents<br>
Each one running on two different nodes<br>
Each one configured to use two different external networks (Extnet1 and Extnet2)<br>
<br>
Now you can create two external networks in neutron<br>
neutron net-create --name External_Network_One --provider:physical_network Extnet1 --provider:network_type flat --router:external True --shared True<br>
<br>
neutron net-create --name External_Network_Two --provider:physical_network Extnet2 --provider:network_type flat --router:external True --shared True<br>
<br>
Then go on and create a subnet in each of the external networks<br>
<br>
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.
<br>
If you connect your subnet to the other external subnet then it will use a different route.<br>
<br>
In GRE mode you need not specify network_vlan_ranges and the rest of the configurations should be the same.<br>
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.<br>
Do get back for any issues.<br>
<br>
Thank you,<br>
Ageeleshwar K<br>
</div>
http://www.csscorp.com/common/email-disclaimer.php
</body>
</html>