[Openstack] How to support for multiple external networks?

José Riguera López jriguera at gmail.com
Thu Nov 19 11:38:48 UTC 2015


You can, just tell neutron you want to have another external network. Lets
say VLAN=300 is 192.168.66. <http://192.168.66.0/24>0/24

# Creating the external network type VLAN with VLAND ID == 300
# The name of the provider physical_network "ext" is mapped to a physical
# device on the ML2 configuration file of each network node

neutron net-create \
    --provider:network_type vlan \
    --provider:physical_network ext \
    --router:external \
    --provider:segmentation_id 300 \
    ext_net_300

# Define the IP range for floating IPs available on that network, the
gateway,
# DNS nameservers and CIDR, and no DHCP (in this case)
neutron subnet-create \
--allocation-pool start=192.168.66. <http://192.168.66.0/24>10,end=1
92.168.66. <http://192.168.66.0/24>255 \
--ip-version 4 \
    --gateway 192.168.88.1 \
    --disable-dhcp \
    --dns-nameserver 8.8.8.8 \
    --name ext_net_300_subnet \
    ext_net_300 192.168.66. <http://192.168.66.0/24>0/24

Then the users will see 2 (or more) floating ip pools ...

Regards,



2015-11-19 11:18 GMT+01:00 Ray Sun <xiaoquqi at gmail.com>:

> I want to setup multiple external networks, but I don't know how to make
> this works.
>
> Here's my user requirements:
> There are two departments want to use my cloud, but as history problem,
> they wants their VMs to use original IP range. DepA wants to use floating
> ip in 192.168.66.0/24, DepB wants to use floating ip in 192.168.77.0/24.
>
> I can create multiple subnets in my external network. But I am not quite
> sure if this can work in OpenStack. In my network environment,
> 192.168.66.0/24 and 192.168.77.0/24 are two VLANs.
>
>
> Anybody know how to implement this kind of scenarios? If this is not
> possible, how can I design my architecture to meet the requirements.
>
> Thanks.
>
> Best Regards
> -- Ray
>
> _______________________________________________
> 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
>
>


-- 
José Riguera López <jriguera at gmail.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20151119/6ba2ff1e/attachment.html>


More information about the Openstack mailing list