Consider the following network ^^^.
The virtual network setup in Azure:
10.10.0.0/16
with 1 subnet, 10.10.0.0/16
and a gateway subnet at 10.10.1.0/29
.
Azure knows how our network looks like, 2 address spaces:
192.168.101.0/24
& 10.246.0.0/16
via an additional router.
I would like to achieve bydirectional communication from & to Azure.
At the moment we set it up with a machine on-premise (with IP 192.168.101.36
) which runs Windows Server 2012 R2 with RRAS. It dials in to Azure, and we have connection.
The first route on RRAS is 10.10.0.0/16
. This ensures that any machine in the local network (192.168.101.0/24
) can reach the Azure network.
The second route is 192.168.101.0/24
, this is to ensure that Azure can talk to us. Question: What should be the gateway here: 192.168.101.1
(the DHCP server) or 192.168.101.36
(the RRAS server)
The third route ensures that any traffic that comes in to the RRAS server that wants to talk to the 10.246.0.0/16
network is forwarded to 192.168.101.10
, which is the 3G modem/router.
Now we're missing a piece, but let me first explain what works:
- A machine in Azure can ping anything in the
192.168.101.0/24
- A machine in our on premise network (
192.168.101.0/24
) can ping anything in Azure (10.10.0.0/24
). - A machine in our on premise network (
192.168.101.0/24
) can ping anything behind the 3G modem (10.246.0.0/24
).
BUT (and this is my next, and most important question) no machine in Azure can ping the 3G network UNLESS I add a static route on the 3G modem/router that says: 10.10.0.0/16
to gateway 192.168.101.36
.
How come the 3G modem/router doesn't know how to redirect the traffic back to 192.168.101.36
, after all it has that particular IP as Gateway.
Is it because 10.*.*.*
and 192.168.*.*
are not routable?
Update: went to look in the 3G router/modem and found this:
#> display route
Route Table:
Destination Gw Refs Mhome Iface mtu hops ttl flags
0.0.0.0/0 10.246.52.3 1 0 mobile0 1500 1 INF UGS
10.10.0.0/16 192.168.101.36 2 0 eth0 1500 1 INF UGS
10.246.52.0/29 * 1 0 mobile0 1500 0 INF UC
127.0.0.0/8 127.0.0.1 1 0 LOOPBACK 1500 1 INF UGJS
127.0.0.1/32 127.0.0.1 6 0 LOOPBACK 1500 0 INF UH
192.168.101.0/24 * 1 0 eth0 1500 0 INF UC
It seems that the first one 'eats' all network, and the second one (that is the static route I've added) fixes that. And the last one is because he knows he's on the 192.168.101.0/24
network. It is weird though that there's no gateway address there.