<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<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;">Maruf was correct.<br>
<br>
Also in your plugin.ini you have associate each physical network to a bridge. And each of those bridges should have one physical network interface attached.
<br>
<br>
In my previous mail i gave an example where I associated Extnet to br-ex. Then add eth2 to br-ex. Then your external network(ext-net) would be overlaid on top of Extnet, bridged to br-ex, then traffic flows outside through eth2.
<br>
<br>
Thank you,<br>
Ageeleshwar K<br>
<div style="font-family: Times New Roman; color: #000000; font-size: 16px">
<hr tabindex="-1">
<div style="direction: ltr;" id="divRpF98857"><font color="#000000" face="Tahoma" size="2"><b>From:</b> Md. Maruful Hassan [mrf.mnm@gmail.com]<br>
<b>Sent:</b> Thursday, April 03, 2014 9:29 AM<br>
<b>To:</b> Erich Weiler<br>
<b>Cc:</b> Ageeleshwar Kandavelu; Alex Yang; openstack@lists.openstack.org<br>
<b>Subject:</b> Re: [Openstack] Neutron network node setup<br>
</font><br>
</div>
<div></div>
<div>
<div dir="ltr">You need to use 'flat' instead of 'local' and specify physical_network . so modify
<div><br>
</div>
<div><span style="font-family:arial,sans-serif; font-size:13px">neutron net-create ext-net --provider:network_type=local --shared --router:external=True</span><br>
</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">to </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">neutron net-create ext-net --provider:network_type=flat --provider:physical_network Extnet --shared --router:external=True</span><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">Extnet is the name you configured in plugin.ini as bridge_mapping </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">- Maruf</span></div>
</div>
<div class="gmail_extra"><br clear="all">
<div>--<br>
m@ruf</div>
<br>
<br>
<div class="gmail_quote">On Thu, Apr 3, 2014 at 9:37 AM, 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">
Hi Ageeleshwar,<br>
<br>
I *think* I see what you are saying - is this correct? First, I create a flat external network:<br>
<br>
# neutron net-create ext-net --provider:network_type=local --shared --router:external=True
<div class=""><br>
<br>
Created a new network:<br>
+---------------------------+-<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 |<br>
| name | ext-net |<br>
| provider:network_type | local |<br>
| provider:physical_network | |<br>
| provider:segmentation_id | |<br>
| router:external | True |<br>
| shared | True |
<div class=""><br>
| status | ACTIVE |<br>
| subnets | |<br>
| tenant_id | 36687b1d611740bd9e7309432b22db<u></u>cd |<br>
+---------------------------+-<u></u>------------------------------<u></u>-------+<br>
<br>
</div>
# neutron subnet-create ext-net --allocation-pool start=134.145.112.10,end=134.<u></u>145.112.100 --gateway=134.145.112.1 --enable_dhcp=False
<a href="http://134.145.112.0/24" target="_blank">134.145.112.0/24</a><br>
<br>
Created a new subnet:<br>
+------------------+----------<u></u>------------------------------<u></u>--------------+<br>
| Field | Value |<br>
+------------------+----------<u></u>------------------------------<u></u>--------------+<br>
| allocation_pools | {"start": "134.145.112.10", "end": "134.145.112.100"} |<br>
| cidr | <a href="http://134.145.112.0/26" target="_blank">134.145.112.0/26</a> |<br>
| dns_nameservers | |<br>
| enable_dhcp | False |<br>
| gateway_ip | 134.145.112.1 |<br>
| host_routes | |<br>
| id | 6082cdb3-98bc-4fbe-a0fb-<u></u>ff264ea7384f |<br>
| ip_version | 4 |<br>
| name | |<br>
| network_id | 71b4b5b9-e744-4c67-9b62-<u></u>4f64ab727e47 |<br>
| tenant_id | 36687b1d611740bd9e7309432b22db<u></u>cd |<br>
+------------------+----------<u></u>------------------------------<u></u>--------------+<br>
<br>
Create a router from ext-to-int for my demo tenant:<br>
<br>
# neutron router-create ext-to-int --tenant-id 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>
| 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 71b4b5b9-e744-4c67-9b62-<u></u>4f64ab727e47<br>
<br>
Set gateway for router 4ca4292c-8954-4f21-acd6-<u></u>b0044e0d02cb<br>
<br>
Create a tenant-network with a VLAN:<br>
<br>
# neutron net-create --tenant-id f7e61747885045d8b266a161310c00<u></u>94 demo-net --provider:network_type vlan --provider:physical_network physnet1 --provider:segmentation_id 201
<div class=""><br>
<br>
Created a new network:<br>
+---------------------------+-<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 |<br>
| name | demo-net |
<div class=""><br>
| provider:network_type | vlan |<br>
| provider:physical_network | physnet1 |<br>
</div>
| provider:segmentation_id | 201 |
<div class=""><br>
| shared | False |<br>
| status | ACTIVE |<br>
| subnets | |<br>
</div>
| tenant_id | f7e61747885045d8b266a161310c00<u></u>94 |<br>
+---------------------------+-<u></u>------------------------------<u></u>-------+<br>
<br>
Create demo-net subnet:<br>
<br>
# neutron subnet-create --tenant-id f7e61747885045d8b266a161310c00<u></u>94 demo-net
<a href="http://10.200.0.0/16" target="_blank">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>----------+<br>
| allocation_pools | {"start": "10.200.0.2", "end": "10.200.255.254"} |<br>
| cidr | <a href="http://10.200.0.0/16" target="_blank">10.200.0.0/16</a> |<br>
| dns_nameservers | |<br>
| enable_dhcp | True |<br>
| gateway_ip | 10.200.0.1 |<br>
| host_routes | |<br>
| id | da53e0df-fb00-46ad-a709-<u></u>6eaeda13e23f |<br>
| ip_version | 4 |<br>
| name | |<br>
| network_id | 37190389-df4b-49c0-81b9-<u></u>05aa6411a81b |<br>
| tenant_id | f7e61747885045d8b266a161310c00<u></u>94 |<br>
+------------------+----------<u></u>------------------------------<u></u>----------+<br>
<br>
Set the router for demo-net:<br>
<br>
# neutron router-interface-add 4ca4292c-8954-4f21-acd6-<u></u>b0044e0d02cb da53e0df-fb00-46ad-a709-<u></u>6eaeda13e23f<br>
<br>
Added interface 250215bf-fe8b-40ed-aeb9-<u></u>e284427ec432 to router 4ca4292c-8954-4f21-acd6-<u></u>b0044e0d02cb.<br>
<br>
And that should work yes? With a flat ext-net and a VLAN-based internal net for my tenant net demo-net?<br>
<br>
Thanks so much for you help! The guides don't really go into this kind of detail...<br>
<br>
-erich
<div class=""><br>
<br>
On 4/2/14, 3:07 AM, 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="">Make your external network flat. If you do so there wont be any 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 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. 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 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>
------------------------------<u></u>------------------------------<u></u>------------<br>
*From:* Alex Yang [<a href="mailto:alex890714@gmail.com" target="_blank">alex890714@gmail.com</a>]<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>
*Subject:* Re: [Openstack] Neutron network node setup
<div class=""><br>
<br>
Hi Erich,<br>
<br>
I think this following articles may helpful for you.<br>
<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>
</div>
<mailto:<a href="mailto:weiler@soe.ucsc.edu" target="_blank">weiler@soe.ucsc.edu</a>>>:
<div class=""><br>
<br>
Hey Y'all,<br>
<br>
I'm setting up a dedicated neutron network node and I'm having a bit<br>
of trouble understanding the way the networks work. On the network<br>
node I have one interface on the public net (eth0), one interface on<br>
the private net (eth1) and I'm following these guides to set it up.<br>
<br>
My plan is to have eth0 on the public network, no VLAN 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>
</div>
+---------------------------+-<u></u>__----------------------------<u></u>--__-------+<br>
| Field | Value |<br>
+---------------------------+-<u></u>__----------------------------<u></u>--__-------+<br>
| admin_state_up | True |<br>
| id | a5599b54-dbfc-42fa-b5b9-__<u></u>e8ebd574ded0 |
<div class=""><br>
| name | ext-net |<br>
| provider:network_type | vlan |<br>
| provider:physical_network | physnet1 |<br>
| provider:segmentation_id | 200 |<br>
| router:external | True |<br>
| shared | False |<br>
| status | ACTIVE |<br>
| subnets | |<br>
</div>
| tenant_id | 36687b1d611740bd9e7309432b22db<u></u>__cd |<br>
+---------------------------+-<u></u>__----------------------------<u></u>--__-------+
<div class=""><br>
<br>
But, I don't think network_type=vlan right? As eth0 just sits right<br>
on a public network? Should network_type=local instead? Also,<br>
should physical_network equal null, and also 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>
______________________________<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>
<div class=""><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>
</div>
<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>
<br>
<span class="HOEnZb"><font color="#888888"><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>></font></span>
<div class=""><br>
GitHub: <a href="https://github.com/AlexYangYu" target="_blank">https://github.com/AlexYangYu</a><br>
Weibo: <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>
</div>
</blockquote>
<br>
<div class="HOEnZb">
<div class="h5">______________________________<u></u>_________________<br>
Mailing list: <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>
Unsubscribe : <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>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</div>
http://www.csscorp.com/common/email-disclaimer.php
</body>
</html>