# Virtual Router KVM

**URL:** <https://forum.opennebula.io/t/virtual-router-kvm/5482>\
**Category:** Product Support\
**Created:** [December 26, 2017, 12:23pm UTC](https://forum.opennebula.io/t/virtual-router-kvm/5482 "2017-12-26T12:23:17Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![1115](https://avatars.discourse-cdn.com/v4/letter/1/9f8e36/32.png) [@1115](https://forum.opennebula.io/u/1115)\
**Post date:** [December 26, 2017, 12:23pm UTC](https://forum.opennebula.io/t/virtual-router-kvm/5482/1 "2017-12-26T12:23:17Z")

</div>

Please, describe, how to configure virtual router from market for using dhcp for VM’s.  
And is it right , that i create two bridges, the first for vm, second for link in host and router in ON?

 ![Screenshot_9](https://canada1.discourse-cdn.com/flex031/uploads/opennebula/original/2X/d/dc0ea7d89ec41e21c4ddd746c1354688039e9650.png)

---

<div class="post-metadata">

**Author:** ![1115](https://avatars.discourse-cdn.com/v4/letter/1/9f8e36/32.png) [@1115](https://forum.opennebula.io/u/1115)\
**Post date:** [December 27, 2017, 11:48am UTC](https://forum.opennebula.io/t/virtual-router-kvm/5482/2 "2017-12-27T11:48:05Z")

</div>

i understood how to do it and realized this with router os. if necessary for anybody, i can publish short “how to”

---

<div class="post-metadata">

**Author:** ![kamarul](https://avatars.discourse-cdn.com/v4/letter/k/e99b99/32.png) [@kamarul](https://forum.opennebula.io/u/kamarul)\
**Post date:** [January 5, 2018, 1:10am UTC](https://forum.opennebula.io/t/virtual-router-kvm/5482/3 "2018-01-05T01:10:43Z")

</div>

Definitely. Please do. it would help the community

---

<div class="post-metadata">

**Author:** ![1115](https://avatars.discourse-cdn.com/v4/letter/1/9f8e36/32.png) [@1115](https://forum.opennebula.io/u/1115)\
**Post date:** [January 8, 2018, 9:30am UTC](https://forum.opennebula.io/t/virtual-router-kvm/5482/4 "2018-01-08T09:30:27Z")

</div>

I have situation for test opennebula.

- OpenNebula with white static IP (for example 180.0.0.2)
- Mikrotik with another IP (for example 180.0.0.3) and his local IP 192.168.88.1
- KVM node in local network with IP 192.168.88.2  
My task was to create another local network in OpenNebula with the help of router os

In the begining I create 2 bridge in the KVM node:  
the first one for connecting VM to local network  
the second one for connecting virtual router to 192.168.88.0/24 network

We create virtual router with 2 interfaces: local and internet.  
At first i edited local interface (gave pool of local addreses and turned on dhcp )  
Than wrote nat rule masquarade from ON local network to internet interface.  
As i remeber in internet interface i set up only IP address

---

<div class="post-metadata">

**Author:** ![miljan](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/miljan/32/5119_2.png) [@miljan](https://forum.opennebula.io/u/miljan)\
**Post date:** [September 22, 2018, 4:46pm UTC](https://forum.opennebula.io/t/virtual-router-kvm/5482/5 "2018-09-22T16:46:12Z")

</div>

Hi @1115

> [@1115](#):
>
> In the begining I create 2 bridge in the KVM node:

How meny NIC do you have on KVM node?

Miljan
