Basic

Published on August 2022 | Categories: Documents | Downloads: 5 | Comments: 0 | Views: 69
of 16
Download PDF   Embed   Report

Comments

Content

 

Basic Setup Guide  Document revision 1.1 (Wed Sep 14 18:08:33 GMT 2005)

This document applies to V2.9

Table of Contents Table of Contents Summary Related Documents Description Setting up MikroTik RouterOS™ Description Notes Logging into the MikroTik Router Description Adding Software Packages Description Navigating The Terminal Console Description Notes Basic Configuration Tasks Description Notes Setup Command Description Configure IP address on router, using the Setup command Basic Examples Example Viewing Routes Adding Default Routes Testing the Network Connectivity Advanced Configuration Tasks Description Application Example with Masquerading Example with Bandwidth Management Example with NAT

General Information Summary                                                                               

Page 1 of 16 Copyright 1999-2006, MikroTik. All rights reserved. Mikrotik, RouterOS and RouterBOARD are trademarks of Mikrotikls SIA. Other trademarks and registred trademarks mentioned herein are properties of their respective owners.

 

Related Documents •      •      •     •    •     • •    •       •       •      

Description                                                                          

•                 •                   •            •         •       •         •      •        •           •       •       •        •       •                                   

Setting up MikroTik RouterOS™

Page 2 of 16 Copyright 1999-2006, MikroTik. All rights reserved. Mikrotik, RouterOS and RouterBOARD are trademarks of Mikrotikls SIA. Other trademarks and registred trademarks mentioned herein are properties of their respective owners.

 

Description Downloading and Installing the MikroTik RouterOS™               

1.                                        

•  ISO image  - of the installation CD, if you have a CD writer for creating CDs. The ISO image is in the MTcdimage_v2-9-x_dd-mmm-yyyy_(build_z).zip archive file containing a bootable CD image. The CD will be used for booting up the dedicated PC and installing the MikroTik  RouterOS™ on its hard-drive or flash-drive. •   Netinstall  - if you want to install RouterOS over a LAN with one floppy boot disk, or alternatively using PXE or EtherBoot option supported by some network interface cards, that allows truly networked installation. Netinstall program works on Windows 95/98/NT4/2K/XP. •  MikroTik Disk Maker  - if you want to create 3.5" installation floppies. The Disk Maker is a self-extracting archive DiskMaker_v2-9-x_dd-mmm-yyyy_(build_z).exe file, which should be run on your Windows 95/98/NT4/2K/XP workstation to create the installation floppies. The installation floppies will be used for booting up the dedicated PC and installing the MikroTik  RouterOS™ on its hard-drive or flash-drive. 2.       Page 3 of 16 Copyright 1999-2006, MikroTik. All rights reserved. Mikrotik, RouterOS and RouterBOARD are trademarks of Mikrotikls SIA. Other trademarks and registred trademarks mentioned herein are properties of their respective owners.

 

           

•                •                                               

3.               

•  CPU and motherboard  - advanced 4th generation (core frequency 100MHz or more), 5th generation (Intel Pentium, Cyrix 6X86, AMD K5 or comparable) or newer uniprocessor Intel IA-32 (i386) compatible (multiple processors are not supported) •   RAM  - minimum 64 MiB, maximum 1 GiB; 64 MiB or more recommended •  Hard Drive/Flash  - standard ATA interface controller and drive (SCSI and USB controllers and drives are not supported; RAID controllers that require additional drivers are not supported) with minimum of 64 Mb space space                          

