Pre-requirements:

  • VM and VCL attached to same Azure Virtual network
  • Subnet created for LAN
  • Azure VCL and VM attached to same subnet
  • Ping between VM and Azure VCL works
  • Azure VCL Lan and Lock(s) In same Access Group
  • Layer3 Connected Lock


Usually it is desired to have connection from TOSIBOX® Virtual Central Lock LAN to connected Layer3 Lock´s LAN network.

In Azure users have to create specific Routes for connection to work. Connection in Lan between VCL and VM will work without manual routes.

But connection from VM, in this case Windows 10, towards Lock´s LAN via VCL requires the route.


Lock LAN: 13.11.11.0/24

Lan between VM and VCL: 11.11.11.0

Azure will reserver first 5 addresses. 

VCL Lan interface IP-address: 11.11.11.6


In Azure control panel, Go to your Resource Group. Create new [Route Table] and give it a name.


After [Route Table] is created go to your Resource Group and find your [Route Table], open it and go to: Routes.

Klick +ADD and create route.

  1. Give Route a name, if this is a single route to single Lock, Lock Mac address may be good telling name.
  2. Address prefix, is the network you want to route to, in this case LAN network behind Layer3 Lock.
  3. Next Hop type, choose Virtual Appliance.
  4. Next Hop Address, give VCL LAN IP-address



Next go to Subnets, under [Route Table]. Click +Associate

Select Correct Virtual Network, then select correct subnet.


At this point Routing from VM-Windows to Lock-Lan will work.



If you do not want to create Own route to every Lock in this LAN, you can create larger route for example: 13.11.0.0/255.255.0.0. But for this to work, Lock LAN has to fit under this large network. If Lock LAN cannot be changed 1:1 Nat is available for use.


Problems with Cloud based VMs (Azure and AWS) connect to a VCL to access Locks network

 

Problem:

The Virtual Machine could not ping or connect to devices on the Locks network. Tosibox identified that the ping reply was arriving at the VCL, send to the Locks network, coming back to VCL and VCL send it out to the LAN1 interface. But nothing arrived at the VM

 

Solution 1 (Example for Openstack platform and IP-Subnet for Locks: 13.11.11.0/24):

Problem is found in the creation of the virtual network on cloud site: the virtual network (Vnet): the network did by default not allow a virtual machine (the VCL) to send packets with a different source IP-address onto the network. The solution was to allow the virtual NIC of the VCL to send packets with source addresses in the 13.11.11.0/24 subnet. This was done with the following terminal command:

$ openstack port set <ID of VCL NIC> --allowed-address ip-address=13.11.11.0/24/24”


Solution 2:

You have to add Locks LAN subnet additionally in VCL access group as added IP range.

You have to manually create the route tables in your EC2 instance to the Locks LAN network


Solution for Amazon AWS Cloud installation:

https://helpdesk.tosibox.com/en/support/solutions/articles/2100046013-how-to-connect-from-vm-via-aws-vcl-to-locks-lan