Community discussions

MikroTik App
 
User avatar
1nOnlyShaikh
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 83
Joined: Sat Mar 26, 2011 10:31 pm

How to make it???????

Fri Apr 08, 2011 9:59 am

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
You do not have the required permissions to view the files attached to this post.
Regard's
Shaikh
1nonlyshaikh@gmail.com
 
dejanb
Frequent Visitor
Frequent Visitor
Posts: 54
Joined: Wed Apr 21, 2010 12:05 am
Location: Serbia, Belgrade

Re: How to make it???????

Fri Apr 08, 2011 10:13 am

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!
 
User avatar
1nOnlyShaikh
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 83
Joined: Sat Mar 26, 2011 10:31 pm

Re: How to make it???????

Fri Apr 08, 2011 10:18 am

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.
Regard's
Shaikh
1nonlyshaikh@gmail.com
 
dejanb
Frequent Visitor
Frequent Visitor
Posts: 54
Joined: Wed Apr 21, 2010 12:05 am
Location: Serbia, Belgrade

Re: How to make it???????

Fri Apr 08, 2011 10:23 am

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 :)

Which Mikrotik version in installed on your PC/router?
How do you get internet from modem? by dhcp, static ip, PPPoE...etc?
 
User avatar
1nOnlyShaikh
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 83
Joined: Sat Mar 26, 2011 10:31 pm

Re: How to make it???????

Fri Apr 08, 2011 10:27 am

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 :)

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.
Regard's
Shaikh
1nonlyshaikh@gmail.com
 
User avatar
1nOnlyShaikh
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 83
Joined: Sat Mar 26, 2011 10:31 pm

Re: How to make it???????

Fri Apr 08, 2011 10:39 am

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 :)

Which Mikrotik version in installed on your PC/router?
How do you get internet from modem? by dhcp, static ip, PPPoE...etc?
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.
Regard's
Shaikh
1nonlyshaikh@gmail.com
 
dejanb
Frequent Visitor
Frequent Visitor
Posts: 54
Joined: Wed Apr 21, 2010 12:05 am
Location: Serbia, Belgrade

Re: How to make it???????

Fri Apr 08, 2011 10:58 am

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
2. 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!
 
User avatar
1nOnlyShaikh
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 83
Joined: Sat Mar 26, 2011 10:31 pm

Re: How to make it???????

Fri Apr 08, 2011 11:06 am

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
2. 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
Regard's
Shaikh
1nonlyshaikh@gmail.com
 
dejanb
Frequent Visitor
Frequent Visitor
Posts: 54
Joined: Wed Apr 21, 2010 12:05 am
Location: Serbia, Belgrade

Re: How to make it???????

Fri Apr 08, 2011 11:11 am

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
2. 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!
 
User avatar
1nOnlyShaikh
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 83
Joined: Sat Mar 26, 2011 10:31 pm

Re: How to make it???????

Fri Apr 08, 2011 11:13 am

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
2. 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?
Regard's
Shaikh
1nonlyshaikh@gmail.com
 
dejanb
Frequent Visitor
Frequent Visitor
Posts: 54
Joined: Wed Apr 21, 2010 12:05 am
Location: Serbia, Belgrade

Re: How to make it???????

Fri Apr 08, 2011 11:16 am

No matter, just logon with winbox.
 
User avatar
1nOnlyShaikh
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 83
Joined: Sat Mar 26, 2011 10:31 pm

Re: How to make it???????

Fri Apr 08, 2011 11:23 am

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?????)
Regard's
Shaikh
1nonlyshaikh@gmail.com
 
User avatar
1nOnlyShaikh
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 83
Joined: Sat Mar 26, 2011 10:31 pm

Re: How to make it???????

Fri Apr 08, 2011 11:25 am

No matter, just logon with winbox.
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
Regard's
Shaikh
1nonlyshaikh@gmail.com
 
dejanb
Frequent Visitor
Frequent Visitor
Posts: 54
Joined: Wed Apr 21, 2010 12:05 am
Location: Serbia, Belgrade

Re: How to make it???????

Fri Apr 08, 2011 11:30 am

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?????)
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!
 
User avatar
1nOnlyShaikh
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 83
Joined: Sat Mar 26, 2011 10:31 pm

Re: How to make it???????

Fri Apr 08, 2011 11:31 am

my dhcp assigned ip is 192.168.1.2
is it my lan interface?
Regard's
Shaikh
1nonlyshaikh@gmail.com
 