•  Floppy-based installation  - standard AT floppy controller and 3.5'' disk drive connected as the first floppy disk drive (A); AT, PS/2 or USB keyboard; VGA-compatible video controller card and monitor •  CD-based installation  - standard ATA/ATAPI interface controller and CD drive supporting "El Torito" bootable CDs (you might need also to check if the router's BIOS supports booting from this type of media; if El Torito is not supported by the BIOS, you can still boot up from the CD using Smart Boot Manager Floppy); AT, PS/2 or USB keyboard; VGA-compatible video controller card and monitor •  Floppy-based network installation  - standard AT floppy controller and 3.5'' disk drive connected as the first floppy disk drive (A); PCI Ethernet network interface card supported by MikroTik RouterOS (see the Device Driver List for the list) •  Full network-based installation - PCI Ethernet network interface card supported by MikroTik  RouterOS (see the Device Driver List for the list) with PXE or EtherBoot extension booting ROM (you might need also to check if the router's BIOS supports booting from network)                                                                               

4.                                                                                                                        /system license print                   admin         

Page 4 of 16 Copyright 1999-2006, MikroTik. All rights reserved. Mikrotik, RouterOS and RouterBOARD are trademarks of Mikrotikls SIA. Other trademarks and registred trademarks mentioned herein are properties of their respective owners.

 

                      

•                                                           

•                                                                              

•                       1.                                                                     

2.                                             

3.                                 Allow to          use my accoun accountt in netinst netinstall all                            change user information          

Notes                                                                      

Note!                                         

Logging into the MikroTik Router Description                                                                                                                                                     Page 5 of 16 Copyright 1999-2006, MikroTik. All rights reserved. Mikrotik, RouterOS and RouterBOARD are trademarks of Mikrotikls SIA. Other trademarks and registred trademarks mentioned herein are properties of their respective owners.

 

                                                                                                                                                                                                                                                                                             MikroTik MikroT ik v2.9 Login: admin Password:

        /password   [admin@Mikro [admin @MikroTik] Tik] > password password old password: password: new password: password: ************ ************ retype new password: password: *********** ************ * [admin@Mikro [admin @MikroTik] Tik] >

Adding Software Packages Description                   system                                                            the same version                                                                                                                 

Navigating The Terminal Console Description Welcome Screen and Command Prompt

Page 6 of 16 Copyright 1999-2006, MikroTik. All rights reserved. Mikrotik, RouterOS and RouterBOARD are trademarks of Mikrotikls SIA. Other trademarks and registred trademarks mentioned herein are properties of their respective owners.

 

                        

MMM MMM MMMM MMMM MMM MMMM MMM MMM MM MM M MM MM MMM MMM MMM MMM

III I II II I II II II III

KKK KKK KKK KKK KK K KKKK KK KKK KKK KK KKK KK KKK

RRRRRR RRR R RR RR RRRRRR RR RRR RR RRR

Mikr MikroT oTik ik Rout Router erOS OS 2. 2.9 9 (c (c) ) 19 1999 99-2 -200 004 4

TTTTTTTTTTT TTTTTTTTTTT OOOOOO TTT OO O OO OO O OO TTT OOO OO OOO TTT OOOOOO TTT

III III III III

KKK KKK KKK KKK KK K KKKK KK KKK KKK K KK KK KK KKK

ht http tp:/ ://w /www ww.m .mik ikro roti tik. k.co com/ m/

Termin Ter minal al xte xterm rm det detect ected, ed, using using multil multiline ine input input mode mode [admin@MikroTik] [admin@Mikr oTik] >

                 [admin@MikroTik] [admin@Mikr oTik] > [admin@Mikr [admin @MikroTik] oTik] interf interface> ace> [admin@Mikr [admin @MikroTik] oTik] ip addre address> ss>

