# Range for automatic VLAN ID

**URL:** <https://forum.opennebula.io/t/range-for-automatic-vlan-id/2563>\
**Category:** Product Support\
**Created:** [July 13, 2016, 8:58am UTC](https://forum.opennebula.io/t/range-for-automatic-vlan-id/2563 "2016-07-13T08:58:39Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![madko](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/madko/32/4195_2.png) [@madko](https://forum.opennebula.io/u/madko)\
**Post date:** [July 13, 2016, 8:58am UTC](https://forum.opennebula.io/t/range-for-automatic-vlan-id/2563/1 "2016-07-13T08:58:40Z")

</div>

Hi,

In oned.conf there is a bloc to configure the automatic VLAN id (we use OpenVswitch).

```
VLAN_IDS = [
    START = "2000",,
    RESERVED = "0, 1, 4095"
]

```

Is there a way to add and END ? We try this:

```
VLAN_IDS = [
    START = "2000",
    END = "3499",
    RESERVED = "0, 1, 4095"
]

```

No error, but is it correct ?

ps: Can’t find this in the documentation.

---

<div class="post-metadata">

**Author:** ![ruben](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/ruben/32/19_2.png) [@ruben](https://forum.opennebula.io/u/ruben)\
**Post date:** [July 13, 2016, 9:44am UTC](https://forum.opennebula.io/t/range-for-automatic-vlan-id/2563/2 "2016-07-13T09:44:16Z")

</div>

Limit is only set for 802.1Qx + ovswitch, it is limited to 4095 (by oned,  
for these drivers only)

---

<div class="post-metadata">

**Author:** ![madko](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/madko/32/4195_2.png) [@madko](https://forum.opennebula.io/u/madko)\
**Post date:** [July 13, 2016, 9:47am UTC](https://forum.opennebula.io/t/range-for-automatic-vlan-id/2563/3 "2016-07-13T09:47:22Z")

</div>

How can I tell oned to only use VLANs from 2000 to 3499 ? (3499 or any other end of range)

---

<div class="post-metadata">

**Author:** ![ruben](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/ruben/32/19_2.png) [@ruben](https://forum.opennebula.io/u/ruben)\
**Post date:** [July 13, 2016, 9:55am UTC](https://forum.opennebula.io/t/range-for-automatic-vlan-id/2563/4 "2016-07-13T09:55:30Z")

</div>

Not, supported right now, you need to put all the numbers in oned.conf. We  
need to add ranges (eg. reserved 3500-4000)

---

<div class="post-metadata">

**Author:** ![madko](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/madko/32/4195_2.png) [@madko](https://forum.opennebula.io/u/madko)\
**Post date:** [July 13, 2016, 11:47am UTC](https://forum.opennebula.io/t/range-for-automatic-vlan-id/2563/5 "2016-07-13T11:47:00Z")

</div>

Thanks Ruben. Any ticket to follow the implementation of this feature ?

---

<div class="post-metadata">

**Author:** ![ruben](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/ruben/32/19_2.png) [@ruben](https://forum.opennebula.io/u/ruben)\
**Post date:** [July 19, 2016, 3:45pm UTC](https://forum.opennebula.io/t/range-for-automatic-vlan-id/2563/6 "2016-07-19T15:45:47Z")

</div>

I’ve opened one:

[http://dev.opennebula.org/issues/4658](http://dev.opennebula.org/issues/4658)

---

<div class="post-metadata">

**Author:** ![madko](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/madko/32/4195_2.png) [@madko](https://forum.opennebula.io/u/madko)\
**Post date:** [July 19, 2016, 5:25pm UTC](https://forum.opennebula.io/t/range-for-automatic-vlan-id/2563/7 "2016-07-19T17:25:25Z")

</div>

thanks again Ruben. That’s perfect
