MikroTik RouterOS is an operating system what is used as a network router and also manage bandwidth.In this time MikroTik used widely at ISP's, local office's, local cyber cafe and also local provider who give connection for home user's.
You can access Mikrotik Router 3 different ways.
1. Via Winbox
2. Via Console (like putty,ssh etc.)
3. Via Web .
I am describe here step by step.
Basic Configuration
After start the
Mikrotik OS give the username = admin (By Default), Password= (Blank)
1.
IP
Configuration at Ethernet cards: (Need 2 Ethernet Card)
ether 1 (Wan)= 192.168.1.1/24 for Internet/DSL Connection
ether2 (Local) = 192.168.0.1/24 for
local user’s
Command Line:
1. IP Configuration at Ethernet cards: (Need 2 Ethernet Card)
ether 1 (Wan)= 192.168.1.1/24 for Internet/DSL Connection
[admin@Mikrotik] ip address> add address 192.168.1.1/24 interface Ether1/Wan
[admin@Mikrotik] ip address>
add address 192.168.0.1/24 interface Ether2/Local [admin@Mikrotik] ip address>
ip address print
Flags: X - disabled, I - invalid, D -
dynamic
# ADDRESS NETWORK BROADCAST INTERFACE
0 192.168.1.1/24 192.168.1.0 192.168.1.255 Wan
1
192.168.0.1/28 192.168.0.0 192.168.0.255 Local
[admin@MikroTik] ip address>
2. Default Routes Add: (Default Route will be the ISP’s provides gateway)
[admin@MikroTik]
ip route add gateway=192.168.1.1
3 . DNS Setup:
ip
dns set primary-dns=192.168.1.2 allow-remote-request=yes
ip
dns set secondary-dns=192.168.1.3 allow-remote-request=yes
4. Testing the connection:
[admin@Mikrotik] ping 192.168.1.1
(Your ISP’s Gateways/DNS or something else)
5.
NAT/Masquerading:
[admin@MikroTik] ip firewall nat add chain=srcnat
action=masquerade out-interface=Wan
6.
Bandwidth
Management:
queue simple
add name=”queue1” target-address=192.168.0.6/256 dst-address=0.0.0.0/0
interface=Local queue=default priority=8 limit-at=256000/256000
max-limit=256000/256000
0 comments:
Post a Comment