Quantcast
Channel: Azure Networking (DNS, Traffic Manager, VPN, VNET) forum
Viewing all articles
Browse latest Browse all 6513

Cross Subscription VNET to VNET Setup. Unable to access external resources

$
0
0

I am a bit new to networking, so please bare with me. I've followed the following tutorial on setting up a cross-subscription VNET to VNET connection:

http://ppe.blogs.technet.com/b/aviraj/archive/2014/05/16/microsoft-azure-configure-cross-subscription-vnet-to-vnet-connectivity-in-azure.aspx

After successfully getting the two VNET's up and running, I now have created two CentOS VMs. One under each VNET.

SSHing in the two machines, I can successfully ping each machine from the other.

$ ping 192.168.1.4
PING 192.168.1.4 (192.168.1.4) 56(84) bytes of data.
64 bytes from 192.168.1.4: icmp_seq=1 ttl=62 time=5.77 ms
64 bytes from 192.168.1.4: icmp_seq=2 ttl=62 time=6.08 ms
64 bytes from 192.168.1.4: icmp_seq=3 ttl=62 time=6.06 ms
64 bytes from 192.168.1.4: icmp_seq=4 ttl=62 time=6.86 ms

$ ping 10.10.1.4
PING 10.10.1.4 (10.10.1.4) 56(84) bytes of data.
64 bytes from 10.10.1.4: icmp_seq=1 ttl=62 time=8.14 ms
64 bytes from 10.10.1.4: icmp_seq=2 ttl=62 time=5.61 ms
64 bytes from 10.10.1.4: icmp_seq=3 ttl=62 time=5.51 ms
64 bytes from 10.10.1.4: icmp_seq=4 ttl=62 time=5.22 ms

So far so good.

However, I cannot ping or access any external resources from either machine.

$ ping google.com
ping: unknown host google.com

$ wget google.com
--2014-11-24 03:55:36--  http://google.com/
Resolving google.com... failed: Temporary failure in name resolution.
wget: unable to resolve host address “google.com”

Any idea's why I cannot do this? I assume it had something to do with my VNET configuration and the custom DNS step since I can create another VM outside of the custom VNET and the above works just fine.

Here is my custom VNET configuration:

<NetworkConfiguration xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.microsoft.com/ServiceHosting/2011/07/NetworkConfiguration"><VirtualNetworkConfiguration><Dns><DnsServers><DnsServer name="CROSS-DNS" IPAddress="10.10.1.4" /></DnsServers></Dns><LocalNetworkSites><LocalNetworkSite name="VNET2"><AddressSpace><AddressPrefix>192.168.0.0/16</AddressPrefix></AddressSpace><VPNGatewayAddress>104.41.xxx.xxx</VPNGatewayAddress></LocalNetworkSite></LocalNetworkSites><VirtualNetworkSites><VirtualNetworkSite name="VNET1" Location="East US"><AddressSpace><AddressPrefix>10.10.0.0/16</AddressPrefix></AddressSpace><Subnets><Subnet name="AD"><AddressPrefix>10.10.1.0/24</AddressPrefix></Subnet><Subnet name="GatewaySubnet"><AddressPrefix>10.10.0.0/29</AddressPrefix></Subnet></Subnets><DnsServersRef><DnsServerRef name="CROSS-DNS" /></DnsServersRef><Gateway><ConnectionsToLocalNetwork><LocalNetworkSiteRef name="VNET2"><Connection type="IPsec" /></LocalNetworkSiteRef></ConnectionsToLocalNetwork></Gateway></VirtualNetworkSite></VirtualNetworkSites></VirtualNetworkConfiguration></NetworkConfiguration>


<NetworkConfiguration xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.microsoft.com/ServiceHosting/2011/07/NetworkConfiguration"><VirtualNetworkConfiguration><Dns><DnsServers><DnsServer name="CROSS-DNS" IPAddress="10.10.1.4" /></DnsServers></Dns><LocalNetworkSites><LocalNetworkSite name="VNET1"><AddressSpace><AddressPrefix>10.10.0.0/16</AddressPrefix></AddressSpace><VPNGatewayAddress>104.41.zzz.zzz</VPNGatewayAddress></LocalNetworkSite></LocalNetworkSites><VirtualNetworkSites><VirtualNetworkSite name="VNET2" Location="East US"><AddressSpace><AddressPrefix>192.168.0.0/16</AddressPrefix></AddressSpace><Subnets><Subnet name="AD"><AddressPrefix>192.168.1.0/24</AddressPrefix></Subnet><Subnet name="GatewaySubnet"><AddressPrefix>192.168.0.0/29</AddressPrefix></Subnet></Subnets><DnsServersRef><DnsServerRef name="CROSS-DNS" /></DnsServersRef><Gateway><ConnectionsToLocalNetwork><LocalNetworkSiteRef name="VNET1"><Connection type="IPsec" /></LocalNetworkSiteRef></ConnectionsToLocalNetwork></Gateway></VirtualNetworkSite></VirtualNetworkSites></VirtualNetworkConfiguration></NetworkConfiguration>

/etc/resolv.conf

search xxxtest01.b2.internal.cloudapp.net
nameserver 10.10.1.4

search zzztest02.b3.internal.cloudapp.net
nameserver 10.10.1.4

Any help is appreciated. Thank you.






Viewing all articles
Browse latest Browse all 6513

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>