# VM IP assignment with DHCP uses node IP

**URL:** <https://forum.opennebula.io/t/vm-ip-assignment-with-dhcp-uses-node-ip/13398>\
**Category:** Product Support\
**Created:** [December 23, 2024, 2:36pm UTC](https://forum.opennebula.io/t/vm-ip-assignment-with-dhcp-uses-node-ip/13398 "2024-12-23T14:36:24Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![FrancJP](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/francjp/32/7690_2.png) [@FrancJP](https://forum.opennebula.io/u/FrancJP)\
**Post date:** [December 23, 2024, 5:04pm UTC](https://forum.opennebula.io/t/vm-ip-assignment-with-dhcp-uses-node-ip/13398/2 "2024-12-23T17:04:16Z")

</div>

Hello @hexamehcimal and welcome to this forum!!

Nice to see a new user trying to test and experiment a bit with OpenNebula, so feel free to ask any question here.

In any case, I would strongly suggest to check our documentation:  
[https://docs.opennebula.io/6.10/management\_and\_operations/references/template.html#context-section](https://docs.opennebula.io/6.10/management_and_operations/references/template.html#context-section)

There’s also a post that might help you:

> [@Questions about Virtual Networks and DHCP](https://forum.opennebula.io/t/questions-about-virtual-networks-and-dhcp/10335):
>
> Hi guys ! I have a question about Virtual Networks, i make an Cloud plateform with OpenNebula for Devs peoples. They will use the Cloud view of Nebula, because i want keep it very simple. But i have trouble to understand Virtual Networks and scpecialy the IP addresses. You can make IPv4 range, who will automaticaly assign IP adresses to new VMs in Sunstone but when you open the machine you don’t have IP. Of course i can give DHCP to my VMs, but that mismatch the IP address in Sunstone. …

And this one:

> [@Set VM IPs using DHCP](https://forum.opennebula.io/t/set-vm-ips-using-dhcp/3350/4):
>
> Hello, I wrote simple nodejs script which connect to opennebula xml-rpc api and generate dhcp reservations for dnsmasq server and also have ability to generate shorewall dnat rules.

If that’s not what you were looking, let me know 😉

Cheers,

---

_[View the full topic](https://forum.opennebula.io/t/vm-ip-assignment-with-dhcp-uses-node-ip/13398)._
