-1

I need to get my virtual machines to get connected to internet via mikrotik router machine. my setups are as follows.

my home network is 192.168.1.0/24 my ADSL router has ip 192.168.1.1

I have following machines in virtual box.

machine 1: Mikrotik RouterOS ether1 ip 192.168.2.1/24 ether2 ip 192.168.1.254/24

machine 2: windows7 ip: 192.168.2.20

machine 3: ubuntu 12.0.4 ip: 192.168.2.3

I have pinged 192.168.1.254(mikrotik eth2), 192.168.1.1(adsl router) and 192.168.2.1(mikrotik eth1) from both of the other machines (win7 and ubuntu) and works well. but I am unable to connect to the internet from win7 and ubuntu via my adsl network (192.168.1.0/24).

What routes do i need to setup on mikrotik router so that my other machines can access internet through mikrotik?

screenshot of my mikrotik routes

  • Try to add route to your net 192.168.2.0/24 on your adsl router. Beacouse him dont anything about this network – DeamonMV Jul 06 '16 at 19:22

1 Answers1

0

The default operation of Mikrotik (out of the box) is to NAT traffic to an upstream IP - I assume you are looking to bypass that setup. The issue however is - without some kind of routing added to your setup - anyone within the 192.168.1.0/24 range has no clue the 192.168.2.x range exists!

Does your upstream router participate in OSPF (if so you could turn on OSPF easy enough) or...

Does your upstream router allow you to announce static routes? if so you could add a static route of 192.168.2.0/24 reachable by 192.168.1.254

One other option - contact your ADSL provider and ask them to place the unit in bridge mode. Then you could use their PPPoE user/pass on your device and provide the internal ranges of whatever subnet of your choosing and allow Mikrotik to advertise all internal routes by being the default gateway of every subnet.

Hope that helps: Connectivity.Engineer

Glenn Kelley
  • 145
  • 6