Networking

Understanding how the VM connects

I need to know how network connectivity works before I can continue. I can check if I have network connectivity by doing updates. This will take a few minutes over a good internet connection.

sudo apt-get update
sudo apt-get upgrade -y

When that is finished, lets check networking on the host. At the command prompt, I type

ipconfig /all

I have two network adapters. The first Ethernet adapter is the one connecting to Azure and the rest of the world. The second adapter (WSL) is a virtual adapter which Windows created for a network inside the host computer. The IPv4 address space is 172.26.0.0/20 and my host computer is .1

Let us check networking on the VM. At the command prompt, I type

ip addr

My VM has an address 172.26.4.199/20.

A logical diagram of the network would look something like this.

Note that the host computer can access this network as if it is an ordinary node. But it also provides a NAT router service to allow the VM to connect to outside world. A NAT router is a bit like your home Internet connection, it translates IPv4 addresses on an internal network, to addresses which can be used externally.

Last updated