User avatar
1nOnlyShaikh
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 83
Joined: Sat Mar 26, 2011 10:31 pm

Re: How to make it???????

Fri Apr 08, 2011 11:38 am

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
Regard's
Shaikh
1nonlyshaikh@gmail.com
 
dejanb
Frequent Visitor
Frequent Visitor
Posts: 54
Joined: Wed Apr 21, 2010 12:05 am
Location: Serbia, Belgrade

Re: How to make it???????

Fri Apr 08, 2011 11:40 am

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!
 
User avatar
1nOnlyShaikh
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 83
Joined: Sat Mar 26, 2011 10:31 pm

Re: How to make it???????

Fri Apr 08, 2011 11:52 am

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
Regard's
Shaikh
1nonlyshaikh@gmail.com
 
User avatar
1nOnlyShaikh
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 83
Joined: Sat Mar 26, 2011 10:31 pm

Re: How to make it???????

Fri Apr 08, 2011 4:38 pm

where are you dejanb?
i am unable to complete the process.
Plz help me.
Regard's
Shaikh
1nonlyshaikh@gmail.com
 
dejanb
Frequent Visitor
Frequent Visitor
Posts: 54
Joined: Wed Apr 21, 2010 12:05 am
Location: Serbia, Belgrade

Re: How to make it???????

Fri Apr 08, 2011 8:53 pm

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

Did you renamed interfaces exactly like i said?
 
User avatar
1nOnlyShaikh
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 83
Joined: Sat Mar 26, 2011 10:31 pm

Re: How to make it???????

Sat Apr 09, 2011 1:15 pm

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

Did you renamed interfaces exactly like i said?
Yes i do as you said, but did't work.
Regard's
Shaikh
1nonlyshaikh@gmail.com
 
dejanb
Frequent Visitor
Frequent Visitor
Posts: 54
Joined: Wed Apr 21, 2010 12:05 am
Location: Serbia, Belgrade

Re: How to make it???????

Sat Apr 09, 2011 1:54 pm

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

Did you renamed interfaces exactly like i said?
Yes i do as you said, but did't work.
Enter:
interface ethernet print
And post here an output of command.
 
User avatar
1nOnlyShaikh
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 83
Joined: Sat Mar 26, 2011 10:31 pm

Re: How to make it???????

Sat Apr 09, 2011 9:12 pm

It's attached.
kindly tell me how to create users and how to complete other settings.
I will be very Thankful to you.

Regard's
Shaikh
You do not have the required permissions to view the files attached to this post.
Regard's
Shaikh
1nonlyshaikh@gmail.com
 
dejanb
Frequent Visitor
Frequent Visitor
Posts: 54
Joined: Wed Apr 21, 2010 12:05 am
Location: Serbia, Belgrade

Re: How to make it???????

Sat Apr 09, 2011 11:34 pm

It's attached.
kindly tell me how to create users and how to complete other settings.
I will be very Thankful to you.

Regard's
Shaikh
You didn't renamed ethernet interfaces like i said.

Enter:
interface ethernet set ether1 name=LAN disabled=no
interface ethernet set ether2 name=WAN disabled=no
Then you can enter commands that i writed earlier.

Regards!
 
User avatar
1nOnlyShaikh
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 83
Joined: Sat Mar 26, 2011 10:31 pm

Re: How to make it???????

Sun Apr 10, 2011 2:08 am

It's attached.
kindly tell me how to create users and how to complete other settings.
I will be very Thankful to you.

Regard's
Shaikh
You didn't renamed ethernet interfaces like i said.

Enter:
interface ethernet set ether1 name=LAN disabled=no
interface ethernet set ether2 name=WAN disabled=no
Then you can enter commands that i writed earlier.

Regards!
I have reset router again and now it's updated,you can find all the new settings i entered in pic,
tell me what to do if it's done?
You do not have the required permissions to view the files attached to this post.
Last edited by 1nOnlyShaikh on Sun Apr 10, 2011 2:09 pm, edited 1 time in total.
Regard's
Shaikh
1nonlyshaikh@gmail.com
 
User avatar
1nOnlyShaikh
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 83
Joined: Sat Mar 26, 2011 10:31 pm

Re: How to make it???????

Sun Apr 10, 2011 2:14 am