Commands                     [admin@Mikr [admin @MikroTik] oTik] > lo log/ g/ -- Syst System em lo logs gs qu quit it -- Quit Quit cons consol ole e radius rad ius/ / -- Rad Radius ius cli client ent settin settings gs certificate certif icate/ / -- Certif Certificate icate management management specia spe cial-l l-logi ogin/ n/ -- Spe Specia cial l login login users users redo red o -- Red Redo o pre previo viousl usly y undone undone act action ion driver dri ver/ / -- Dri Driver ver man manage agemen ment t pi ping ng -- Send Send ICMP ICMP Ec Echo ho pa pack cket ets s se setu tup p -- Do ba basi sic c se setu tup p of sy syst stem em interface/ interf ace/ -- Interf Interface ace configuratio configuration n passwo pas sword rd -- Cha Change nge pas passwo sword rd undo und o -- Und Undo o pre previo vious us action action port/ por t/ -- Ser Serial ial por ports ts import imp ort -- Run exp export orted ed config configura uratio tion n script script snmp/ snm p/ -- SNM SNMP P set settin tings gs user/ use r/ -- Use User r man manage agemen ment t file/ fil e/ -- Loc Local al rou router ter file file storag storage. e. system sys tem/ / -- Sys System tem inf inform ormati ation on and uti utilit lities ies queue/ que ue/ -- Ban Bandwi dwidth dth manage managemen ment t ip ip/ / -- IP op opti tion ons s tool/ too l/ -- Dia Diagno gnosti stics cs tools tools pp ppp/ p/ -- Poin Point t to Po Poin int t Pr Prot otoc ocol ol routin rou ting/ g/ -- Var Variou ious s routin routing g protoc protocol ol settin settings gs expo export rt -[admin@Mikr [admin @MikroTik] oTik] > [admin@Mikr [admin @MikroTik] oTik] ip> .. -- go up to root servic ser vice/ e/ -- IP ser servic vices es so sock cks/ s/ -- SO SOCK CKS S ve vers rsio ion n 4 pr prox oxy y

Page 7 of 16 Copyright 1999-2006, MikroTik. All rights reserved. Mikrotik, RouterOS and RouterBOARD are trademarks of Mikrotikls SIA. Other trademarks and registred trademarks mentioned herein are properties of their respective owners.

 

arp/ -- ARP entrie arp/ entries s man manage agemen ment t up upnp np/ / -- Un Univ iver ersa sal l Pl Plug ug an and d Pl Play ay dn dns/ s/ -- DN DNS S se sett ttin ings gs addres add ress/ s/ -- Add Addres ress s man manage agemen ment t accounting/ accoun ting/ -- Traffi Traffic c accounting accounting the-proxy/ the-pr oxy/ -vrrp/ vrr p/ -- Vir Virtua tual l Rou Router ter Red Redund undanc ancy y Protoc Protocol ol po pool ol/ / -- IP ad addr dres ess s po pool ols s packin pac king/ g/ -- Pac Packet ket pac packin king g settin settings gs neighbor/ neighb or/ -- Neighb Neighbors ors route/ rou te/ -- Route Route man manage agemen ment t firewall/ firewa ll/ -- Firewa Firewall ll manag management ement dhcp-c dhc p-clie lient/ nt/ -- DHCP DHCP cli client ent settin settings gs dhcp-r dhc p-rela elay/ y/ -- DHC DHCP P rel relay ay settin settings gs dhcp-s dhc p-serv erver/ er/ -- DHCP DHCP ser server ver settin settings gs hotspo hot spot/ t/ -- Hot HotSpo Spot t man manage agemen ment t ipsec/ ips ec/ -- IP sec securi urity ty web-pr web -proxy oxy/ / -- HTT HTTP P pro proxy xy export exp ort -[admin@Mikro [admin @MikroTik] Tik] ip>

                                 [admin@MikroTik] > [admin@MikroTik] > driver [admin@MikroTik] d dr river> / [a [adm dmin in@M @Mik ikro roTi Tik] k] > i int nter erfa face ce [a [adm dmin in@M @Mik ikro roTi Tik] k] int inter erfa face ce> > /i /ip p [admin@MikroTik] ip>

| | | | |

Base level menu Enter 'driver' to move to the driver le leve vel l me menu nu E En nter '/ '/' t to o mo move to to t th he b ba ase le level me menu fr from om an any y le leve vel l

| | | | |

