Mikrotik On Vmware Esxi



VMWare has been a leader in this industry since the beginning and is simply the best choice for the job. Most companies are already running in vSphere environments. For those who are, adding a node at a remote site that can be managed in the same pane of glass as everything else is a must. EVE Image Name Downloaded Filename Version vCPUs vRAM Console; mikrotik-6.40: chr-6.40.4.img.zip: 6.4.0: 1: 256: Telnet.

Vritualization: 3 in 1 > Using Mikrotik + Squid Proxy + Radius on single machine to save resources :)


.

Its a good idea to virtualize various servers so underutilized hardware can be used more efficiently, as now a days, getting good hardware is not a big deal. It can save considerable amount of power consumption , reduced heat factor , easy to mange multiple VM using various tools like Vcenter / VEEAM (my favorite), VM Explorer , live migrations from one Virtual Server to Another, Backup & Restore becomes very easy and the list goes on . . .

Recently I did an installation of a network where they were low in hardware resources but still they wanted to utilize the benefits of Mikrotik Router OS with external Squid proxy server and also the Radius Billing Server . So in total they required at least 3 physical machines, but I managed to install all of them on single server using Virtualization technology of VMWARE ESXi 5.x (64bit) and it worked so great 🙂
Here is how I did it.

Note: Because of some time shortage, I am just giving you an idea how it can be done, I am not writing in pin point details on how to connect every machine with Virtual/Physical switches. I will write about it soon.

Hardware Used for the Example:

IBM Xseries 3650 XEON Dual Processors with Quad Cores p/p

3.5″ 15krpm SCSI in RAID 10 mode (300GB x 6) (the more Faster drives (like 10-15krpm) you have, the better result you will be able to achieve. Preferably in RAID mode, either 10 or 0, depend on your management and goals, in this example I used 15krpm SCSI HDD’s with dedicated RAID controller. I tested it on IBM xseries with RAID0 and found RAID 0 much more faster with 15krpm but its not redundant, one drive fail and your whole RAID will go down, so if you want redundancy, go with at least RAID 5 or RAID 10 (Recommended) , Raid 1 is also good as it mirrors each drive, but requires additional drives and also for proxy, its useless to use mirroring as it would be requiring more read/write burden on controller, oh GOD, in which argument I got into :p)

16GB RAM (Mikrotik doesn’t requires much RAM in fact it officially supports maximum of 2G, but Radius and Squid do requires some good amount of RAM, I dedicated 8 GB to SQUID, 4GB to Radius, 1 GB to Mikrotik)

Vmware

4 Network Adapters ( In this article, due-to time shortage, I have only mentioned howto add two network adapters for LAN and WAN link using virtual Switch tech, but you can add more as per your requirements)


Software Used:

1) Vmware ESXi 5.x 64bit as a Virtual Hyper-visor Server

Guest OS installed in this virtual server’s are as following

2) Mikrotik Router-OS 5.22 [1GB Ram +100GB virtual HDD assigned to this VM]
3) Ubuntu 10.4 for SQUID Proxy (2.7) [8GB Ram +500GB virtual HDD assigned to this VM]
4) Ubuntu 10.4 for Radius Manager Billing System[4GB Ram +200GB virtual HDDassigned to this VM]

TIP: You can use the following RAID calculator to evaluate how much space you will be getting various RAID modes.

First install Vmware ESXi. You can get its free edition fromhttp://www.vmware.com , just register and download the latest version , it would be in .iso format, Simply burn it to CD, and install it on your server , its very simple to install the ESXi, nothing more then just clicking NEXTNEXT 🙂

After ESXi installed, configure IP address on it, so you can manage it using its client called Vsphere client.

To shorten the story I am using only two interfaces for the mikrotik, LAN and WAN. in this example (shorten version) ESXi have two interfaces connected , one with the LAN user switch and other interface connected with the WAN (physically)

Creating Virtual Switch and bind Network Adapters with this switch.

Goto Configuration tab
From the list appear in Hardware section, click on Networking and click on ADD Networking
As showed in the image below , , ,

