Showing posts with label router os. Show all posts
Showing posts with label router os. Show all posts

Mikrotik V5.17 Router OS Release

Posted by Admin Tuesday, June 5, 2012 0 comments

There is Mikrotik Router OS Version 5.17 has benn release. This is the feautures new 5.17 version of mikrotik router OS  :

*) files – fixed problem when directories disappeared after reboot on usb or sd flash;
*) webfig – make QuickSet scan list work in Firefox v12;
*) webfig – fixed problem in QuickSet when changing country or channel-width in AP
mode would enable NV2 protocol;
*) webfig – fixed skins when hiding first tab may make other tabs inaccessible;
*) winbox – fixed packet raw data view in packet sniffer;
*) winbox – fixed problem when router could be DoS attacked through winbox port; This is a biggie!!
*) ports – add option “/port firmware ignore-directip-modem”
which will ignore modems ip interface
and modem’s serial ports will be made accessible to users;
*) ipv6 pool – allow pools with prefix equal to prefix length;
*) ping times improved on Nv2 high data rate wireless links;
*) tool email – added starttls option;
*) snmp – allow multiple ip ranges for each community;
*) serial console – added channel support;

Reset Mikrotik Password On RouterBoard

Posted by Admin Saturday, May 21, 2011 0 comments

To reset username and password mikrotik that installed on routerboard, wo only can do that with reinstalling mikrotik router os. You can use Net Install method to reset username and password on your mikrotik router board

Try this link to try reinstalling your routerboard.

Installing Mikrotik | Upgrade Router OS

Posted by Admin Sunday, May 8, 2011 0 comments

Using Winbox



  • Connect to your router with Winbox, Select the downloaded file with your mouse, and drag it to the Files menu. If there are some files already present, make sure to put the package in the root menu, not inside the hotspot folder!:

Analyze Traffic Flow With Mikrotik Router

Posted by Admin Saturday, April 23, 2011 0 comments



In addition to monitoring the network, the admin can also identify the various problems that occur on a computer network. With the traffic flow will be able to analyze and optimize network performance.


This is the configuration :

[Admin @ MikroTik]> ip traffic-flow

[Admin @ MikroTik] ip traffic-flow> set enabled = yes interfaces = all

[Admin @ MikroTik] ip traffic-flow> target

[Admin @ MikroTik] ip traffic-flow target> add address = :2055 version = 9

(gb)

Equal Cost Multipath Routing With Mikrotik Router OS

Posted by Admin Tuesday, March 22, 2011 0 comments
This script demonstrates one method of doing automatic failover using the Netwatch function and using scripting to enable or disable gateways. This is probably not the most efficient way, but it works. I would welcome any input on how it can be improved.
The situation:

You have 2 lines going out to the internet - 10.0.0.12 and 10.0.0.13. You have setup a mangle to mark HTTP traffic (optional) and want to route http along the 2 lines using load balancing.
You setup the mangle:
/ip firewall mangle add
chain=prerouting protocol=tcp dst-port=80 action=mark-routing \
new-routing-mark=ecmp-http-route passthrough=yes comment=" Route HTTP \
traffic to ECMP" disabled=no