E Ent nte er ace 'in 'inte terf rfac ace' e' to move ve to th the e interf int erface lev level el menu men u mo En Ente ter r '/ '/ip ip' ' to move move to the IP level level menu menu fr from om an any y le leve vel l

                         interface         in      int                                                                      [admin@MikroTik] ip route> print [a [adm dmin in@M @Mik ikro roTi Tik] k] ip ro rout ute> e> .. addr addres ess s print print [a [adm dmin in@M @Mik ikro roTi Tik] k] ip ro rout ute> e> /ip addre address ss print print

| Prints the routing table | Print Prints s the IP addr addres ess s table table | Pr Prin ints ts the IP ad addr dres ess s ta tabl ble e

                      

Summary on executing the commands and navigating the menus Command

Action

command [Enter]

Executes the command

[?]

Shows the list of all available commands

command [?]

 

Displays Displays help on the command command and the list of  arguments

Page 8 of 16 Copyright 1999-2006, MikroTik. All rights reserved. Mikrotik, RouterOS and RouterBOARD are trademarks of Mikrotikls SIA. Other trademarks and registred trademarks mentioned herein are properties of their respective owners.

 

comm comma and argu argume ment nt [?] [?]

Disp Displa lay ys help help on th thee com comman mand's d's argu argume ment nt

[Tab]

Completes the command/wo Completes command/word. rd. If the input is ambiguous, a second [Tab] gives possible options

 /

Moves up to the base level

 /command

Executes the base level command

.. ""

Moves up one level Specifies an empty string

"word1 word2"

 

Specifies Specifies a string of 2 words that contain contain a space

                    address    netmask                               netmask           /ip addres address s add add addres ress s 10.0.0 10.0.0.1/ .1/24 24 interf interface ace eth ether1 er1 /ip addres address s add add addres ress s 10.0.0 10.0.0.1 .1 netmas netmask k 255.25 255.255.2 5.255. 55.0 0 interf interface ace eth ether1 er1

Notes                         10.0.0.1/32     address=10.0.0.1 netmask=255.255.255.255

Basic Configuration Tasks Description Interface Management            /interface                                         /interface print      [admin@Mikr [admin @MikroTik] oTik] interf interface> ace> print Flag Flags: s: X - disa disabl bled ed, , D - dy dyna nami mic, c, R - ru runn nnin ing g # NAME TYPE 0 R ether1 ether 1 R ether2 ether 2 X wavelan1 wavelan 3 X prism1 wlan [admin@Mikr [admin @MikroTik] oTik] interf interface> ace>

RX-RATE 0 0 0 0

TX-RATE 0 0 0 0

MTU 1500 1500 1500 1500

                 /interface enable name               [admin@Mikr [admin @MikroTik] oTik] interf interface> ace> print Flag Flags: s: X - disa disabl bled ed, , D - dy dyna nami mic, c, R - ru runn nnin ing g

Page 9 of 16 Copyright 1999-2006, MikroTik. All rights reserved. Mikrotik, RouterOS and RouterBOARD are trademarks of Mikrotikls SIA. Other trademarks and registred trademarks mentioned herein are properties of their respective owners.

 

# NAME TYPE 0 X ether1 ether 1 X ether2 ether [admin@Mikro [admin @MikroTik] Tik] interface> interface> enable 0 [admin@Mikro [admin @MikroTik] Tik] interface> interface> enable ether2 [admin@Mikro [admin @MikroTik] Tik] interface> interface> print Fl Flag ags: s: X - disa disabl bled ed, , D - dy dyna nami mic, c, R - ru runn nnin ing g # NAME TYPE 0 R ether1 ether 1 R ether2 ether [admin@Mikro [admin @MikroTik] Tik] interface> interface>

RX-RATE 0 0

TX-RATE 0 0

MTU 1500 1500

RX-RATE 0 0

TX-RATE 0 0

