How to make it???????

Hello All,
i am new to ROS, may any one please help me to do this?
i just want to try it with bandwidth control,
Thanks in advance.

With Best Regard’s
Shaikh
untitled.JPG

Hello!

You need to create PPPoE server on the mikrotik, if you want to authenticate users with username and password.
Then, you can specify rate limits easily in ppp profile, for each user.

Regards!

Thanks a lot Buddy for your reply.
but as i said i am new born baby in this ROS World.so i don’t know exactly what to do for it.if you can help me i will be very very very Thankful to you for my life.

Hello!

Ok, let’s start then :slight_smile:

Which Mikrotik version in installed on your PC/router?
How do you get internet from modem? by dhcp, static ip, PPPoE…etc?

i did not installed any OS,1 of my friend give me hard drive with installed 2.9.27 OS.
i just want to try it first with my home users befor starting on my network,also dealing with local vendor for obtaining licence of 3.3.
i have a 4Mb DSL connection with dhcp.

i have attach it with my other pc (which have 2 nic).
connect it with win box but don’t know what to do now.

Ok,

We need to assign ip address to ethernet interfaces first:

  1. LAN inteface (to switch)
ip address add address=192.168.0.1/24 interface="your lan interface" disabled=no
  1. WAN interface (to modem)
ip dhcp-client add interface="your wan interface" use-peer-dns=yes use-peer-ntp=yes add-default-route=yes disabled=no

Because you get dynamicaly assigned ip address form modem, we will use dhcp-client on wan interface.

Next, we need to create ip pool for users that are connecting with pppoe:

ip pool add name=users_pool ranges=192.168.2.2-192.168.2.254

Masquerade outgoing interface:

ip firewall nat add chain=srcnat src-address=192.168.2.0/24 out-interface=your wan interface action=masquerade

Then create a pppoe server on LAN interface:

interface pppoe-server server add authentication=pap,chap,mschap1,mschap2 interface=your lan interface service-name=pppoe-service one-session-per-host=yes disabled=no

So, we need to create each user now.

First, we create profile with rate limit:

 ppp profile add name=user1 local-address=192.168.2.1 remote-address=users_pool rate-limit=2048000/2048000 use-encryption=no use-compression=no use-vj-compression=no only-one=yes

Then username and password for each user:

ppp secret add name=user1 password=userpass profile=user1 disabled=no

Finish!

You need to create each profile for each user if you want different bandwith, static ip, etc… or you can use same profile for many users!

Regards!

1st tell me how to reset all settings of router?
then tell me how and where enter all of above mentioned commands?
then i will be able to do this.

Regard’s

Go to winbox, then “new terminal” button, and enter system reset, then click y on keyboard, and press enter.
After restart, logon to winbox again and open terminal, then enter all comands there.

Regards!

connect with which port?
built in or external Ethernet port?

No matter, just logon with winbox.

it reset now.
now tell me some things bcoz i did’t understand that

ip address add address=192.168.0.1/24 interface=“your lan interface” disabled=no (my lan interface???)

ip dhcp-client add interface=“your wan interface” use-peer-dns=yes use-peer-ntp=yes add-default-route=yes disabled=no (my wan interface???)

ip pool add name=users_pool ranges=192.168.2.2-192.168.2.254 (add name???)

ip firewall nat add chain=srcnat src-address=192.168.2.0/24 out-interface=your wan interface action=masquerade (my wan interface action???)

do you have any sky or msn ?
if have then give me or add me.
1nonlyshaikh(at)gmail.com
there we can talk amuch easy and fast.
or add mine skype OnlyShaikh

Ok,

One ether interface is for users (LAN) another is for internet (wan)
You have ether1 and ether2 in winbox, change name for them to LAN and WAN, and change name in commands:

Example:

ip address add address=192.168.0.1/24 interface=LAN disabled=no
ip dhcp-client add interface=WAN use-peer-dns=yes use-peer-ntp=yes add-default-route=yes disabled=no

and so on…

ip pool add name=users_pool ranges=192.168.2.2-192.168.2.254 it’s name for the pool of ip addresses, so you can recognise and use it later, ok?

Regards!

my dhcp assigned ip is 192.168.1.2
is it my lan interface?

when i have entered this value
ip address add address=192.168.0.1/24 interface=LAN disabled=no

this msg displayed there

input does not match any value of iterface

You must first rename ethernet interfaces from ether1 and ether2 to LAN and WAN,
In winbox, just click two times on ether1 for example, and change name to LAN, then on ether2 and change it to WAN.

Regards!

i have done 1st 3 steps but Buddy it’s time to go now to offer friday prayer.
i will be back very soon and then able to complete all of it.
kindly add complete data about how to add users and etc. etc.

Regard’s

where are you dejanb?
i am unable to complete the process.
Plz help me.

Did you renamed interfaces exactly like i said?