I have following two networks,
<network>
<name>subsys-network</name>
<bridge name="virbr1"/>
<forward mode="nat"/>
<ip address="192.168.72.1" netmask="255.255.255.128">
<dhcp>
<range start='192.168.72.2' end='192.168.72.126'/>
</dhcp>
</ip>
</network>
<network>
<name>gw-frontend-network</name>
<bridge name="virbr2"/>
<forward mode="nat"/>
<ip address="172.22.10.1" netmask="255.255.255.128">
<dhcp>
<range start='172.22.10.2' end='172.22.10.126'/>
</dhcp>
</ip>
</network>
cat /proc/sys/net/ipv4/ip_forward
returns 1
I could find the option of using a routed network but that would not have NAT for external network access.
How can I configure routing such that VMs on two networks can communicate with each other?
Currently trying to ping 172.22.10.64
from 192.168.72.56
returns following,
PING 172.22.10.64 (172.22.10.64) 56(84) bytes of data.
From 192.168.72.1 icmp_seq=1 Destination Port Unreachable
From 192.168.72.1 icmp_seq=2 Destination Port Unreachable
From 192.168.72.1 icmp_seq=3 Destination Port Unreachable
From 192.168.72.1 icmp_seq=4 Destination Port Unreachable