MTU 1500 1500

              /interface set   [admin@Mi [admin @Mikro kroTik Tik] ] int interf erface ace> > set 0 name=L name=Loca ocal; l; set 1 name=P name=Publ ublic ic [admin@Mikro [admin @MikroTik] Tik] interface> interface> print Fl Flag ags: s: X - disa disabl bled ed, , D - dy dyna nami mic, c, R - ru runn nnin ing g # NAME TYPE RX-RATE TX-RATE 0 R Local ether 0 0 1 R Public ether 0 0 [admin@Mikro [admin @MikroTik] Tik] interface> interface>

MTU 1500 1500

Notes                 add                                [admin@MikroTik] [admin@Mikro Tik] driver> driver> add name=ne2k-is name=ne2k-isa a io=0x280 io=0x280 [admin@Mikro [admin @MikroTik] Tik] driver> driver> print Fl Flag ags: s: I - in inva vali lid, d, D - dy dyna nami mic c # DRIVER IRQ IO 0 D Real RealTe Tek k 8139 8139 1 D Int Intel el Eth EtherE erExpr xpress essPro Pro 2 D PCI PCI NE20 NE2000 00 3 ISA NE2000 280 4 Moxa C101 Synchronous [admin@Mikro [admin @MikroTik] Tik] driver> driver>

MEMORY

ISDN-PROTOCOL

C8000

                           

Setup Command Command name:  /setup

Description                                /setup             

•        •       •           •      •       •      Page 10 of 16 Copyright 1999-2006, MikroTik. All rights reserved. Mikrotik, RouterOS and RouterBOARD are trademarks of Mikrotikls SIA. Other trademarks and registred trademarks mentioned herein are properties of their respective owners.

 

•     

Configure IP address on router, using the Setup command    /setup      [admin@MikroTik] [admin@Mikr oTik] > setup Se Setu tup p uses uses Safe Safe Mo Mode de. . It me mean ans s th that at al all l ch chan ange ges s th that at ar are e ma made de du duri ring ng se setu tup p ar are e reve revert rted ed in ca case se of er erro ror, r, or if [C [Ctr trl] l]+[ +[C] C] is us used ed to ab abor ort t se setu tup. p. To ke keep ep ch chan ange ges s exit exit setu setup p us usin ing g th the e [X [X] ] ke key. y. [Safe Mod [Safe Mode e tak taken] en] Ch Choo oose se op opti tion ons s by pr pres essi sing ng on one e of th the e le lett tter ers s in th the e le left ft co colu lumn mn, , be befo fore re da dash sh. . Pres Pressi sing ng [X [X] ] wi will ll ex exit it cu curr rren ent t me menu nu, , pr pres essi sing ng En Ente ter r ke key y wi will ll se sele lect ct th the e entr entry y that that is ma mark rked ed by an '* '*'. '. Yo You u ca can n ab abor ort t se setu tup p at an any y ti time me by pr pres essi sing ng [Ctrl]+[C]. Entrie Ent ries s mar marked ked by '+' are alread already y config configure ured. d. En Entr trie ies s mark marked ed by ''-' ' ca cann nnot ot be us used ed ye yet. t. Entrie Ent ries s mar marked ked by 'X' cannot cannot be used used withou without t instal installin ling g additi additiona onal l packag packages. es. r - re rese set t all all ro rout uter er co conf nfig igur urat atio ion n + l - lo load ad in inte terf rfac ace e dr driv iver er * a - co conf nfig igur ure e ip ad addr dres ess s an and d ga gate tewa way y d - setu setup p dhcp dhcp cl clie ient nt s - setu setup p dhcp dhcp se serv rver er p - se setu tup p pppo pppoe e cl clie ient nt t - setu setup p pptp pptp cl clie ient nt x - exi exit menu menu yo your ur ch choi oice ce [p [pre ress ss En Ente ter r to co conf nfig igur ure e ip ad addr dres ess s an and d ga gate tewa way] y]: : a

         a        a          * a - add add ip add addre ress ss - g - se setu tup p defa defaul ult t ga gate tewa way y x - exi exit menu menu yo your ur ch choi oice ce [p [pre ress ss En Ente ter r to ad add d ip ad addr dres ess] s]: : a

   a                                                           yo your ur ch choi oice ce: : a enable interface: interface: ethe ether1 r1 ethe ether2 r2 wl wlan an1 1 enable interface: ether1 ip addres address/net s/netmask: mask: 10.1.0.66/2 10.1.0.66/24 4 #Enabling #Enabl ing interface interface /interface /inter face enable ether1 #Addin #Ad ding g IP add addres ress s /ip address address add addres address=10. s=10.1.0.66 1.0.66/24 /24 inter interface=e face=ether1 ther1 comment="added comment="added by setup" + a - add add ip add addre ress ss * g - se setu tup p defa defaul ult t ga gate tewa way y x - exi exit menu menu yo your ur ch choi oice ce: : x

