<div dir="ltr">Hi <span name="Angelo Olivera" class="">Angelo,<br><br><br></span><div id="xunlei_com_thunder_helper_plugin_d462f475-c18e-46be-bd10-327458d045bd"></div>I had the same problem with you.<br>when I try:<br><br>

# ovs-vsctl add-br br-dev<br>
# ovs-vsctl add-port br-dev eth1 tag=108<br><br>and it doesn't work.<br><br>Does it mean we have to use vconfig to add a eth1.108 virtual interface, and add it into bridge?<br>But OpenVSwitch suppose to support vlan directly.<br>
<br>That's a bit tricky.<br><br><div id="xunlei_com_thunder_helper_plugin_d462f475-c18e-46be-bd10-327458d045bd"></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, May 13, 2013 at 4:06 AM, Angelo Olivera <span dir="ltr"><<a href="mailto:aolivera@gmail.com" target="_blank">aolivera@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Salvatore, thanks for your reply. It took me a few tries but I finally<br>
solved this issue by creating the vlan devices on the respective<br>
interfaces, adding them to the corresponding bridges with ovs-vsctl<br>
and configuring two external networks with quantum.<br>
<br>
This would correspond to the "Multiple Flat Network" use case<br>
described in the Grizzly Networking Administration Guide[1], although<br>
the configuration is not explained. Quantum provides DHCP with default<br>
routes 10.33.8.1 (vlan 108) and 10.33.9.1 (vlan 109). Namespaces are<br>
used and there is one instance of the metadata proxy per each<br>
namespace.<br>
<br>
[1] <a href="http://docs.openstack.org/grizzly/openstack-network/admin/content/use_cases_multi_flat.html" target="_blank">http://docs.openstack.org/grizzly/openstack-network/admin/content/use_cases_multi_flat.html</a><br>

<br>
/etc/network/interfaces<br>
auto lo<br>
iface lo inet loopback<br>
<br>
auto eth0<br>
iface eth0 inet static<br>
    address 10.33.10.210<br>
    netmask 255.255.255.0<br>
    gateway 10.33.10.1<br>
<br>
auto eth1<br>
iface eth1 inet manual<br>
<br>
auto eth1.108<br>
iface eth1.108 inet manual<br>
    vlan-raw-device eth1<br>
    up /sbin/ifconfig eth1.108 up<br>
<br>
auto eth1.109<br>
iface eth1.109 inet manual<br>
    vlan-raw-device eth1<br>
    up /sbin/ifconfig eth1.109 up<br>
