# Gateway of different range is not working in KVM node

**URL:** <https://forum.opennebula.io/t/gateway-of-different-range-is-not-working-in-kvm-node/9539>\
**Category:** Product Support\
**Created:** [May 17, 2021, 5:32pm UTC](https://forum.opennebula.io/t/gateway-of-different-range-is-not-working-in-kvm-node/9539 "2021-05-17T17:32:16Z")\
**Posts on this page:** 9\
**Page:** 2

<div class="post-metadata">

**Author:** ![nibatandukar](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/nibatandukar/32/6931_2.png) [@nibatandukar](https://forum.opennebula.io/u/nibatandukar)\
**Post date:** [May 31, 2021, 12:25pm UTC](https://forum.opennebula.io/t/gateway-of-different-range-is-not-working-in-kvm-node/9539/21 "2021-05-31T12:25:58Z")

</div>

Hello, @feldsam here are my configuration,

KVM Node 1

[root@CentOS-79]# cat ifcfg-prv1  
DEVICE=“prv1”  
BOOTPROTO=static  
ONBOOT=yes  
TYPE=Bridge  
IPADDR=20.20.15.1  
NETMASK=255.255.255.240  
GATEWAY=5.9.XX.XX  
BROADCAST=20.20.15.15  
DNS1=8.8.8.8  
DNS2=8.8.4.4  
STP=off  
DELAY=0  
VLAN=yes  
ZONE=internal

[root@CentOS-79]# cat ifcfg-eno1.4001  
DEVICE=eno1.4001  
BOOTPROTO=none  
ONBOOT=yes  
VLAN=yes  
BRIDGE=prv1

Vnetwork template

oneadmin@openfontend:~$ onevnet show 12  
VIRTUAL NETWORK 12 INFORMATION  
ID : 12  
NAME : NEW-PRIVATE-NETWORK-5.9  
USER : oneadmin  
GROUP : oneadmin  
LOCK : None  
CLUSTERS : 0  
BRIDGE : prv1  
VN\_MAD : bridge  
AUTOMATIC VLAN ID : NO  
AUTOMATIC OUTER VLAN ID : NO  
USED LEASES : 1

VIRTUAL NETWORK TEMPLATE  
BRIDGE=“prv1”  
BRIDGE\_TYPE=“linux”  
DESCRIPTION=“NEW-PRIVATE-NETWORK-5.9”  
DNS=“8.8.8.8”  
GATEWAY=“20.20.15.1”  
GUEST\_MTU=“1400”  
NETWORK\_ADDRESS=“20.20.15.0”  
NETWORK\_MASK=“255.255.255.240”  
OUTER\_VLAN\_ID=""  
PHYDEV=""  
SECURITY\_GROUPS=“0”  
VLAN\_ID=""  
VN\_MAD=“bridge”

ADDRESS RANGE POOL  
AR 0  
SIZE : 16  
LEASES : 1

* * *

KVM Node 2

[root@CentOS-79-6s]# cat ifcfg-prv1  
DEVICE=“prv1”  
BOOTPROTO=static  
ONBOOT=yes  
TYPE=Bridge  
IPADDR=20.20.15.17  
NETMASK=255.255.255.240  
GATEWAY=188.40.XX.XX  
BROADCAST=20.20.15.31  
DNS1=8.8.8.8  
DNS2=8.8.4.4  
STP=off  
DELAY=0  
VLAN=yes  
ZONE=internal

[root@CentOS-79-6s]# cat ifcfg-eno1.4001  
DEVICE=eno1.4001  
BOOTPROTO=none  
ONBOOT=yes  
VLAN=yes  
BRIDGE=prv1

oneadmin@openfontend:~$ onevnet show 11  
VIRTUAL NETWORK 11 INFORMATION  
ID : 11  
NAME : NEW-PRIVATE-VNETWORK-188  
USER : oneadmin  
GROUP : oneadmin  
LOCK : None  
CLUSTERS : 0  
BRIDGE : prv1  
VN\_MAD : bridge  
AUTOMATIC VLAN ID : NO  
AUTOMATIC OUTER VLAN ID : NO  
USED LEASES : 1

VIRTUAL NETWORK TEMPLATE  
BRIDGE=“prv1”  
BRIDGE\_TYPE=“linux”  
DNS=“8.8.8.8”  
GATEWAY=“20.20.15.17”  
GUEST\_MTU=“1400”  
NETWORK\_ADDRESS=“20.20.15.16”  
NETWORK\_MASK=“255.255.255.240”  
PHYDEV=""  
SECURITY\_GROUPS=“0”  
VN\_MAD=“bridge”

ADDRESS RANGE POOL  
AR 0  
SIZE : 16  
LEASES : 1

---

<div class="post-metadata">

**Author:** ![feldsam](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/feldsam/32/4441_2.png) [@feldsam](https://forum.opennebula.io/u/feldsam)\
**Post date:** [May 31, 2021, 12:47pm UTC](https://forum.opennebula.io/t/gateway-of-different-range-is-not-working-in-kvm-node/9539/22 "2021-05-31T12:47:23Z")

</div>

VN\_MAD == bridge do automatic bridge creation/deletion on KVM nodes. You have missing PHYDEV property, so driver don’t know which physical device need to add to bridge. On the other hand, when you configure network bridge manualy via ifcfg scripts, then you should use just VN\_MAD == dummy (or FW for SecurityGroups usage)

Second KVM node if fact doesnt need private IPs set, if you dont need them. Also you set gateway to 188.40.XX.XX, byt why? KVM2 node doesnt have any other interface with internet access? How this server knows where is 188.40.XX.XX address???

I don;t know what you try to achieve with VMs, but from your last posts, you want to assign public IPs to your VMs, right?

You should draw network diagram.

---

<div class="post-metadata">

**Author:** ![nibatandukar](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/nibatandukar/32/6931_2.png) [@nibatandukar](https://forum.opennebula.io/u/nibatandukar)\
**Post date:** [May 31, 2021, 7:15pm UTC](https://forum.opennebula.io/t/gateway-of-different-range-is-not-working-in-kvm-node/9539/23 "2021-05-31T19:15:22Z")

</div>

Hi, @feldsam Just want the access between VM1 and VM2 through private IP.

 ![test](https://canada1.discourse-cdn.com/flex031/uploads/opennebula/original/2X/e/ece601836469e38e4aea8513dfe6d7035efe7e3f.png)

---

<div class="post-metadata">

**Author:** ![feldsam](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/feldsam/32/4441_2.png) [@feldsam](https://forum.opennebula.io/u/feldsam)\
**Post date:** [May 31, 2021, 9:23pm UTC](https://forum.opennebula.io/t/gateway-of-different-range-is-not-working-in-kvm-node/9539/24 "2021-05-31T21:23:00Z")

</div>

So in that case assing IPs from range 20.20.15.0/28 to the VMs. Why you added some 10.10.x.x?

---

<div class="post-metadata">

**Author:** ![nibatandukar](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/nibatandukar/32/6931_2.png) [@nibatandukar](https://forum.opennebula.io/u/nibatandukar)\
**Post date:** [June 1, 2021, 5:49am UTC](https://forum.opennebula.io/t/gateway-of-different-range-is-not-working-in-kvm-node/9539/25 "2021-06-01T05:49:37Z")

</div>

@feldsam Ohh sorry that is 20.20.15.2 and 20.20.15.17.

---

<div class="post-metadata">

**Author:** ![carterrohan6](https://avatars.discourse-cdn.com/v4/letter/c/b38774/32.png) [@carterrohan6](https://forum.opennebula.io/u/carterrohan6)\
**Post date:** [July 27, 2021, 7:30am UTC](https://forum.opennebula.io/t/gateway-of-different-range-is-not-working-in-kvm-node/9539/26 "2021-07-27T07:30:53Z")

</div>

Thank you so much

---

<div class="post-metadata">

**Author:** ![carterrohan6](https://avatars.discourse-cdn.com/v4/letter/c/b38774/32.png) [@carterrohan6](https://forum.opennebula.io/u/carterrohan6)\
**Post date:** [July 28, 2021, 9:22am UTC](https://forum.opennebula.io/t/gateway-of-different-range-is-not-working-in-kvm-node/9539/27 "2021-07-28T09:22:23Z")

</div>

thank you for sharing with us[.](https://get-mxplayer.in/)

---

<div class="post-metadata">

**Author:** ![rayshare](https://avatars.discourse-cdn.com/v4/letter/r/59ef9b/32.png) [@rayshare](https://forum.opennebula.io/u/rayshare)\
**Post date:** [October 15, 2021, 2:41pm UTC](https://forum.opennebula.io/t/gateway-of-different-range-is-not-working-in-kvm-node/9539/28 "2021-10-15T14:41:22Z")

</div>

I don’t know how your topology looks, paste here infocnfig output on both nodes and network templates

---

<div class="post-metadata">

**Author:** ![rayshare](https://avatars.discourse-cdn.com/v4/letter/r/59ef9b/32.png) [@rayshare](https://forum.opennebula.io/u/rayshare)\
**Post date:** [October 20, 2021, 10:58am UTC](https://forum.opennebula.io/t/gateway-of-different-range-is-not-working-in-kvm-node/9539/29 "2021-10-20T10:58:24Z")

</div>

i’m still confused about it. [.](https://get-shareit.com) [.](https://get-vidmateapk.com/)

[Previous page](https://forum.opennebula.io/t/gateway-of-different-range-is-not-working-in-kvm-node/9539.md?page=1)