Application Examples Example              

Page 11 of 16 Copyright 1999-2006, MikroTik. All rights reserved. Mikrotik, RouterOS and RouterBOARD are trademarks of Mikrotikls SIA. Other trademarks and registred trademarks mentioned herein are properties of their respective owners.

 

       

•                                    

•                                        [admin [ad min@Mi @Mikro kroTik Tik] ] ip add addres ress> s> add add addres ress s 10.0.0 10.0.0.21 .217/2 7/24 4 interf interface ace Pub Public lic [admin@Mi [admin @Mikro kroTik Tik] ] ip add addres ress> s> add add addres ress s 192.16 192.168.0 8.0.25 .254/2 4/24 4 interf interface ace Local Local [admin@Mikro [admin @MikroTik] Tik] ip addres address> s> print Fl Flag ags: s: X - disa disabl bled ed, , I - in inva vali lid, d, D - dy dyna nami mic c # ADDRESS NETWORK BROADCAST INTERFACE 0 10.0.0.217/24 10 10.0.0.217 10.0.0.255 Public 1 192.168.0.254/24 192.168.0.0 192.168.0.255 Local [admin@Mikro [admin @MikroTik] Tik] ip addres address> s>

                                                                                                   note                                

Page 12 of 16 Copyright 1999-2006, MikroTik. All rights reserved. Mikrotik, RouterOS and RouterBOARD are trademarks of Mikrotikls SIA. Other trademarks and registred trademarks mentioned herein are properties of their respective owners.

 

Viewing Routes                          [admin [ad min@Mi @Mikro kroTik Tik] ] ip route> route> print print Flag Flags: s: A - acti active ve, , X - di disa sabl bled ed, , I - in inva vali lid, d, D - dy dyna nami mic, c, C - co conn nnec ect, t, S - static, r - rip, b - bgp, o - ospf, d - dynamic # DST-ADDRESS G GATEWAY DISTANCE INTERFACE 0 ADC 192.168.0.0/24 r 0.0.0.0 0 Local 1 ADC 10.0.0.0/24 r 0.0.0.0 0 Public [admin [ad min@Mi @Mikro kroTik Tik] ] ip route> route> print print detail detail Flag Flags: s: A - acti active ve, , X - di disa sabl bled ed, , I - in inva vali lid, d, D - dy dyna nami mic, c, C - co conn nnec ect, t, S - static, r - rip, b - bgp, o - ospf, d - dynamic 0 ADC dst-a dst-address ddress=192.1 =192.168.0.0 68.0.0/24 /24 prefs prefsrc=192 rc=192.168.0 .168.0.254 .254 interface=Lo interface=Local cal scope= scope=10 10 1 ADC dst-a dst-address ddress=10.0. =10.0.0.0/24 0.0/24 prefsrc=10. prefsrc=10.0.0.21 0.0.217 7 interface=P interface=Public ublic scope=10 scope=10 [admin@Mikr [admin @MikroTik] oTik] ip route route> >

                                                                       

Adding Default Routes           defa default ult