now tell me which port i connect to my dsl modem and which one to switch (attached with other computers) ?
how to define DNS settings?
what to do on other computer to connect through this router?
what will there remote and local address?
all the other complete procedure to use this router on my small network?
is it ready to use?
Regard's
Shaikh
1nonlyshaikh@gmail.com
 
BS85
newbie
Posts: 25
Joined: Sun May 28, 2006 8:52 am
Location: UK

Re: How to make it???????

Sun Apr 10, 2011 9:17 am

now it's updated,
tell me what to do if it's done?
Buy a licence key and upgrade to V5.
 
User avatar
1nOnlyShaikh
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 83
Joined: Sat Mar 26, 2011 10:31 pm

Re: How to make it???????

Sun Apr 10, 2011 2:08 pm

I connect (00:50:FC:C5:4D:CF) WAN port to modem and (00:08:02:50:FD:E2) LAN to switch,
make new network connection with user name = shaikh and password = shaikh on my other computer and try to connect but when dialer dials then a error show's
Checking network protocol connections

TCP/IP CP reported error 738: The server did not assign an address
Kindly tell me what to do for use this router,what setting are still missing?
Regard's
Shaikh
1nonlyshaikh@gmail.com
 
dejanb
Frequent Visitor
Frequent Visitor
Posts: 54
Joined: Wed Apr 21, 2010 12:05 am
Location: Serbia, Belgrade

Re: How to make it???????

Sun Apr 10, 2011 2:41 pm

now tell me which port i connect to my dsl modem and which one to switch (attached with other computers) ?
how to define DNS settings?
WAN connect to dsl modem, LAN to switch!
It will be defined automaticaly with dhcp-client you created earlier


what to do on other computer to connect through this router?
Just create another, different username and password in mikrotik for second computer, like for first one.
what will there remote and local address?
local-address=192.168.2.1 (like for first username, and it will be same for all usernames), remote-address=users_pool (like first username, and it will be same for all usernames)
all the other complete procedure to use this router on my small network?
is it ready to use?
If you entered all exactly like i said, and it works, it's done! :)

Regards!
 
User avatar
1nOnlyShaikh
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 83
Joined: Sat Mar 26, 2011 10:31 pm

Re: How to make it???????

Sun Apr 10, 2011 6:37 pm

i have reset router using " system reset " command.
and then i do as you said and you can see all the setup below A to Z.
now tell me is it all done now or any thing still missing because it's still not working.
Terminal vt102 detected, using multiline input mode
[admin@MikroTik] > interface ethernet set ether1 name=LAN disabled=no
[admin@MikroTik] > interface ethernet set ether2 name=WAN disabled=no
[admin@MikroTik] > ip address add address=192.168.0.1/24 interface=LAN disabled=no
[admin@MikroTik] > ip dhcp-client add interface=WAN use-peer-dns=yes use-peer-ntp=yes add-default-route=yes disabled=no
[admin@MikroTik] > ip pool add name=users_pool ranges=192.168.2.2-192.168.0.254
[admin@MikroTik] > ip firewall nat add chain=srcnat src-address=192.168.2.0/24 out-interface=WAN action=masquerade 
[admin@MikroTik] > interface pppoe-server server add authentication=pap,chap,mschap1,mschap2 interface=LAN service-name=pppoe-service one-session-per-host=yes disabled=no
[admin@MikroTik] > 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
[admin@MikroTik] > ppp secret add name=user1 password=userpaas profile=user1 disabled=no
[admin@MikroTik] > interface 
[admin@MikroTik] interface> print
Flags: X - disabled, D - dynamic, R - running 
 #    NAME                          TYPE             RX-RATE    TX-RATE    MTU  
 0  R LAN                           ether            0          0          1500 
 1  R WAN                           ether            0          0          1500 
[admin@MikroTik] > ip address 
[admin@MikroTik] ip address> print
Flags: X - disabled, I - invalid, D - dynamic 
 #   ADDRESS            NETWORK         BROADCAST       INTERFACE
 0   192.168.0.1/24     192.168.0.0     192.168.0.255   LAN      
[admin@MikroTik] > ip route
[admin@MikroTik] ip route> print
Flags: X - disabled, A - active, D - dynamic, 
C - connect, S - static, r - rip, b - bgp, o - ospf 
 #     DST-ADDRESS        PREF-SRC        G GATEWAY         DISTANCE INTERFACE
 0 ADC 192.168.0.0/24     192.168.0.1                               	 LAN      
Regard's
Shaikh
1nonlyshaikh@gmail.com
 
