[Openstack] Connect VM network to exists VLAN network

Martinx - ジェームズ thiagocmartinsc at gmail.com
Sat Aug 16 21:48:39 UTC 2014


Hi Nahn,

I'm using IceHouse with Ubuntu 14.04.1, topology "VLAN Provider Networks",
like this:

ml2_conf.ini:
---
[ml2]
 type_drivers = vlan
tenant_network_types = vlan
mechanism_drivers = openvswitch

[ml2_type_flat]

[ml2_type_vlan]
# "vm network" - tag range, from 200 to 400
network_vlan_ranges = physnet1:200:400

[ml2_type_gre]

[ml2_type_vxlan]

[securitygroup]
enable_security_group = True
firewall_driver =
neutron.agent.linux.iptables_firewall.OVSHybridIptablesFirewallDriver

[ovs]
enable_tunneling = False
tenant_network_type = vlan
integration_bridge = br-int
network_vlan_ranges = physnet1:200:400
bridge_mappings = physnet1:br-eth1
---

Network and Compute Nodes OVS bridges ("vm network" VLAN(s), tagged on
physical switch ports, wired to eth1 of each server - sever's eth0 is the
management net, used by VNC consoles, glance, apt-get of servers itself,
etc):
---
ovs-vsctl add-br br-int
ovs-vsctl add-br br-eth1
ovs-vsctl add-port br-eth1 eth1

# net-node only:
ovs-vsctl add-br br-ex
---

-----

Creating (controller) the Tenant Neutron Network(s) with tag VLAN200,
VLAN201...:

neutron net-create --tenant-id $TENANT_ID_0
--provider:physical_network=physnet1 --provider:network_type=vlan
--provider:segmentation_id=200 physnet1-vlan200
neutron net-create --tenant-id $TENANT_ID_1
--provider:physical_network=physnet1 --provider:network_type=vlan
--provider:segmentation_id=201 physnet1-vlan201

This way, your instances (vm) network might be 10.2.21.0/24 (vlan200), and
your office (192.168.1.0/24 vlan150?), then, they will talk easily, if you
have 1 gateway for both vlan150 (office) and vlan200-400 (OpenStack
Instances Network - VM).

This topology does not use Neutron L3 Router. You'll need an upstream
router(s) routing the traffic for all VLANs.

Hope it helps!

Cheers!
Thiago


On 14 August 2014 14:00, Nhan Cao <nhanct92 at gmail.com> wrote:

> Hi
> I have to network:
> vm network: 10.2.21.0/24
> exist VLAN network: 192.168.1.0/24
> I want to connect from my VM network to physic VLAN network.
> How i config to connect?
>
> Thanks :)
>
>
> _______________________________________________
> Mailing list:
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
> Post to     : openstack at lists.openstack.org
> Unsubscribe :
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20140816/337c60fa/attachment.html>


More information about the Openstack mailing list