route route     

         

                  Public [admin@Mikr [admin @MikroTik] oTik] ip route route> > add gatewa gateway=10. y=10.0.0.1 0.0.1 [admin@Mi [admin @Mikro kroTik Tik] ] ip route> route> print print Flag Flags: s: X - disa disabl bled ed, , I - in inva vali lid, d, D - dy dyna nami mic, c, J - re reje ject cted ed, , C - connect, S - static, R - rip, O - ospf, B - bgp # DST-ADDRESS G GATEWAY DISTANCE INTERFACE 0 ADC 192.168.0.0/24 Local 1 ADC 10.0.0.0/24 Public 2 A S 0.0.0.0/0 r 10.0.0.1 0 Public [admin@Mikr [admin @MikroTik] oTik] ip route route> >

                                    

Page 13 of 16 Copyright 1999-2006, MikroTik. All rights reserved. Mikrotik, RouterOS and RouterBOARD are trademarks of Mikrotikls SIA. Other trademarks and registred trademarks mentioned herein are properties of their respective owners.

 

                                                                   remove                               

Testing the Network Connectivity      /ping                             /ping    [admin@Mi [admin @Mikro kroTik Tik] ] ip rou route> te> /ping /ping 10.0.0 10.0.0.4 .4 10 10.0 .0.0 .0.4 .4 64 by byte te pi ping ng: : tt ttl= l=25 255 5 ti time me=7 =7 ms 10 10.0 .0.0 .0.4 .4 64 by byte te pi ping ng: : tt ttl= l=25 255 5 ti time me=5 =5 ms 10 10.0 .0.0 .0.4 .4 64 by byte te pi ping ng: : tt ttl= l=25 255 5 ti time me=5 =5 ms 3 packet packets s tra transm nsmitt itted, ed, 3 packet packets s receiv received, ed, 0% packet packet los loss s roundrou nd-tri trip p min/av min/avg/m g/max ax = 5/5.6/ 5/5.6/7 7 ms [admin@Mikro [admin @MikroTik] Tik] ip route> [admin@Mikro [admin @MikroTik] Tik] ip route> /ping 192.168.0.1 192.168.0.1 192.16 192 .168.0 8.0.1 .1 64 byt byte e pin ping: g: ttl=25 ttl=255 5 time=1 time=1 ms 192.16 192 .168.0 8.0.1 .1 64 byt byte e pin ping: g: ttl=25 ttl=255 5 time=1 time=1 ms 192.16 192 .168.0 8.0.1 .1 64 byt byte e pin ping: g: ttl=25 ttl=255 5 time=1 time=1 ms 3 packet packets s tra transm nsmitt itted, ed, 3 packet packets s receiv received, ed, 0% packet packet los loss s roundrou nd-tri trip p min/av min/avg/m g/max ax = 1/1.0/ 1/1.0/1 1 ms [admin@Mikro [admin @MikroTik] Tik] ip route>

                                                                       C:\>ping 192.1 C:\>ping 192.168.0.2 68.0.254 54 Reply Rep ly fro from m 192.16 192.168.0 8.0.25 .254: 4: bytes= bytes=32 32 time=1 time=10ms 0ms TTL TTL=25 =253 3 Reply Rep ly fro from m 192.16 192.168.0 8.0.25 .254: 4: bytes= bytes=32 32 time<1 time<10ms 0ms TTL TTL=25 =253 3 Reply Rep ly fro from m 192.16 192.168.0 8.0.25 .254: 4: bytes= bytes=32 32 time<1 time<10ms 0ms TTL TTL=25 =253 3 C:\>ping 10.0. C:\>ping 10.0.0.217 0.217 Reply Rep ly fro from m 10.0.0 10.0.0.21 .217: 7: byt bytes= es=32 32 time=1 time=10ms 0ms TTL=25 TTL=253 3 Reply Rep ly fro from m 10.0.0 10.0.0.21 .217: 7: byt bytes= es=32 32 time<1 time<10ms 0ms TTL=25 TTL=253 3 Reply Rep ly fro from m 10.0.0 10.0.0.21 .217: 7: byt bytes= es=32 32 time<1 time<10ms 0ms TTL=25 TTL=253 3 C:\>ping 10.0. C:\>ping 10.0.0.4 0.4 Reques Req uest t timed timed out out. . Reques Req uest t timed timed out out. . Reques Req uest t timed timed out out. .