dejanb
Frequent Visitor
Frequent Visitor
Posts: 54
Joined: Wed Apr 21, 2010 12:05 am
Location: Serbia, Belgrade

Re: How to make it???????

Sun Apr 10, 2011 6:47 pm

i have reset router using " system reset " command.
and then i do as you said and you can see all the setup below A to Z.
now tell me is it all done now or any thing still missing because it's still not working.
Terminal vt102 detected, using multiline input mode
[admin@MikroTik] > interface ethernet set ether1 name=LAN disabled=no
[admin@MikroTik] > interface ethernet set ether2 name=WAN disabled=no
[admin@MikroTik] > ip address add address=192.168.0.1/24 interface=LAN disabled=no
[admin@MikroTik] > ip dhcp-client add interface=WAN use-peer-dns=yes use-peer-ntp=yes add-default-route=yes disabled=no
[admin@MikroTik] > ip pool add name=users_pool ranges=192.168.2.2-192.168.0.254
[admin@MikroTik] > ip firewall nat add chain=srcnat src-address=192.168.2.0/24 out-interface=WAN action=masquerade 
[admin@MikroTik] > interface pppoe-server server add authentication=pap,chap,mschap1,mschap2 interface=LAN service-name=pppoe-service one-session-per-host=yes disabled=no
[admin@MikroTik] > 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
[admin@MikroTik] > ppp secret add name=user1 password=userpaas profile=user1 disabled=no
[admin@MikroTik] > interface 
[admin@MikroTik] interface> print
Flags: X - disabled, D - dynamic, R - running 
 #    NAME                          TYPE             RX-RATE    TX-RATE    MTU  
 0  R LAN                           ether            0          0          1500 
 1  R WAN                           ether            0          0          1500 
[admin@MikroTik] > ip address 
[admin@MikroTik] ip address> print
Flags: X - disabled, I - invalid, D - dynamic 
 #   ADDRESS            NETWORK         BROADCAST       INTERFACE
 0   192.168.0.1/24     192.168.0.0     192.168.0.255   LAN      
[admin@MikroTik] > ip route
[admin@MikroTik] ip route> print
Flags: X - disabled, A - active, D - dynamic, 
C - connect, S - static, r - rip, b - bgp, o - ospf 
 #     DST-ADDRESS        PREF-SRC        G GATEWAY         DISTANCE INTERFACE
 0 ADC 192.168.0.0/24     192.168.0.1                               	 LAN      
Do:
ip dhcp-client print
 
User avatar
1nOnlyShaikh
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 83
Joined: Sat Mar 26, 2011 10:31 pm

Re: How to make it???????

Sun Apr 10, 2011 6:54 pm

is it right?
what to do now?
[admin@MikroTik] > ip dhcp-client print
Flags: X - disabled, I - invalid 
 #   INTERFACE USE-PEER-DNS ADD-DEFAULT-ROUTE STATUS        ADDRESS           
 0   WAN       yes          yes               searching... 
Regard's
Shaikh
1nonlyshaikh@gmail.com
 
dejanb
Frequent Visitor
Frequent Visitor
Posts: 54
Joined: Wed Apr 21, 2010 12:05 am
Location: Serbia, Belgrade

Re: How to make it???????

Sun Apr 10, 2011 6:56 pm

is it right?
what to do now?
[admin@MikroTik] > ip dhcp-client print
Flags: X - disabled, I - invalid 
 #   INTERFACE USE-PEER-DNS ADD-DEFAULT-ROUTE STATUS        ADDRESS           
 0   WAN       yes          yes               searching... 
It looks like you didn't got IP address from modem, try to turn off/on modem, and, what IP address you got from modem on your pc earlier, from which range 192.168.0.x or 192.168.1.x?

Regards!
 
User avatar
1nOnlyShaikh
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 83
Joined: Sat Mar 26, 2011 10:31 pm

Re: How to make it???????

Sun Apr 10, 2011 6:59 pm

is it right?
what to do now?
[admin@MikroTik] > ip dhcp-client print
Flags: X - disabled, I - invalid 
 #   INTERFACE USE-PEER-DNS ADD-DEFAULT-ROUTE STATUS        ADDRESS           
 0   WAN       yes          yes               searching... 
It looks like you didn't got IP address from modem, try to turn off/on modem, and, what IP address you got from modem on your pc earlier, from which range 192.168.0.x or 192.168.1.x?