Ok, our virtual switch is created.
Now its time to bind our WAN adapter in this switch. (So it can later be used for WAN for all hosts we will requiring for)

Click on the Properties

Vmware

Done.

Creating Mikrotik in VM and assigning network adapters.

Now create new Virtual Machine for your Mikrotik.

Select necessary hardware that you required as required per user load. for example
Mikrotik = 1 CPU / 1 GB RAM / 10 GB HDD /

In Network Adapter Section, by default only one adapter is added, You have to add another adapter by selecting the number of adapters in drop down listing.
As showed in the image below . . .

Once the configuration is completed. Simply install the Mikrotik in newly created hosts you just created in above steps.
After configuration is complete, review once again the host settings,
As showed in the image below . . .


After the installation is done, Connect to mikrotik with WINBOX and look for interfaces
As showed in the image below . . .

. Le maitre de l atlantide poseidon telecharger.

I will write more on it later.

Regard’s
Syed Jahanzaib

VMware server web page cannot be accessed from outside of CSIM because of the restrictions on the firewall. These restrictions can be bypassed by configuring SSH tunnels.

Install mikrotik on vmware esxi

The following example will use puTTY as SSH client. For non-Windows system, see below.

The first step is to install the software and make sure it is working, puTTY (or other SSH client) must be used to connect to bazooka.cs.ait.ac.th from outside CSIM.

Configuring puTTY for SSH tunnel

VMware needs four tunnels on TCP ports 80, 443, 902 and 903. In the following steps, we will use the IP 127.0.0.2as a replacement for localhost.

Port 443 is used by all the web traffic traffic between you rbrowser and the VMware server web page. Port 902 is used when you open the console of your virtual machine. Port 80 is used to a a page with an error. I have not ye seen the use of port 903 but it was documented elsewhere. Traffic to port 902 is mostly VNC.

1.Start puTTY.
Enable compression: because you may access your virtual machine in graphical mode, it will generate a large amount of traffic, hence, compression is highly recommended.
Compression is configurable under the option SSH.
2.Create the tunnel: the example correspond to the tunnel for TCP port 80.
Go to the option SSH/Tunnels and add a new forwarded port from source port 127.0.0.2:80 to destinationvirtual3.cs.ait.ac.th:80 The option local and auto should be selected by default.
Note that the field to enter the source port is too short but you should enter the full 127.0.0.2:80
Click on add.
3.Reapeat the operation above, adding forwarded ports for TCP ports 443, 902 and 903.
At the end, you should have the list of forwarded ports given in the image:
L127.0.0.2:80 virtual3.cs.ait.ac.th:80
L127.0.0.2:443 virtual3.cs.ait.ac.th:443
L127.0.0.2:902 virtual3.cs.ait.ac.th:902
L127.0.0.2:903 virtual3.cs.ait.ac.th:903

Note that the window can only show three ports while you have forwarded four. Use the scrollbar to check all ports are thete.
4.Go to the session option at the very top and specify the destination where you connect to by entering bazooka.cs.ait.ac.th in the host name field.
Give a name to the session and save it: you will be able to reuse it later on.
You can then open the connection.
Later you will be able to open the session you have saved and proceed on, starting from step 5 below.
5.Enter your CSIM username and password.
You are connected to bazooka.cs.ait.ac.th and the SSH tunnels are created: your local machine at 127.0.0.2 appears like a VMware ESXi server, but all the traffic will be sent to bazooka through the tunnel and bazooka will send that traffic to the real VMware ESXi server virtual3.cs.ait.ac.th.
6.Launch a web browser and connect to the server at https://127.0.0.2/
Use the username and password as you would use them in CSIM and work normally.

SSH tunnels for non-Windows systems

On Linux, you can use ssh to establish the tunnel needed to run vmplayer across CSIM firewall.

Note that because it uses system ports, you need to be root to run the following command.

Then you can run vmplayer -H localhost. Winnc sinumerik 840d 3d view download.

Vmware Esxi Free

Powered by:puTTY