Notes                     

•                              

•                                                                   

Page 14 of 16 Copyright 1999-2006, MikroTik. All rights reserved. Mikrotik, RouterOS and RouterBOARD are trademarks of Mikrotikls SIA. Other trademarks and registred trademarks mentioned herein are properties of their respective owners.

 

                               

Advanced Configuration Tasks Description                     

Application Example with Masquerading                                                                                                                                                                      [admin@MikroTik] [admin@Mikr oTik] ip firew firewall all nat> add chain=srcna chain=srcnat t action=masq action=masquerade uerade out-interface=Public [admin [ad min@Mi @Mikro kroTik Tik] ] ip firewa firewall ll nat> nat> print print Flag Flags: s: X - disa disabl bled ed, , I - in inva vali lid, d, D - dy dyna nami mic c 0 cha chain= in=src srcnat nat outout-int interf erface ace=Pu =Publi blic c action=m action=masq asquer uerade ade

Notes                   

Example with Bandwidth Management                                                 [admin@MikroTik] [admin@Mikr oTik] queue simple> simple> add max-l max-limit=6 imit=64000/1 4000/128000 28000 interface=L interface=Local ocal [admin@Mikr [admin @MikroTik] oTik] queue simple> simple> print Flag Flags: s: X - disa disabl bled ed, , I - in inva vali lid, d, D - dy dyna nami mic c 0 nam name=" e="que queue1 ue1" " targe target-a t-addr ddress ess=0. =0.0.0 0.0.0/ .0/0 0 dst-a dst-addr ddress ess=0. =0.0.0 0.0.0/ .0/0 0 interface=L inter face=Local ocal queue=defau queue=default/def lt/default ault priority=8 priority=8 limit-at=0/0 limit-at=0/0 max-limit=64000/128000 total-queue=default [admin@Mikr [admin @MikroTik] oTik] queue simple> simple>

                                                     

Example with NAT Page 15 of 16 Copyright 1999-2006, MikroTik. All rights reserved. Mikrotik, RouterOS and RouterBOARD are trademarks of Mikrotikls SIA. Other trademarks and registred trademarks mentioned herein are properties of their respective owners.

 

                  

                                                                                                                                     [admin@Mikro [admin @MikroTik] Tik] ip firewa firewall ll nat> add chain chain=dstna =dstnat t action=dstaction=dst-nat nat protocol=tc protocol=tcp p dst-address=10.0.0.217/32 to-addresses=192.168.0.4 [admin@Mi [admin @Mikro kroTik Tik] ] ip fir firewa ewall ll nat> nat> dst-port=80 pr Fl Flag ags: s: X - disa disabl bled ed, , I - in inva vali lid, d, D - dy dyna nami mic c 0 cha chain= in=dst dstnat nat dst-ad dst-addre dress= ss=10. 10.0.0 0.0.21 .217/3 7/32 2 protoc protocol= ol=tcp tcp dst-port dst-port=80 =80 action=dst-nat to-addresses=192.168.0.4 to-ports=0-65535

Notes                  

Page 16 of 16 Copyright 1999-2006, MikroTik. All rights reserved. Mikrotik, RouterOS and RouterBOARD are trademarks of Mikrotikls SIA. Other trademarks and registred trademarks mentioned herein are properties of their respective owners.

Sponsor Documents

Or use your account on DocShare.tips

Hide

Forgot your password?

Or register your new account on DocShare.tips

Hide

Lost your password? Please enter your email address. You will receive a link to create a new password.

Back to log-in

Close