Regards!
sorry i forget to connect wan port to modem but it's done now.
[admin@MikroTik] > ip dhcp-client print
Flags: X - disabled, I - invalid 
 #   INTERFACE USE-PEER-DNS ADD-DEFAULT-ROUTE STATUS        ADDRESS           
 0   WAN       yes          yes               bound         192.168.1.4/24  
Regard's
Shaikh
1nonlyshaikh@gmail.com
 
dejanb
Frequent Visitor
Frequent Visitor
Posts: 54
Joined: Wed Apr 21, 2010 12:05 am
Location: Serbia, Belgrade

Re: How to make it???????

Sun Apr 10, 2011 7:01 pm

is it right?
what to do now?
[admin@MikroTik] > ip dhcp-client print
Flags: X - disabled, I - invalid 
 #   INTERFACE USE-PEER-DNS ADD-DEFAULT-ROUTE STATUS        ADDRESS           
 0   WAN       yes          yes               searching... 
It looks like you didn't got IP address from modem, try to turn off/on modem, and, what IP address you got from modem on your pc earlier, from which range 192.168.0.x or 192.168.1.x?

Regards!
sorry i forget to connect wan port to modem but it's done now.
[admin@MikroTik] > ip dhcp-client print
Flags: X - disabled, I - invalid 
 #   INTERFACE USE-PEER-DNS ADD-DEFAULT-ROUTE STATUS        ADDRESS           
 0   WAN       yes          yes               bound         192.168.1.4/24  
Is it work now? can you browe internet?

Regards
 
User avatar
1nOnlyShaikh
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 83
Joined: Sat Mar 26, 2011 10:31 pm

Re: How to make it???????

Sun Apr 10, 2011 7:09 pm

No Buddy still trying but didn't ......
tell me what to do on other computer?
i have enter one more user as you said by this command.
[admin@MikroTik] > ppp secret add name=shaikh password=shaikh profile=user1 disab
led=no
so what to do now to connect through this router on other computer?
do i have to do any changes on other computer?

Regard's
Regard's
Shaikh
1nonlyshaikh@gmail.com
 
dejanb
Frequent Visitor
Frequent Visitor
Posts: 54
Joined: Wed Apr 21, 2010 12:05 am
Location: Serbia, Belgrade

Re: How to make it???????

Sun Apr 10, 2011 7:12 pm

No Buddy still trying but didn't ......
tell me what to do on other computer?
i have enter one more user as you said by this command.
[admin@MikroTik] > ppp secret add name=shaikh password=shaikh profile=user1 disab
led=no
so what to do now to connect through this router on other computer?
do i have to do any changes on other computer?

Regard's
I added you to MSN.
 
User avatar
1nOnlyShaikh
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 83
Joined: Sat Mar 26, 2011 10:31 pm

Re: How to make it???????

Sun Apr 10, 2011 8:27 pm

Thanks A Lot MrDejanb
Hatts Off for you buddy
I have Done it.
Regard's
Shaikh
1nonlyshaikh@gmail.com
 
User avatar
1nOnlyShaikh
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 83
Joined: Sat Mar 26, 2011 10:31 pm

Re: How to make it???????

Mon Apr 11, 2011 9:48 am

i have some questions DJ,
1. how can i create profiles with change ip and limit? like i have 192.168.2.1 and so on with 2mb limit. how to citrate a profile using ip 192.168.3.x and so on with 1mb limit?
2. how to add peoples to any profile with same limit?
3. or i will create Masquerade out going interface 1st with nat chain for every ip range, then create ppp0e server then profile and after all add users ? or simple create profile and add users?
Example :

I have a range 192.168.2.1 and so on with 2mb limit, but i want to add some users with different limits and ip's like
192.168.3.1 and so on with 1mb limit?
192.168.4.1 and so on with 512kb limit?
192.168.5.1 and so on with 4mb limit?
Is it possible or not ? if possible then how to do it?
or simply i will add users to same profile and after that manually change there limits?

Regard's
Regard's
Shaikh
1nonlyshaikh@gmail.com
 
User avatar
1nOnlyShaikh
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 83
Joined: Sat Mar 26, 2011 10:31 pm

Re: How to make it???????

Tue Apr 12, 2011 8:27 pm

Where are you buddy?
i ask you something to know,post here and send e.mail too but no any response yet.
Regard's
Shaikh
1nonlyshaikh@gmail.com

Who is online

Users browsing this forum: Bing [Bot] and 35 guests