<br>
/etc/quantum/quantum.conf<br>
[DEFAULT]<br>
lock_path = $state_path/lock<br>
bind_host = 0.0.0.0<br>
bind_port = 9696<br>
core_plugin = quantum.plugins.openvswitch.ovs_quantum_plugin.OVSQuantumPluginV2<br>
api_paste_config = /etc/quantum/api-paste.ini<br>
control_exchange = quantum<br>
rabbit_host = 10.33.10.210<br>
notification_driver = quantum.openstack.common.notifier.rpc_notifier<br>
default_notification_level = INFO<br>
notification_topics = notifications<br>
[QUOTAS]<br>
[DEFAULT_SERVICETYPE]<br>
[AGENT]<br>
root_helper = sudo quantum-rootwrap /etc/quantum/rootwrap.conf<br>
[keystone_authtoken]<br>
auth_host = 127.0.0.1<br>
auth_port = 35357<br>
auth_protocol = http<br>
admin_tenant_name = service<br>
admin_user = quantum<br>
admin_password = #######<br>
signing_dir = /var/lib/quantum/keystone-signing<br>
<br>
/etc/quantum/dhcp_agent.ini<br>
[DEFAULT]<br>
interface_driver = quantum.agent.linux.interface.OVSInterfaceDriver<br>
dhcp_driver = quantum.agent.linux.dhcp.Dnsmasq<br>
use_namespaces = True<br>
enable_isolated_metadata = True<br>
<br>
/etc/quantum/plugins/openvswitch/ovs_quantum_plugin.ini<br>
[DATABASE]<br>
sql_connection = mysql://quantum######@<a href="http://10.33.10.210/quantum?charset=utf8" target="_blank">10.33.10.210/quantum?charset=utf8</a><br>
reconnect_interval = 2<br>
[OVS]<br>
# even when using flat networking these two variables had to be<br>
defined for the multiple physical networks to work<br>
tenant_network_type = vlan<br>
network_vlan_ranges = physdev:2048:4094,physqa:2048:4094<br>
bridge_mappings = physdev:br-dev,physqa:br-qa<br>
[AGENT]<br>
polling_interval = 2<br>
[SECURITYGROUP]<br>
firewall_driver =<br>
quantum.agent.linux.iptables_firewall.OVSHybridIptablesFirewallDriver<br>
<br>
# ovs-vsctl add-br br-int<br>
# ovs-vsctl add-br br-dev<br>
# ovs-vsctl add-port br-dev eth1.108<br>
# ovs-vsctl add-br br-qa<br>
# ovs-vsctl add-port br-qa eth1.109<br>
# quantum net-create --shared dev --provider:network_type flat<br>
--router:external=True --provider:physical_network physdev<br>
# quantum net-create --shared qa --provider:network_type flat<br>
--router:external=True --provider:physical_network physqa<br>
# quantum subnet-create dev <a href="http://10.33.8.0/24" target="_blank">10.33.8.0/24</a> --name dev-subnet<br>
--allocation-pool start=10.33.8.10,end=10.33.8.254<br>
# quantum subnet-create qa <a href="http://10.33.9.0/24" target="_blank">10.33.9.0/24</a> --name qa-subnet<br>
--allocation-pool start=10.33.9.10,end=10.33.9.254<br>
<br>
(Question also posted on<br>
<a href="https://answers.launchpad.net/quantum/+question/228437/" target="_blank">https://answers.launchpad.net/quantum/+question/228437/</a>)<br>
<br>
Regards,<br>
<br>
--<br>
Angelo<br>
<div class="HOEnZb"><div class="h5"><br>
On Thu, May 9, 2013 at 8:07 AM, Salvatore Orlando <<a href="mailto:sorlando@nicira.com">sorlando@nicira.com</a>> wrote:<br>
> Your configuration looks correct, and provider networks are what you need<br>
> for implementing this use case.<br>
><br>
> Is the traffic for your subnets improperly tagged, or are you unable at all<br>
> to forward traffic?<br>
> If you're not using GRE overlays it might make sense verifying that VLAN<br>
> 108/109 are allowed on physical switch ports or that the physical switch<br>
> ports are in trunk mode.<br>
><br>
><br>
> Regards,<br>
> Salvatore<br>
><br>
><br>
> On 8 May 2013 20:21, Ashok Kumaran <<a href="mailto:ashokkumaran.b@gmail.com">ashokkumaran.b@gmail.com</a>> wrote:<br>
>><br>
>> Hi Angelo,<br>
>><br>
>> This should be possible. Make sure that eth1 is connected to the Vlan<br>
>> trunk with necessary port configurations.<br>
>><br>
>> Create 2 network with segmentation's ID as 108 and 109 respectively.<br>
>> Create the respective subnets for both network and then proceed with further<br>
>> configurations as needed. Are you facing any specific issues here?<br>
>><br>
>> -Ashok<br>
>><br>
>><br>
>> On Wed, May 8, 2013 at 9:57 PM, Angelo Olivera <<a href="mailto:aolivera@gmail.com">aolivera@gmail.com</a>> wrote:<br>
>>><br>
>>> Hello,<br>
>>><br>
>>> I am using Ubuntu 12.04 and OpenStack Grizzly from the Ubuntu Cloud<br>
>>> archive. I am trying to get instances to get an IP address from dnsmasq in<br>
>>> the <a href="http://10.33.8.0/24" target="_blank">10.33.8.0/24</a> or <a href="http://10.33.9.0/24" target="_blank">10.33.9.0/24</a> space and use physical routers at .1 as<br>
>>> gateways. Furthermore, these two subnets should be tagged with VLANs 108 and<br>
>>> 109, respectively.<br>
>>><br>
>>> Is this doable? I have been trying different configurations with Open<br>
>>> vSwitch to no avail. My network layout is as follows:<br>
>>><br>
>>> Nodes<br>
>>> =====<br>
>>><br>
>>> Controller, network, compute node (32-core system)<br>
>>> [eth0] 10.33.10.210. gateway: 10.33.10.1 (physical router)<br>
>>> [eth1] connected to VLAN port on switch<br>
>>><br>
>>> Compute nodes<br>
>>> [eth0] 10.33.10.X<br>
>>> [eth1] connected to VLAN port on switch<br>
>>><br>
>>> Logical networks<br>
>>> ============<br>
>>><br>
>>> [net1]<br>
>>> vlan:108<br>
>>> cidr: <a href="http://10.33.8.0/24" target="_blank">10.33.8.0/24</a><br>
>>> gateway: 10.33.8.1 (physical router)<br>
>>><br>
>>> [net2]<br>
>>> vlan: 109<br>
>>> cidr: <a href="http://10.33.9.0/24" target="_blank">10.33.9.0/24</a><br>
>>> gateway: 10.33.9.1 (physical router)<br>
>>><br>
>>> One of the configurations I tested:<br>
>>><br>
>>> /etc/quantum/plugins/openvswitch/ovs_quantum_plugin.ini<br>
>>> network_vlan_ranges = default:1:4094<br>
>>> bridge_mappings = default:br0<br>
>>><br>
>>> ovs-vsctl add-br br-int<br>
>>> ovs-vsctl add-br br0<br>
>>> ovs-vsctl add-port br0 eth1<br>
>>><br>
>>> quantum net-create --shared net1 --provider:network_type vlan<br>
>>> --provider:physical_network default --provider:segmentation_id 108<br>
>>> quantum subnet-create net1 <a href="http://10.33.8.0/24" target="_blank">10.33.8.0/24</a><br>
>>> quantum subnet-create net2 <a href="http://10.33.9.0/24" target="_blank">10.33.9.0/24</a><br>
>>><br>
>>> Thanks in advance!<br>
>>><br>
>>> --<br>
>>> Angelo<br>
>>><br>
>>><br>
>>> _______________________________________________<br>
>>> Mailing list: <a href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~openstack</a><br>
>>> Post to     : <a href="mailto:openstack@lists.launchpad.net">openstack@lists.launchpad.net</a><br>
>>> Unsubscribe : <a href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~openstack</a><br>
>>> More help   : <a href="https://help.launchpad.net/ListHelp" target="_blank">https://help.launchpad.net/ListHelp</a><br>
>>><br>
>><br>
>><br>
>><br>
>> --<br>
>> Regds,<br>
>><br>
>> Ashok ,<br>
>> Delivery Consultant,<br>
>> HP.<br>
>><br>
>> _______________________________________________<br>
>> Mailing list: <a href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~openstack</a><br>
>> Post to     : <a href="mailto:openstack@lists.launchpad.net">openstack@lists.launchpad.net</a><br>
>> Unsubscribe : <a href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~openstack</a><br>
>> More help   : <a href="https://help.launchpad.net/ListHelp" target="_blank">https://help.launchpad.net/ListHelp</a><br>
>><br>
><br>
<br>
_______________________________________________<br>
Mailing list: <a href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~openstack</a><br>
Post to     : <a href="mailto:openstack@lists.launchpad.net">openstack@lists.launchpad.net</a><br>
Unsubscribe : <a href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~openstack</a><br>
More help   : <a href="https://help.launchpad.net/ListHelp" target="_blank">https://help.launchpad.net/ListHelp</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br><div dir="ltr"><div><br></div><div>Thanks,</div><div><br></div>Yiting, Wu<div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div>
</div>
</div>