You set up ECMP (Equal Cost Multipath Routing) by using something like
/ip route add dst-address=0.0.0.0/0 gateway=10.0.0.12,10.0.0.13 \
routing-mark=ecmp-http-route comment="ECMP route for HTTP"
Now you have ECMP for HTTP only. This is nice because MSN messenger, banking websites and other programs and problem sites will not be broken in the same way it might be if you used ECMP for all protocols.
What I then do is for example mark SMTP traffic and route this out through 10.0.0.12:
/ip firewall mangle add
chain=prerouting protocol=tcp dst-port=25 action=mark-routing \
new-routing-mark=smtp-out passthrough=yes comment="SMTP Traffic" disabled=no
/ip route add
dst-address=0.0.0.0/0 gateway=10.0.0.12 routing-mark=smtp-out \
comment="SMTP Traffic out"
and route all other traffic through 10.0.0.13
/ip route add
dst-address=0.0.0.0/0 gateway=10.0.0.13 comment="Default Route to Internet"
Then I need to setup 2 routes to specific addresses to force the router through specific gateways to "test" the links. These should not be popular addresses with your users! Otherwise when a gateway goes down they will have no access to those sites. The addresses I am using as an example are 1.1.1.12 to test 10.0.0.12, and 1.1.1.13 to test 10.0.0.13.
Next I use the Netwatch Function to switch all traffic to the working gateway should any of the gateways fail:
/ tool netwatch
add host=1.1.1.13 timeout=2s interval=30s up-script="/ip route set \
\[find comment=\"Default Route To Internet\"\] gateway=10.0.0.13" \
down-script="/ip route set \[find comment=\"Default Route To Internet\"\] \
gateway=10.0.0.12 comment="" disabled=no
add host=1.1.1.12 timeout=2s interval=30s up-script="/ip route set \
\[find comment=\"SMTP Traffic out\"\] gateway=1.0.0.12" down-script="/ip \
\n" \route set \[find comment=\"SMTP Traffic out\"\] gateway=10.0.0.13
comment="" disabled=no
The problem is that the ECMP http route will still be active, therefore http traffic wont work, so I have 2 scripts to check if both gateways are up or down and take action accordingly:
/ system script
add name="ecmp-startup" source=":if ([/ping 1.1.1.12 count=1]=1 && \
[/ping 1.1.1.13 count=1]=1 && [/ip route get [find \
comment=\"ECMP Route For HTTP\"] disabled]=true) do={ :log info \"Both gateways up\" \
\n/ip route set [find routing-mark=ecmp-http-route] \
disabled=no}" policy=ftp,reboot,read,write,policy,test,winbox,password
add name="ecmp-shutdown" source=":if ([/ping 1.1.1.12 count=1]=1 && \
[/ping 1.1.1.13 count=1]=0) do={ :log info \"Gateway down\"\
\n/ip route set [find routing-mark=ecmp-http-route] \
disabled=yes}" policy=ftp,reboot,read,write,policy,test,winbox,password
Hi I found this error while trying to use this script, what worked for me was
ecmp start/shut script. Looks like  in the start and shut script (") are missing
from the find, well other the script works wonders for me. Thanks a lot savagedavid
ecmp starthp script
:if ([/ping 1.1.1.13 count=1]=1 && [/ping 1.1.1.12 count=1]=1 && [/ip route get \
[find routing-mark="ecmp-http-route"] disabled]=true) do={:log info "Both Gateways are up" \
/n/ip route set [find routing-mark="ecmp-http-route"] disable=no}
ecmp shutdown script
:if ([/ping 1.1.1.13 count=1]=0 || [/ping 1.1.1.12 count=1]=0) do={:log info \
"Gateway down" /ip route set [find routing-mark="ecmp-http-route"] disabled=yes}

Notice that it first checks to see if the route is enable before trying to re-enable it. Otherwise it will reset the route and users will be dropped momentarily.

Then finally schedule the scripts to check every 30 seconds:
/ system scheduler
add name="gateway-check" on-event="/system script run ecmp-shutdown
script run ecmp-startup" start-date=jan/01/1970 start-time=00:00:00 \
interval=30s comment="" disabled=no
(wimi)

RB250GS Vlan Trunk Configuration

Posted by Admin Friday, March 11, 2011 0 comments
RB250GS Vlan Trunk Configuration - Below The Mikrotik RoutesOS Configuration, using one interface for trunk port to RB250GS

Installing Mikrotik OS on WRAP

Posted by Admin Saturday, January 8, 2011 0 comments
Prerequisites:

Make sure that the WRAP board has the latest BIOS.

Notes: The WRAP board and Router OS take different com port settings in HyperTerminal. If you want to see the actual boot text from the WRAP board, not router OS, you have to change your setting to:

Configure your terminal emulator for 38400 8N1 (default baud rate), no handshake. To enter
setup, type S during the memory test. You should see somethink like the following:
PC Engines WRAP platform

tinyBIOS V1.4a (C)1997-2003 PC Engines
640 KB Base Memory
64512 KB Extended Memory
01F0 Master 848A HYPERSTONE FLASH DISK
Phys C/H/S 497/4/32 Log C/H/S 31/32/63
WRAP setup
(9) 9600 baud *3* 38400 baud
(C) CHS mode *L* LBA mode
(X) Xmodem upload (Q) Quit

What you can expect to see from time to time is something that looks like misc characters on HyperTerminal. When you have it set to the RouterOS settings, the misc garbage is the WRAP board information. When you have HyperTerminal configure for the WRAP board com port settings, the misc garbage is the RouterOS software.

The default setting for the RouterOS software is: 9600 8-N-1, with no flow control.

Step One:
Take the CompactFlash card and put it in a card reader. If your computer doesn't have one, an external USB reader, such as the "SanDisk ImageMate 12 in 1" has worked well:
Step Two:

Open up the Mikrotik "netinstall" program. Point the program to the location of the RouterOS packages. For the x86 platform (e.g. a WRAP board), check the "routeros-x86" package, and then hit install. The installer program will format the hard drive and install the package onto the CompactFlash card.
Note: Be absolutely positive that you are installing to the correct removable media.
Step Three:
Use a null modem cable, or a serial cable with a null modem adapter on it, and connect it to the WRAP board. Place the Compact Flash card, with the installed RouterOS software on it, and place it in the WRAP board. Open up HyperTerminal and set it for 9600 8-N-1. Power up the WRAP board, and make your connection with HyperTerminal. You should see the following information:

This screen actually takes quite a bit to do anything, so be patient. After a while you will see the following:



Once it gets to this point, it will reboot. Again, the time for this process can vary, so give it some time. It may actually hang at this point, though. If it does, pull the power and let it recycle. Even with a reboot, though, it may actually take a little longer to boot then you think it would. After it boots, you will see the following:



At this point, you can either work from the command line, or swap to Winbox. If you choose Winbox, just use the appropriate Ethernet cable and plug into your computer, or plug your RouterOS box into the same switch your computer is using. You don't even have to know the IP address, since Winbox will pull up the AP by MAC address:


Just click on the MAC address of the unit and hit connect, and it will connect.
(q4)