<div dir="ltr">I think you should have <div><br></div><div>On controller node - </div><div><br></div><div>1. neutron-server running</div><div>2. plugin.ini <span style="font-family:arial,sans-serif;font-size:13px">network_vlan_ranges = physnet1:200:209,Extnet_</span></div>
<div><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div><span style="font-family:arial,sans-serif;font-size:13px">On neutron node </span></div>
<div><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div><span style="font-family:arial,sans-serif;font-size:13px">1. All service ( dhcp-agent, l3 agent etc except neutron server) running </span></div>
<div><span style="font-family:arial,sans-serif;font-size:13px">2. plugin.ini </span></div><div><span style="font-family:arial,sans-serif;font-size:13px"> </span></div><span style="font-family:arial,sans-serif;font-size:13px">tenant_network_type = vlan</span><br style="font-family:arial,sans-serif;font-size:13px">
<span style="font-family:arial,sans-serif;font-size:13px">network_vlan_ranges = physnet1:200:209,Extnet</span><br style="font-family:arial,sans-serif;font-size:13px"><div><span style="font-family:arial,sans-serif;font-size:13px">bridge_mappings = physnet1:br-eth2,Extnet:br-ex</span></div>
<div><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div><font face="arial, sans-serif">Create the br-ex on neutron node .. attache the physical interface to it ... </font></div><div><font face="arial, sans-serif"><br>
</font></div><div><font face="arial, sans-serif">You can have /etc/sysconfig/network-scripts/ifcfg-br-ex with the following </font></div><div><font face="arial, sans-serif"><br></font></div><div><font face="arial, sans-serif"><div>
DEVICE=br-ex</div><div>TYPE=OVSBridge</div><div>DEVICETYPE=ovs</div><div>ONBOOT=yes</div><div>OVSBOOTPROTO=static</div><div>IPADDR=192.168.100.91</div><div>NETMASK=255.255.255.0</div><div>OVS_EXTRA="set bridge br-ex other-config:hwaddr=<MAC ADDRESS TO BE USED FOR BR_EX>"</div>
<div><br></div><div>and if you attach eth0 to it .. add this </div><div><br></div><div>/etc/sysconfig/network-scripts/ifcfg-eth0<br></div><div><br></div><div><div>DEVICE=eth0</div><div>DEVICETYPE=ovs</div><div>TYPE=OVSPort</div>
<div>BOOTPROTO=none</div><div>OVS_BRIDGE=br-ex</div><div>ONBOOT=yes</div></div><div><br></div><div><br></div><div>Restart network service on neutron node and all neutron services. Restart neutron server on controller node</div>
<div><br></div><div>Try creating the the network again. </div><div><br></div><div><br></div></font></div><div><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div><span style="font-family:arial,sans-serif;font-size:13px"><br>
</span></div></div><div class="gmail_extra"><br clear="all"><div>--<br>m@ruf</div>
<br><br><div class="gmail_quote">On Mon, Apr 7, 2014 at 2:43 PM, Erich Weiler <span dir="ltr"><<a href="mailto:weiler@soe.ucsc.edu" target="_blank">weiler@soe.ucsc.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
OK, one step closer to this but still not quite there... in ovs_neutron_plugin.ini on my network node I have:<br>
<br>
tenant_network_type = vlan<br>
network_vlan_ranges = physnet1:200:209,Extnet<br>
bridge_mappings = physnet1:br-eth2,Extnet:br-ex<br>
<br>
and when I run this command I get an error:<br>
<br>
# neutron net-create ext-net --provider:network_type=flat --provider:physical_network Extnet --shared --router:external=True<br>
<br>
400-{u'NeutronError': {u'message': u'Invalid input for operation: Unknown provider:physical_network Extnet.', u'type': u'InvalidInput', u'detail': u''}}<br>
<br>
I'm not sure how it's not seeing that Extnet isn't there, I defined it in the plugin.ini file on the network node... On the controller node I even tried to put that same plugin.ini info in there (even though the controller node doesn't have br-eth2) as a test, still doesn't work. Any ideas where it's not finding "physical_network Extnet"? I think I'm very close here but just am an inch away...<br>
<br>
Thanks again!<br>
<br>
cheers,<br>
erich<div class=""><br>
<br>
On 4/2/14, 11:05 PM, Ageeleshwar Kandavelu wrote:<br>
</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="">
Maruf was correct.<br>
<br>
Also in your plugin.ini you have associate each physical network to a<br>
bridge. And each of those bridges should have one physical network<br>
interface attached.<br>
<br>
In my previous mail i gave an example where I associated Extnet to<br>
br-ex. Then add eth2 to br-ex. Then your external network(ext-net) would<br>
be overlaid on top of Extnet, bridged to br-ex, then traffic flows<br>
outside through eth2.<br>
<br>
Thank you,<br>
Ageeleshwar K<br></div><div class="">
------------------------------<u></u>------------------------------<u></u>------------<br>
*From:* Md. Maruful Hassan [<a href="mailto:mrf.mnm@gmail.com" target="_blank">mrf.mnm@gmail.com</a>]<br></div>
*Sent:* Thursday, April 03, 2014 9:29 AM<br>
*To:* Erich Weiler<br>
*Cc:* Ageeleshwar Kandavelu; Alex Yang; <a href="mailto:openstack@lists.openstack.org" target="_blank">openstack@lists.openstack.org</a><div class=""><br>
*Subject:* Re: [Openstack] Neutron network node setup<br>
<br></div><div class="">
You need to use 'flat' instead of 'local' and specify physical_network .<br>
so modify<br>
<br>
neutron net-create ext-net --provider:network_type=local --shared<br>
--router:external=True<br>
<br>
to<br>
<br>
neutron net-create ext-net --provider:network_type=flat<br>
--provider:physical_network Extnet --shared --router:external=True<br>
<br>
Extnet is the name you configured in plugin.ini as bridge_mapping<br>
<br>
- Maruf<br>
<br>
--<br>
m@ruf<br>
<br>
<br>
On Thu, Apr 3, 2014 at 9:37 AM, Erich Weiler <<a href="mailto:weiler@soe.ucsc.edu" target="_blank">weiler@soe.ucsc.edu</a><br></div><div class="">
<mailto:<a href="mailto:weiler@soe.ucsc.edu" target="_blank">weiler@soe.ucsc.edu</a>>> wrote:<br>
<br>
Hi Ageeleshwar,<br>
<br>
I *think* I see what you are saying - is this correct? First, I<br>
create a flat external network:<br>
<br>
# neutron net-create ext-net --provider:network_type=local --shared<br>
--router:external=True<br>
<br>
<br>
Created a new network:<br></div><div class="">
+---------------------------+-<u></u>__----------------------------<u></u>--__-------+<br>
| Field | Value |<br>
+---------------------------+-<u></u>__----------------------------<u></u>--__-------+<br>
| admin_state_up | True |<br></div>
| id | 71b4b5b9-e744-4c67-9b62-__<u></u>4f64ab727e47 |<div class=""><br>
| name | ext-net |<br>
| provider:network_type | local |<br>
| provider:physical_network | |<br>
| provider:segmentation_id | |<br>
| router:external | True |<br>
| shared | True |<br>
<br>
| status | ACTIVE |<br>
| subnets | |<br></div>
| tenant_id | 36687b1d611740bd9e7309432b22db<u></u>__cd |<br>
+---------------------------+-<u></u>__----------------------------<u></u>--__-------+<div class=""><br>
<br>
# neutron subnet-create ext-net --allocation-pool<br></div><div class="">
start=134.145.112.10,end=134._<u></u>_145.112.100 --gateway=134.145.112.1<br>
--enable_dhcp=False <a href="http://134.145.112.0/24" target="_blank">134.145.112.0/24</a> <<a href="http://134.145.112.0/24" target="_blank">http://134.145.112.0/24</a>><br>
<br>
Created a new subnet:<br>
+------------------+----------<u></u>__----------------------------<u></u>--__--------------+<br>
| Field | Value<br>
|<br>
+------------------+----------<u></u>__----------------------------<u></u>--__--------------+<br></div><div class="">
| allocation_pools | {"start": "134.145.112.10", "end":<br>
"134.145.112.100"} |<br></div>
| cidr | <a href="http://134.145.112.0/26" target="_blank">134.145.112.0/26</a> <<a href="http://134.145.112.0/26" target="_blank">http://134.145.112.0/26</a>><div class=""><br>
|<br>
| dns_nameservers |<br>
|<br>
| enable_dhcp | False<br>
|<br>
| gateway_ip | 134.145.112.1<br>
|<br>
| host_routes |<br>
|<br></div><div class="">
| id | 6082cdb3-98bc-4fbe-a0fb-__<u></u>ff264ea7384f<br>
|<br>
| ip_version | 4<br>
|<br>
| name |<br>
|<br>
| network_id | 71b4b5b9-e744-4c67-9b62-__<u></u>4f64ab727e47<br>
|<br>
| tenant_id | 36687b1d611740bd9e7309432b22db<u></u>__cd<br>
|<br>
+------------------+----------<u></u>__----------------------------<u></u>--__--------------+<br>
<br></div><div class="">
Create a router from ext-to-int for my demo tenant:<br>
<br>
# neutron router-create ext-to-int --tenant-id<br></div><div class="">
f7e61747885045d8b266a161310c00<u></u>__94<br>
Created a new router:<br>
+-----------------------+-----<u></u>__----------------------------<u></u>--__---+<br>
| Field | Value |<br>
+-----------------------+-----<u></u>__----------------------------<u></u>--__---+<br>
| admin_state_up | True |<br>
| external_gateway_info | |<br>
| id | 4ca4292c-8954-4f21-acd6-__<u></u>b0044e0d02cb |<br></div>
| name | ext-to-int |<br>
| status | ACTIVE |<br>
| tenant_id | f7e61747885045d8b266a161310c00<u></u>__94 |<br>
+-----------------------+-----<u></u>__----------------------------<u></u>--__---+<br>
<br>
Set my router gateway:<br>
<br>
# neutron router-gateway-set 4ca4292c-8954-4f21-acd6-__<u></u>b0044e0d02cb<div class=""><br>
71b4b5b9-e744-4c67-9b62-__<u></u>4f64ab727e47<br>
<br>
Set gateway for router 4ca4292c-8954-4f21-acd6-__<u></u>b0044e0d02cb<br>
<br></div><div class="">
Create a tenant-network with a VLAN:<br>
<br></div>
# neutron net-create --tenant-id f7e61747885045d8b266a161310c00<u></u>__94<div class=""><br>
demo-net --provider:network_type vlan --provider:physical_network<br>
physnet1 --provider:segmentation_id 201<br>
<br>
<br>
Created a new network:<br></div><div class="">
+---------------------------+-<u></u>__----------------------------<u></u>--__-------+<br>
| Field | Value |<br>
+---------------------------+-<u></u>__----------------------------<u></u>--__-------+<br>
| admin_state_up | True |<br></div>
| id | 37190389-df4b-49c0-81b9-__<u></u>05aa6411a81b |<div class=""><br>
| name | demo-net |<br>
<br>
| provider:network_type | vlan |<br>
| provider:physical_network | physnet1 |<br>
| provider:segmentation_id | 201 |<br>
<br>
| shared | False |<br>
| status | ACTIVE |<br>
| subnets | |<br></div>
| tenant_id | f7e61747885045d8b266a161310c00<u></u>__94 |<br>
+---------------------------+-<u></u>__----------------------------<u></u>--__-------+<div class=""><br>
<br>
Create demo-net subnet:<br>
<br>
# neutron subnet-create --tenant-id<br></div>
f7e61747885045d8b266a161310c00<u></u>__94 demo-net <a href="http://10.200.0.0/16" target="_blank">10.200.0.0/16</a><br>
<<a href="http://10.200.0.0/16" target="_blank">http://10.200.0.0/16</a>> --gateway 10.200.0.1<br>
<br>
Created a new subnet:<br>
+------------------+----------<u></u>__----------------------------<u></u>--__----------+<br>
| Field | Value |<br>
+------------------+----------<u></u>__----------------------------<u></u>--__----------+<div class=""><br>
| allocation_pools | {"start": "10.200.0.2", "end": "10.200.255.254"} |<br></div>
| cidr | <a href="http://10.200.0.0/16" target="_blank">10.200.0.0/16</a> <<a href="http://10.200.0.0/16" target="_blank">http://10.200.0.0/16</a>><div class=""><br>
|<br>
| dns_nameservers | |<br>
| enable_dhcp | True |<br>
| gateway_ip | 10.200.0.1 |<br>
| host_routes | |<br></div><div class="">
| id | da53e0df-fb00-46ad-a709-__<u></u>6eaeda13e23f<br>
|<br>
| ip_version | 4 |<br>
| name | |<br>
| network_id | 37190389-df4b-49c0-81b9-__<u></u>05aa6411a81b<br>
|<br>
| tenant_id | f7e61747885045d8b266a161310c00<u></u>__94<br>
|<br>
+------------------+----------<u></u>__----------------------------<u></u>--__----------+<br>
<br></div><div class="">
Set the router for demo-net:<br>
<br>
# neutron router-interface-add<br></div><div class="">
4ca4292c-8954-4f21-acd6-__<u></u>b0044e0d02cb<br>
da53e0df-fb00-46ad-a709-__<u></u>6eaeda13e23f<br>
<br>
Added interface 250215bf-fe8b-40ed-aeb9-__<u></u>e284427ec432 to router<br>
4ca4292c-8954-4f21-acd6-__<u></u>b0044e0d02cb.<br>
<br></div><div><div class="h5">
And that should work yes? With a flat ext-net and a VLAN-based<br>
internal net for my tenant net demo-net?<br>
<br>
Thanks so much for you help! The guides don't really go into this<br>
kind of detail...<br>
<br>
-erich<br>
<br>
<br>
On 4/2/14, 3:07 AM, Ageeleshwar Kandavelu wrote:<br>
<br>
Make your external network flat. If you do so there wont be any<br>
vlan tag<br>
on packets reaching your external network.<br>
<br>
in you plugin.ini you put something like this<br>
network_vlan_ranges = Intnet1:100:200,Extnet<br>
bridge_mappings = Intnet1:br-eth1,Extnet:br-ex<br>
<br>
This means you would use vlan id 100 to 200 on openstack networks<br>
created on top of Intnet1.<br>
<br>
On Extnet you would not use any vlan.<br>
<br>
Then you say that to all traffic on network created on Intnet1<br>
should be<br>
bridged to br-eth1. Then you would add eth1 to br-eth1.<br>
<br>
Then you say all traffic for Extnet should be bridged to br-ex.<br>
Then you<br>
have to add a physical interface say eth2 to br-ex.<br>
<br>
Finally you can create an external network in openstack with<br>
physical_network=Extnet.<br>
<br>
You just said that all internal network shall be created and<br>
Intnet1 and<br>
allocated vlan from 100 to 200.<br>
External network shall be overlaid on top of Extnet and no vlans.<br>
<br>
Hope it makes sense.<br>
<br>
Ageeleshwar K<br>
<br>
<br></div></div>
------------------------------<u></u>__----------------------------<u></u>--__------------<div class=""><br>
*From:* Alex Yang [<a href="mailto:alex890714@gmail.com" target="_blank">alex890714@gmail.com</a><br></div>
<mailto:<a href="mailto:alex890714@gmail.com" target="_blank">alex890714@gmail.com</a>>]<div class=""><br>
*Sent:* Wednesday, April 02, 2014 7:09 AM<br>
*To:* Erich Weiler<br>
*Cc:* <a href="mailto:openstack@lists.openstack.org" target="_blank">openstack@lists.openstack.org</a><br></div>
<mailto:<a href="mailto:openstack@lists.openstack.org" target="_blank">openstack@lists.<u></u>openstack.org</a>><div class=""><br>
*Subject:* Re: [Openstack] Neutron network node setup<br>
<br>
<br>
Hi Erich,<br>
<br>
I think this following articles may helpful for you.<br>
<br></div>
<a href="http://developer.rackspace." target="_blank">http://developer.rackspace.</a>__<u></u>com/blog/categories/__<u></u>networking/<div class=""><br>
<<a href="http://developer.rackspace.com/blog/categories/networking/" target="_blank">http://developer.rackspace.<u></u>com/blog/categories/<u></u>networking/</a>><br>
<br>
<br>
<br>
2014-04-02 5:59 GMT+08:00 Erich Weiler <<a href="mailto:weiler@soe.ucsc.edu" target="_blank">weiler@soe.ucsc.edu</a><br>
<mailto:<a href="mailto:weiler@soe.ucsc.edu" target="_blank">weiler@soe.ucsc.edu</a>><br></div>
<mailto:<a href="mailto:weiler@soe.ucsc.edu" target="_blank">weiler@soe.ucsc.edu</a> <mailto:<a href="mailto:weiler@soe.ucsc.edu" target="_blank">weiler@soe.ucsc.edu</a>>>><u></u>:<div class=""><br>
<br>
<br>
Hey Y'all,<br>
<br>
I'm setting up a dedicated neutron network node and I'm<br>
having a bit<br>
of trouble understanding the way the networks work. On the<br>
network<br>
node I have one interface on the public net (eth0), one<br>
interface on<br>
the private net (eth1) and I'm following these guides to<br>
set it up.<br>
<br>
My plan is to have eth0 on the public network, no VLAN<br>
magic there<br>
or anything. eth1 will be the data interface, and it will be<br>
connected to a trunk switchport so it can use VLANs for tenant<br>
isolation (OVS VLAN plugin).<br>
<br>
I ran this command to set up ext-net:<br>
<br>
neutron net-create ext-net --router:external=True<br>
<br>
Created a new network:<br>
<br></div><div class="">
+---------------------------+-<u></u>____--------------------------<u></u>--__--__-------+<br>
| Field | Value<br>
|<br>
<br>
+---------------------------+-<u></u>____--------------------------<u></u>--__--__-------+<br>
| admin_state_up | True<br>
|<br>
| id |<br>
a5599b54-dbfc-42fa-b5b9-____<u></u>e8ebd574ded0 |<br>
<br></div><div class="">
| name | ext-net<br>
|<br>
| provider:network_type | vlan<br>
|<br>
| provider:physical_network | physnet1<br>
|<br>
| provider:segmentation_id | 200<br>
|<br>
| router:external | True<br>
|<br>
| shared | False<br>
|<br>
| status | ACTIVE<br>
|<br>
| subnets |<br>
|<br>
| tenant_id |<br></div>
36687b1d611740bd9e7309432b22db<u></u>____cd |<br>
<br>
+---------------------------+-<u></u>____--------------------------<u></u>--__--__-------+<div class=""><br>
<br>
<br>
<br>
But, I don't think network_type=vlan right? As eth0 just<br>
sits right<br>
on a public network? Should network_type=local instead? Also,<br>
should physical_network equal null, and also<br>
segmentation_id equal<br>
null as well?<br>
<br>
I would understand type=vlan and seg_id and such for a tenant<br>
network, but for ext-net?<br>
<br>
Any hints would be greatly appreciated...!<br>
<br>
-erich<br>
<br></div><div class="">
______________________________<u></u>_____________________<br>
Mailing list:<br>
<a href="http://lists.openstack.org/____cgi-bin/mailman/listinfo/____openstack" target="_blank">http://lists.openstack.org/___<u></u>_cgi-bin/mailman/listinfo/____<u></u>openstack</a><br>
<<a href="http://lists.openstack.org/__cgi-bin/mailman/listinfo/__openstack" target="_blank">http://lists.openstack.org/__<u></u>cgi-bin/mailman/listinfo/__<u></u>openstack</a>><br>
<br>
<br></div><div class="">
<<a href="http://lists.openstack.org/__cgi-bin/mailman/listinfo/__openstack" target="_blank">http://lists.openstack.org/__<u></u>cgi-bin/mailman/listinfo/__<u></u>openstack</a><br>
<<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack" target="_blank">http://lists.openstack.org/<u></u>cgi-bin/mailman/listinfo/<u></u>openstack</a>>><br>
Post to : <a href="mailto:openstack@lists.openstack.org" target="_blank">openstack@lists.openstack.org</a><br>
<mailto:<a href="mailto:openstack@lists.openstack.org" target="_blank">openstack@lists.<u></u>openstack.org</a>><br></div><div class="">
<mailto:<a href="mailto:openstack@lists." target="_blank">openstack@lists.</a>__<a href="http://openstack.org" target="_blank">open<u></u>stack.org</a><br>
<mailto:<a href="mailto:openstack@lists.openstack.org" target="_blank">openstack@lists.<u></u>openstack.org</a>>><br>
Unsubscribe :<br>
<a href="http://lists.openstack.org/____cgi-bin/mailman/listinfo/____openstack" target="_blank">http://lists.openstack.org/___<u></u>_cgi-bin/mailman/listinfo/____<u></u>openstack</a><br>
<<a href="http://lists.openstack.org/__cgi-bin/mailman/listinfo/__openstack" target="_blank">http://lists.openstack.org/__<u></u>cgi-bin/mailman/listinfo/__<u></u>openstack</a>><br>
<br></div><div class="">
<<a href="http://lists.openstack.org/__cgi-bin/mailman/listinfo/__openstack" target="_blank">http://lists.openstack.org/__<u></u>cgi-bin/mailman/listinfo/__<u></u>openstack</a><br>
<<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack" target="_blank">http://lists.openstack.org/<u></u>cgi-bin/mailman/listinfo/<u></u>openstack</a>>><br>
<br>
<br>
<br>
<br>
--<br>
杨雨<br>
Email: <a href="mailto:alex890714@gmail.com" target="_blank">alex890714@gmail.com</a> <mailto:<a href="mailto:alex890714@gmail.com" target="_blank">alex890714@gmail.com</a>><br></div>
<mailto:<a href="mailto:alex890714@gmail.com" target="_blank">alex890714@gmail.com</a> <mailto:<a href="mailto:alex890714@gmail.com" target="_blank">alex890714@gmail.com</a>>><br>
<br>
GitHub: <a href="https://github.com/AlexYangYu" target="_blank">https://github.com/AlexYangYu</a><div class=""><br>
Weibo: <a href="http://www.weibo.com/__alexyangyu" target="_blank">http://www.weibo.com/__<u></u>alexyangyu</a><br>
<<a href="http://www.weibo.com/alexyangyu" target="_blank">http://www.weibo.com/<u></u>alexyangyu</a>><br>
<a href="http://www.csscorp.com/common/__email-disclaimer.php" target="_blank">http://www.csscorp.com/common/<u></u>__email-disclaimer.php</a><br>
<<a href="http://www.csscorp.com/common/email-disclaimer.php" target="_blank">http://www.csscorp.com/<u></u>common/email-disclaimer.php</a>><br>
<br>
<br></div><div class="">
______________________________<u></u>___________________<br>
Mailing list:<br>
<a href="http://lists.openstack.org/__cgi-bin/mailman/listinfo/__openstack" target="_blank">http://lists.openstack.org/__<u></u>cgi-bin/mailman/listinfo/__<u></u>openstack</a><br>
<<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack" target="_blank">http://lists.openstack.org/<u></u>cgi-bin/mailman/listinfo/<u></u>openstack</a>><br>
Post to : <a href="mailto:openstack@lists.openstack.org" target="_blank">openstack@lists.openstack.org</a><br>
<mailto:<a href="mailto:openstack@lists.openstack.org" target="_blank">openstack@lists.<u></u>openstack.org</a>><br>
Unsubscribe :<br>
<a href="http://lists.openstack.org/__cgi-bin/mailman/listinfo/__openstack" target="_blank">http://lists.openstack.org/__<u></u>cgi-bin/mailman/listinfo/__<u></u>openstack</a><br>
<<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack" target="_blank">http://lists.openstack.org/<u></u>cgi-bin/mailman/listinfo/<u></u>openstack</a>><br>
<br>
<br>
</div><a href="http://www.csscorp.com/common/email-disclaimer.php" target="_blank">http://www.csscorp.com/common/<u></u>email-disclaimer.php</a><br>
</blockquote>
</blockquote></div><br></div>