Ask Your Question
0

multiple vlan's in single network

asked 2014-01-28 08:50:31 -0500

RHK gravatar image

updated 2014-10-17 06:30:08 -0500

Dears,

Is it possible to create multiple VLAN's in single netwok shared with multiple tenants with openstack neutron?

Regards,
RHK

edit retag flag offensive close merge delete

2 answers

Sort by » oldest newest most voted
1

answered 2014-01-29 12:28:08 -0500

cloudssky gravatar image

If you have one physical network for vlan which is configured as a trunk on your switch, then you can create multiple vlans on the same physical network, lets say 10.1.0.0 (VLAN ID 1) for tenant1 and 10.2.0.0 (VLAN ID 2) for tenant2 and then you can create the first tenant named “tenant1”, the VLAN with ID 1 (10.1.0.0/24) will be assigned to your tenants automaticaly after "neutron net-create tenant{1,2}", here are the steps which I did after the RDO PackStack Installation with 3 Nics and set the VLAN ranges for the Neutron openvswitch plugin in the answer file:

CONFIG_NEUTRON_OVS_VLAN_RANGES=physnet1:1:20

Here are the steps:

Create tenant “tenant1”

keystone tenant-create --name tenant1

Create user “tenant1u”

keystone user-create --name tenant1u --pass tenant1pwd

Assign the admin or Member role to tenant1u

keystone user-role-add --user tenant1u --role admin --tenant tenant1

Verify the tenant:

keystone tenant-list

Create a private network “tenant1net” and use VLAN with ID 1 (10.1.0.0/24) for tenant1_subnet:

neutron net-create tenant1net

Here you shall get the output similar to this:

| provider:network_type | vlan

| provider:physical_network | physnet1

| provider:segmentation_id | 1

Create private subnet:

neutron subnet-create tenant1net 10.1.0.0/24 --name tenant1_subnet --dns-nameserver 8.8.8.8

Create a router for tenant tenant1:

neutron router-create router_tenant1

neutron router-interface-add router_tenant1 tenant1_subnet

Repeat these steps for tenant 2.

HTH

edit flag offensive delete link more
0

answered 2014-01-28 11:31:57 -0500

RomilGupta gravatar image

I think it is not possible , we can create one VLAN per network. but a network could be shared across tenants.

edit flag offensive delete link more

Comments

I'm using one physical network with 2 VLANs for 2 different tenants with neutron and the tenants don't see each other, but I'm not sure if this worked before with quantum on Grizzly.

cloudssky gravatar imagecloudssky ( 2014-01-28 16:20:59 -0500 )edit

But when i create a network, one vlan tag is attaching for that network. How we can add more vlans for same network in neutron? I am trying with quantum but i didn't get the correct solution. Can i get more information how you created 2 valns for 2 different tenants with single network? Regards, RHK

RHK gravatar imageRHK ( 2014-01-28 22:15:27 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2014-01-28 08:50:31 -0500

Seen: 711 times

Last updated: Oct 17 '14