8
Cable setup 1 Cable setup basic configuration mikrotik first of all setup all the ports case of dynamic ip (emulation router linksys generic) ip-- dhcp client add eth3 (write port ip address you wish) go to bridge tag bridge add one bridge --- ports add eth1 add eth2 add wlan ip--- dns add one write ip of dhcp then go to setting write dns1 200.42.0.111 ip --- address add 192.168.1.1/24 IMPORTANTE /24 select bridge at interface ip dhcp server click on dhcp setup dhcp server interface BRIDGE dhcp address space 192.168.1.0/24 gateways for dhcp network 192.168.1.1 address to give out 192.168.1.2-192.168.1.254 dns 1 200.42.0.111 dns 2 200.42.0.109 ip ---- firewall add one rule chain SRCNAT out interface ETH3 ACTION masquerade Basic Internet Sharing with Bandwidth Limiting This tutorial explains how to configure a router to share a single Internet connection (WAN) among multiple local computers (LAN) using NAT. First we will configure interface that is connected to WAN.  / ip address add address=192.168.1.20/24 network=192.168.1.0 broadcast=192.168.1.255 inte rface=ether2 Now one interface is configured and connected to WAN (with ip 192.168.1.20/24). Now we will configure second interface for our Local Network.  / ip address add address=192.168.0.1/24 network=192.168.0.0 broadcast=192.168.0.255 interface=ether1

Mikrotik Basic Internet Sharing With Bandwidth Limiting

Embed Size (px)

DESCRIPTION

A method for Basic Internet Sharing With Bandwidth Limiting with Mikrotik.

Citation preview

  • Cable setup 1

    Cable setupbasic configuration mikrotikfirst of all setup all the ports case of dynamic ip (emulation router linksys generic)ip-- dhcp client add eth3 (write port ip address you wish)go to bridge tag bridge add onebridge --- ports add eth1 add eth2 add wlanip--- dns add one write ip of dhcp then go to setting write dns1 200.42.0.111ip --- address add 192.168.1.1/24 IMPORTANTE /24 select bridge at interfaceip dhcp server click on dhcp setup dhcp server interface BRIDGE dhcp address space 192.168.1.0/24 gateways fordhcp network 192.168.1.1 address to give out 192.168.1.2-192.168.1.254 dns 1 200.42.0.111 dns 2 200.42.0.109ip ---- firewall add one rule chain SRCNAT out interface ETH3ACTION masquerade

    Basic Internet Sharing with Bandwidth LimitingThis tutorial explains how to configure a router to share a single Internet connection (WAN) among multiple localcomputers (LAN) using NAT.

    First we will configure interface that is connected to WAN./ ip address add address=192.168.1.20/24 network=192.168.1.0 broadcast=192.168.1.255 interface=ether2

    Now one interface is configured and connected to WAN (with ip 192.168.1.20/24). Now we will configure secondinterface for our Local Network./ ip address add address=192.168.0.1/24 network=192.168.0.0 broadcast=192.168.0.255 interface=ether1

  • Cable setup 2

    Now we will configure DHCP using WinBOX, download Winbox from http:/ / www. mikrotik. com and login toyou MT Router. Then goto IP > DHCP-Server, now press Setup Button, then you will see a similar window asshown below. Just select the interface that you have configured for your Local Network (as in our example it isether1), now just press Next till the end of setup.

  • Cable setup 3

    Now we will configure DNS for our local network. Goto IP > DNS, press Settings button then add you Primary andSecondary DNS Server IP as provided by your Internet Service Provider. Also make sure that you select "AllowRemote Requests", so that you can give your MT Router's IP as a DNS Server to your Clients. Then Apply and OK.

  • Cable setup 4

    Now we will configure NATing for our Local Network. Goto IP > Firewall, goto NAT table press the plus signwhich will allow you to add new firewall rules. Select chain=srcnat, then set Src. Address=192.168.0.0/24 (ip rangeof your local network), then select Out.Interface=ether2 (interface connected WAN), as shown below.

    Now goto Action Tab in the same window, then select Action=Masquerade, then Apply and OK.

  • Cable setup 5

    Now we will setup Bandwidth restriction (10kbps per IP in 192.168.0.0/24 range). Goto Queues, then goto QueueTypes, then press the plus sign to add a custom Queue Type. In the name field enter your desired name, selectkind=pcq. As shown below.

    Now goto Settings Tab in the same window, and enter the Rate to 10000 (i.e equal to 10kbps), also select Dst.Address, as shown below.

  • Cable setup 6

    Now for Upload limit repeat the same procedure to create another Queue Type name it something different and inthe Settings Tab instead of selecting Dst. Address this time select Src. Address. Apply and OK

    Now in the Queues window goto Simple Queues Tab, and add a new simple queue by pressing plus sign. Enter yourdesired name, then add a Target Address=192.168.0.0/24 the IP Range of your local network.

  • Cable setup 7

    Now goto Advanced Tab in the same window and in Queue Type in the Target Upload select the Queue Type thatwe created before for upload restriction purpose, do the same for Target Download. As shown below. Press Applyand OK.

    As per the steps shown and performed, you should now have an up and running MT Router, that will serve InternetService to local network with IP Range 192.168.0.0/24 that will be given by the DHCP Server.Hope this will help out many people.

    Created by Mudasir Mirza

  • Article Sources and Contributors 8

    Article Sources and ContributorsCable setup Source: http://wiki.mikrotik.com/index.php?oldid=18504 Contributors: Gabak, Mlehmann, Mudasir, RK

    Image Sources, Licenses and ContributorsImage:Dhcp-1.JPG Source: http://wiki.mikrotik.com/index.php?title=File:Dhcp-1.JPG License: unknown Contributors: MudasirImage:Dns.JPG Source: http://wiki.mikrotik.com/index.php?title=File:Dns.JPG License: unknown Contributors: MudasirImage:Firewall-1.JPG Source: http://wiki.mikrotik.com/index.php?title=File:Firewall-1.JPG License: unknown Contributors: MudasirImage:Firewall-2.JPG Source: http://wiki.mikrotik.com/index.php?title=File:Firewall-2.JPG License: unknown Contributors: MudasirImage:Bandwidth-1.JPG Source: http://wiki.mikrotik.com/index.php?title=File:Bandwidth-1.JPG License: unknown Contributors: MudasirImage:Bandwidth-2.JPG Source: http://wiki.mikrotik.com/index.php?title=File:Bandwidth-2.JPG License: unknown Contributors: MudasirImage:Simple-queue-1.JPG Source: http://wiki.mikrotik.com/index.php?title=File:Simple-queue-1.JPG License: unknown Contributors: MudasirImage:Simple-queue-2.JPG Source: http://wiki.mikrotik.com/index.php?title=File:Simple-queue-2.JPG License: unknown Contributors: Mudasir

    Cable setupBasic Internet Sharing with Bandwidth Limiting