Before we can communicate between multiple IP subnets, we need to configure our virtual router correctly:
Interface name |
IP address |
Port group |
Eth1 |
X.X.X.X |
VM network (public IP address from the service provider) |
Eth2 |
172.16.1.254/24 |
Internal management |
At this stage, we can use any GUI to configure our router. We do this using CLI. In my example, you can see the configuration of the RouterOS as follows:
ip address add address=X.X.X.X/X interface=ether1
ip address add address=172.16.1.254/24 interface=ether2
For the default gateway, you can use the following command:
ip route add address=0.0.0.0/0 dst-address=Y.Y.Y.Y
In these commands, X.X.X.X is the public IP address from the service provider, and Y.Y.Y.Y is the gateway that you have been assigned.
If you have configured everything correctly, you should now be able to connect to the GUI configuration interface of the RouterOS using the public IP address: