# Same AR with different IDs within a VNET

**URL:** <https://forum.opennebula.io/t/same-ar-with-different-ids-within-a-vnet/3619>\
**Category:** Product Support\
**Created:** [January 23, 2017, 10:02am UTC](https://forum.opennebula.io/t/same-ar-with-different-ids-within-a-vnet/3619 "2017-01-23T10:02:09Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![alvaro\_simongarcia](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/alvaro_simongarcia/32/4178_2.png) [@alvaro\_simongarcia](https://forum.opennebula.io/u/alvaro_simongarcia)\
**Post date:** [January 23, 2017, 10:02am UTC](https://forum.opennebula.io/t/same-ar-with-different-ids-within-a-vnet/3619/1 "2017-01-23T10:02:09Z")

</div>

Hi all

We have detected that is possible to generate the same AR (same IP, MAC and lease number) several times within the same VNET, OpenNebula does not complain about that just creates a new one with a different ID.

Is this done on purpose? It’s quite confusing because OpenNebula does not detect if the same AR is already available from the db and does not display any error message.

Cheers  
Alvaro

---

<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:** [February 2, 2017, 3:01pm UTC](https://forum.opennebula.io/t/same-ar-with-different-ids-within-a-vnet/3619/2 "2017-02-02T15:01:30Z")

</div>

> [@alvaro\_simongarcia](#):
>
> Is this done on purpose?

Yes, the idea is that you can group different AR’s logically in the same VNET. Each AR could have a different VLAN\_ID, and hence the same IP range.

Probably we can add some parameter to the add AR operation like --force to allow overlapping AR’s but still accommodate the original use case. Does it make sense?

---

<div class="post-metadata">

**Author:** ![alvaro\_simongarcia](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/alvaro_simongarcia/32/4178_2.png) [@alvaro\_simongarcia](https://forum.opennebula.io/u/alvaro_simongarcia)\
**Post date:** [February 2, 2017, 3:50pm UTC](https://forum.opennebula.io/t/same-ar-with-different-ids-within-a-vnet/3619/3 "2017-02-02T15:50:05Z")

</div>

Hi @ruben

Ah ok thanks a lot, now it makes sense. During our tests we were creating (by mistake) the same template with same `VLAN_ID` , IPs, MACs and lease number. I don’t know if a `--force` option is required, maybe just check if the same template is already there… but I’m not sure if there is a use case where you need the same template with different AR IDs.

btw I think that this issue is also related with this question: [https://dev.opennebula.org/issues/4992](https://dev.opennebula.org/issues/4992)

Thanks in advance!  
Alvaro

---

<div class="post-metadata">

**Author:** ![noss](https://avatars.discourse-cdn.com/v4/letter/n/ecccb3/32.png) [@noss](https://forum.opennebula.io/u/noss)\
**Post date:** [February 2, 2017, 5:22pm UTC](https://forum.opennebula.io/t/same-ar-with-different-ids-within-a-vnet/3619/4 "2017-02-02T17:22:02Z")

</div>

To add to this thread - we are using this feature of overlapping ARs to override mac addresses (albeit not an identical duplicate AR, but rather a 1-ip-sized AR with the different MAC address we want); I just commented on 4992 with some thoughts. Let me know what you think,

Thanks,  
John

---

<div class="post-metadata">

**Author:** ![alvaro\_simongarcia](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/alvaro_simongarcia/32/4178_2.png) [@alvaro\_simongarcia](https://forum.opennebula.io/u/alvaro_simongarcia)\
**Post date:** [February 7, 2017, 10:17am UTC](https://forum.opennebula.io/t/same-ar-with-different-ids-within-a-vnet/3619/5 "2017-02-07T10:17:48Z")

</div>

Hi

I have also included more feedback in [https://dev.opennebula.org/issues/4992](https://dev.opennebula.org/issues/4992) and yes probably you can include several ARs with “almost” the same conf but different MACs and OpenNebula should use one or another depending on the VM template request.  
The only issue is that you should take care if several VM templates are requesting different ARs with the same IP but different MACs… I dont know if OpenNebula will be able to detect that kind of IP/MAC conflicts…
