Community discussions

MikroTik App
 
enox1000
just joined
Topic Author
Posts: 2
Joined: Thu Dec 29, 2011 1:14 pm

MikroTik and VMware

Thu Dec 29, 2011 1:29 pm

Hello all,
I am a beginner to MikroTik. I have just installed the RouterOS on VMware as a virtual machine. I also installed two XP virtual machines. The MikroTik has two ethernet interfaces, which are connected to two different HUBs. On each HUB, i connected the XP machines. Like this:

XP1 = HUB = MikroTik = HUB = XP2

On the MikroTik RouterOS i added ip addresses to the interfaces:
add address=192.168.0.0/24 interface=ether1
add address=192.168.1.0/24 interface=ether2

Then i setup a DHCP server on both interfaces:
ip dhcp-server> setup
Select interface to run DHCP server on

dhcp server interface: ether1
Select network for DHCP addresses

dhcp address space: 192.168.0.0/24
Select gateway for given network

gateway for dhcp network: 192.168.0.1
Select pool of ip addresses given out by DHCP server

addresses to give out: 192.168.0.2-192.168.0.254
Select DNS servers

dns servers: 192.168.0.1
Select lease time

lease time: 3d
[admin@MikroTik] ip dhcp-server>
and
ip dhcp-server> setup
Select interface to run DHCP server on

dhcp server interface: ether2
Select network for DHCP addresses

dhcp address space: 192.168.1.0/24
Select gateway for given network

gateway for dhcp network: 192.168.1.1
Select pool of ip addresses given out by DHCP server

addresses to give out: 192.168.1.2-192.168.1.254
Select DNS servers

dns servers: 192.168.1.1
Select lease time

lease time: 3d
[admin@MikroTik] ip dhcp-server>
Now, when i power on the XP machines, and set them to obtain the ip address automatically, they obtain them from the DHCP servers:
XP1=192.168.0.2/24
XP2=192.168.1.2/24

Now i try to ping.
XP1 ping XP2 -> DOESN'T WOKR!
XP1 ping 192.168.0.1 (XP1 default gateway) -> WORKS!

XP2 ping XP1 -> DOESN'T WOKR!
XP2 ping 192.168.1.1 (XP2 default gateway) -> WORKS!

XP1 ping 192.168.1.1 (XP2 default gateway) -> WORKS!
XP2 ping 192.168.0.1 (XP1 default gateway) -> WORKS!

Also, when trying to ping from the MiroTik to the XP1 or XP2, it DOESN'T WORK.

Can someone please help me, i am trying to connect the two xp machines, through the MiroTik, and then try some flow control methods.
 
User avatar
MCT
Member Candidate
Member Candidate
Posts: 158
Joined: Wed Mar 03, 2010 5:53 pm

Re: MikroTik and VMware

Thu Dec 29, 2011 4:06 pm

If you're using an up to date XP build turn off your firewall on both VMs. It's on by default and I've found it's normally the source of problems like this.
 
enox1000
just joined
Topic Author
Posts: 2
Joined: Thu Dec 29, 2011 1:14 pm

Re: MikroTik and VMware

Thu Dec 29, 2011 4:50 pm

Worked like a charm, many many thanks.

Just one more question. If i put one interface of the MiroTik RouterOS to Bridged mode in VMware, so that it is bridged with my real router, that has a conenction to internet, and if i put thet interface of MiroTik to DHCP Client, will i be able to to the internet from my virtual XP's, or do i have to configure something more???

Thanks in advanced.

Who is online

Users browsing this forum: No registered users and 15 guests